Refund an order - V1
PUT /order/v1/refund
Refund an order by the way only order with payment methods BINANCE_PAY, PIX and SPEI are allowed to refund. For other payment methods, we are implementing them.
NOTE: Please, to authenticate use the scope: “api://app-order-prd”
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”A unique identifier for the message with a maximum of 64 characters (we recommend a UUID).
Request Body required
Section titled “Request Body required ”object
Order id
Example
d8a17574-4002-4093-aee1-e435b9c18cdcReason for Refund.
For orders of Mexico the reason must be one of the follwoing values bellow:
- DUPLICATE
- FRAUDULENT
- REQUESTED_BY_CUSTOMER
- OTHER
Example
Customer requested or order was not deliveredWho requested the refund
object
Requester name
Example
Jhon DoeRequester email
Example
jhon.doe@domain.comExample
{ "name": "Jhon Doe", "email": "jhon.doe@domain.com"}Responses
Section titled “ Responses ”The resource was returned successfully
object
Refund Id
Example
b6210f60-479e-452c-ae75-e0c4157a383bOrder Id
Example
52beec72-8521-406f-a31d-c5b66e22b6b4Amount to be refunded
Example
100Reason for refund
Example
Customer requested or order was not deliveredWho requested the refund
object
Requester name
Example
Jhon DoeRequester email
Example
jhon.doe@domain.comExample
jhon.doe@email.comRefund status
Example
INITIALRefund create datetime
Example
2021-01-01T00:00:00.000ZRefund end to end id
The request is not valid
Unauthorized Request
An unexpected error occurred inside the server