Skip to main content
POST
/
api-order
/
orders
/
user
/
cancel
Cancel order by user
curl --request POST \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-order/orders/user/cancel \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "cancellationCode": "2001",
  "cancellationMessage": "Customer not interested"
}'
{
"orderId": "8568-9704-74294",
"status": "Successfully cancelled order"
}

Headers

x-site-context
string
required
Example:
Authorization
string
required

Query Parameters

orderId
string
required
Required string length: 15
Example:

Body

application/json
cancellationCode
string
required
Example:
cancellationMessage
string
Example:

Response

orderId
string
Example:
status
string
Example: