Skip to main content
POST
/
api-order
/
orders
/
bulk-cancel
Bulk cancel orders
curl --request POST \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-order/orders/bulk-cancel \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '[
  {
    "cancellationCode": "123",
    "orderId": "2947-5955-82579",
    "returnMessage": "Customer not interested"
  }
]'
[
  {
    "orderId": "2566-5214-47418",
    "status": "Error",
    "code": "ORDER_NOT_FOUND",
    "message": "Order ID Not Found"
  },
  {
    "orderId": "8426-1549-34543",
    "status": "Successfully cancelled order"
  }
]

Headers

x-api-key
string
Example:
x-site-context
string
required
Example:

Body

application/json · object[]
cancellationCode
string
Example:
orderId
string
Required string length: 15
Example:
returnMessage
string
Example:

Response

  • Option 1
  • Option 2
orderId
string
status
string