POST
/
orders
/
{id}
/
cancel
curl --request POST \
  --url https://api.sibipro.com/orders/orders/{id}/cancel \
  --header 'Content-Type: application/json' \
  --data '{
  "reason": "Customer requested a cancellation"
}'
{
  "cancellationStatus": "pending",
  "cancellationReason": "Customer requested a cancellation",
  "requestedAt": "2024-01-20T12:00:00Z"
}

Path Parameters

id
string
required

The ID of the order to cancel

Body

application/json

Response

201
application/json
Order cancellation request created successfully

The response is of type object.