Refund Order (🚧 in development)
POST/order/refund
Process a refund for an order. This action is only available for orders with the status 'completed'. Refer to the Order Actions and Conditions. If the order contains more than one payment, the PaymentId of the payment to be refunded must be specified.
Request​
- application/json
Body
Order parameters
ID of the shop where the order is placed. How to get your shopId
Unique code identifying the specific order.
Identifier for the specific payment that is being refunded. If the order has multiple payments, this must be specified.
cost objectrequired
Object specifying the amount and currency for the refund.
The specific sum to be refunded, formatted as a decimal string with a period (.) as the decimal separator.
Currency for the refund, which should match the currency of the original payment. Specifies the currency in ISO 4217 alphabetic code format, consisting of 3 uppercase letters.
Responses​
- 200
- 400
Payment refund successful
- application/json
- Schema
- Example (from schema)
Schema
data object
Unique code identifying the specific order.
Possible values: [refund
]
Operations type
{
"data": {
"orderNumber": "OREDER-324234",
"operationType": "refund"
}
}
Error
- application/json
- Schema
- Example (from schema)
Schema
Error code
Detailed error description
Additional information about the error
{
"code": "401",
"title": "Input data validation error",
"detail": "Parameter AAAA is required"
}