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:
| Parameter | Type | Description |
|---|---|---|
amount | string(optional) | used for specifying the amount to be refunded |
requester | string(optional) | can have one of these values: (internal, customer, partner) |
Sample Request:
{}
Response Parameters:
| Parameter | Type | Description |
|---|---|---|
amount | string | the refunded amount |
requester | string | the requester of the refund |
refund_type | string | the final refund type |
Sample Response:
{
"amount": "50",
"requester": "partner",
"refund_type": "full"
}