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-hml”
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
60bd66c4-9a50-4f0c-8d49-35a849d59539Reason 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
5c39e312-4de7-40a1-a8e0-165fa4f5f3f3Order Id
Example
7d418d7d-b926-42a3-b6e2-864f76020fc6Amount 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