POST
/
players
/
orders
/
{workspaceId}
curl --request POST \
  --url https://api.hyra.io/players/orders/{workspaceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer": "<string>",
  "items": [
    "<string>"
  ],
  "order_number": 123,
  "picked_up_by": "<string>",
  "prepared_by": "<string>",
  "status": "submitted",
  "submitted_by": "<string>"
}'
{
  "_id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "customer": "<string>",
  "items": [
    "<string>"
  ],
  "order_number": 123,
  "picked_up_by": "<string>",
  "prepared_by": "<string>",
  "status": "submitted",
  "submitted_by": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "workspace": "<string>"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Body

application/json
customer
string
required
items
string[]
required
order_number
number
picked_up_by
string
prepared_by
string
status
enum<string>
required
Available options:
submitted,
handed_to,
waiting_for_preparation,
finding_new_colleague,
preparing,
completed,
waiting_for_pickup,
cancelled
submitted_by
string
required

Response

200 - application/json
_id
string
required
createdAt
string
required
customer
string
required
items
string[]
required
order_number
number
required
picked_up_by
string
prepared_by
string
status
enum<string>
required
Available options:
submitted,
handed_to,
waiting_for_preparation,
finding_new_colleague,
preparing,
completed,
waiting_for_pickup,
cancelled
submitted_by
string
required
updatedAt
string
required
workspace
string
required