Skip to main content

Cancellations

3.10 cancel a sale

This endpoint canceles a sale and adds refund records.

POST /shop/<str:shop_uuid>/payment-requests/<str:order_id>/cancel

Request Parameters:

ParameterTypeDescription
amountstring(optional)used for specifying the amount to be refunded
requesterstring(optional)can have one of these values: (internal, customer, partner)

Sample Request:

{}

Response Parameters:

ParameterTypeDescription
amountstringthe refunded amount
requesterstringthe requester of the refund
refund_typestringthe final refund type

Sample Response:

{
"amount": "50",
"requester": "partner",
"refund_type": "full"
}