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 '{
  "order_number": 123,
  "items": [
    "<string>"
  ],
  "submitted_by": "<string>",
  "prepared_by": "<string>",
  "picked_up_by": "<string>",
  "status": "submitted",
  "customer": "<string>"
}'
{
  "order_number": 123,
  "items": [
    "<string>"
  ],
  "submitted_by": "<string>",
  "prepared_by": "<string>",
  "picked_up_by": "<string>",
  "status": "submitted",
  "customer": "<string>",
  "workspace": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

Body

application/json

Response

200 - application/json

Order created successfully