Custom Refund/cancel end-point, all options available
DELETE/order/:guid/custom_refund
Custom Refund/cancel end-point, all options available. This endpoint can cancel and refund Orders, Tickets, Products, and Payment fees. The Tickets, Products, and Payment fees can be cancelled/refunded through items
, while the Order can be cancelled/refunded through entire_order
.
Request
Path Parameters
The guid of the Order.
- application/json
Body
Input data
Array [
]
If true, the request will be refunded, otherwise the request is only cancelled.
Possible values: non-empty
and <= 255 characters
A comment for the Refund.
Whether to include the services fees.
Whether to refund the entire order.
items
object[]
required
The guid of the item to be refunded.
Possible values: [payment
, ticket
, product
]
The type of the item to be refunded.
arbitrary
object
Use this to overwrite the value to be refunded. If this is left empty the value of the items or Order will be taken instead.
The amount to be refunded in cents.
The vat to be refunded.
Responses
- 200
- 403
- 404
- 406
Empty response when cancel was successful
- application/json
- Schema
- Example (from schema)
Schema
fatals
object
The type of object which throws the fatal, error or notice.
The guid of the object which threw the fatal, error or notice.
In the case the error is about reservation, this will be the reservation key of the object that was used.
The reason why the fatal, error or notice occurred.
Potentially some extra information about the fatal, error or notice.
This is the child error and has the same schema as this schema. It recurses on every child fatal, error or notice that gets added.
errors
object
The type of object which throws the fatal, error or notice.
The guid of the object which threw the fatal, error or notice.
In the case the error is about reservation, this will be the reservation key of the object that was used.
The reason why the fatal, error or notice occurred.
Potentially some extra information about the fatal, error or notice.
This is the child error and has the same schema as this schema. It recurses on every child fatal, error or notice that gets added.
notices
object
The type of object which throws the fatal, error or notice.
The guid of the object which threw the fatal, error or notice.
In the case the error is about reservation, this will be the reservation key of the object that was used.
The reason why the fatal, error or notice occurred.
Potentially some extra information about the fatal, error or notice.
This is the child error and has the same schema as this schema. It recurses on every child fatal, error or notice that gets added.
The redirect URL to where the user should continue.
In case this field is returned, it is the amount of the created Order in cents.
The guid of the created Order.
{
"fatals": {
"subjectType": "string",
"guid": "string",
"reservation": "string",
"reason": "string",
"extra": {},
"parentOf": {}
},
"errors": {
"subjectType": "string",
"guid": "string",
"reservation": "string",
"reason": "string",
"extra": {},
"parentOf": {}
},
"notices": {
"subjectType": "string",
"guid": "string",
"reservation": "string",
"reason": "string",
"extra": {},
"parentOf": {}
},
"redirectUrl": "string",
"amount": 0,
"order_id": "string"
}
Unauthorized. You do not have permission to manage the Order.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Order or Shop of the Order not found.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Request is invalid, see error context for validation errors.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}