PUT
/
orders
/
{orderId}
/
cancel
curl --request PUT \
  --url https://api.readmin.app/orders/{orderId}/cancel \
  --header 'Content-Type: application/json' \
  --header 'loader-id: <api-key>' \
  --data '{
  "actorId": "<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

Path Parameters

orderId
string
required

Body

application/json
actorId
string
required

Response

200
application/json
Order updated successfully
success
boolean
order
object