POST
/
orders
curl --request POST \
  --url https://api.readmin.app/orders \
  --header 'Content-Type: application/json' \
  --header 'loader-id: <api-key>' \
  --data '{
  "customerId": "<string>",
  "cashierId": "<string>",
  "items": [
    {
      "item": "<string>",
      "quantity": 123
    }
  ],
  "placeId": "<string>",
  "gameId": "<string>"
}'
{
  "success": true,
  "order": {
    "_id": "<string>",
    "groupId": "<string>",
    "customerId": "<string>",
    "cashierId": "<string>",
    "status": "submitted",
    "items": [
      {
        "item": "<string>",
        "quantity": 123
      }
    ],
    "log": [
      {
        "event": "<string>",
        "userId": "<string>",
        "date": "2023-11-07T05:31:56Z"
      }
    ],
    "involvedUsers": [
      "<string>"
    ],
    "placeId": "<string>",
    "gameId": "<string>",
    "created": "2023-11-07T05:31:56Z",
    "lastModified": "2023-11-07T05:31:56Z"
  }
}

Authorizations

loader-id
string
header
required

Body

application/json
customerId
string
required
cashierId
string
required
items
object[]
required
placeId
string
gameId
string

Response

201
application/json
Order created successfully
success
boolean
order
object