ApiOrder Administration
Cancel order
Cancels a confirmed order. Only available for orders that have not been fulfilled (no tickets issued). Initiates refund if payment was taken.
Authorization
Bearer AuthorizationBearer <token>
Enter your bearer token from the Pylon Auth API.
In: header
Path Parameters
id*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/problem+json
curl -X POST "https://loading/api/v1/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel" \ -H "Content-Type: application/json" \ -d '{ "reason": "string", "initiatedBy": "7c3ed0e2-d24e-40a1-b1fe-f6a01ac857c6" }'{
"success": true,
"orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
"refundInitiated": true
}{
"code": "string",
"message": "string"
}{
"code": "string",
"message": "string"
}