Is there a problem and need to cancel the purchase for your customer? No problems!
The Refund is the return of payment to the consumer. Through this API you can make refunds and see the details of a particular refund.
Attributes
Name | Description | Type |
---|---|---|
| Code (Wirecard Id) Refund identifier. | string(16), |
| Refunds statuses. Possible values: | string, |
| Refund values. In cents . Ex: R$10.32 must be informed | structured |
├─ | Refund fees. | integer(12), |
├─ | Currency used in the order. Possible values: | string, |
└─ | Total amount refunded. In cents . Ex: R$10.32 must be informed | integer(12), |
| Refund type. Possible values: | string, |
| The payment method used in reimbursement. | structured, |
├─ | Payment methods. Possible values: | string, |
├─ | Credit card used in a refund. | object |
├ ├─ | Credit card number. (Must be within the PCI scope to send this field unencrypted). | string(19) |
├ ├─ | Credit card expiration month. (Must be within the PCI scope to send this field unencrypted). | integer(2) |
├ ├─ | Credit card expiration year. (Must be within the PCI scope to send this field unencrypted). | integer(4) |
├ ├─ | Credit card security code. (Must be within the PCI scope to send this field unencrypted). | integer |
├ ├─ | Credit card brand. Possible values: | string, |
├ ├─ | First 6 digits of credit card. | string, |
├ ├─ | Last 4 digits of credit card. | string, |
├ ├─ | Credit card holder. | structured, |
├ ├ ├─ | Credit card holder name. | string(90), |
├ ├ ├─ | Credit card holder birthday. | date(AAAA-MM-DD), mandatory |
├ ├ ├─ | Holder identity document. | structured, |
├ ├ ├ ├─ | Document type. possible value: | string(3), |
├ ├ ├ └─ | Document identity number. | string(11), |
├ ├ ├─ | Customer phone. | structured, |
├ ├ ├ ├─ | Phone DDI (international code). Possible value: | integer(2), |
├ ├ ├ ├─ | Phone DDD (local code). | integer(2), |
├ ├ └ └─ | Phone number. | integer(9), |
├ ├─ | Credit card holder billing address. | object, |
├ ├ ├─ | Street. | string(140), |
├ ├ ├─ | Number. | string(10), |
├ ├ ├─ | Complement. | string(140), |
├ ├ ├─ | District. | string(45), |
├ ├ ├─ | City. | string(32), |
├ ├ ├─ | State. | string(32), |
├ ├ ├─ | Country in ISO-alpha3 format. Example | string(3), |
├ └ └─ | Billing address zip code. | string(8), |
├─ | Wirecard account used on refund. | object |
├ ├─ | Account id. | string, |
├─ | Banking account used on refund. | object |
├ ├─ | Account type. Possible values: | string, |
├ ├─ | Bank number. FEBRABAN Bank code number.. | string, |
├ ├─ | Agency number. | integer, |
├ ├─ | Agency check number. | integer, |
├ ├─ | Account number. | integer, |
├ ├─ | Account check number. | integer, |
├ ├─ | Bank account holder. | structured, |
├ ├ ├─ | Bank account holder name. | string, |
├ ├ ├─ | bank account holder's identity document. | structured, |
├ ├ ├─ | Identity document type. Possible values: | string, |
└ └ └─ | Identity document number. | integer, |
| Refunds events. | structured |
├─ | Refund creation date. | integer(12), |
└─ | Refund events type. Possible values: | string, |
| Resource creation date. | datetime, |
| Resource links structure Hypermedia (HATEOAS). | structured, |
├─ | Reference to the resource. | structured |
├ └─ | Resource hyperlink. | link |
├─ | Order reference. | structured, |
├ ├─ | Order identifier. | string |
├ └─ | Order hyperlink. | link |
├─ | Payment reference. | structured, |
├ ├─ | Payment identifier. | string |
└ └─ | Payment hyperlink. | link |
TIP
If you want to search for refunded orders you can use our Search Filters.
Here is an example of endpoint to find refunds:
GET
https://sandbox.moip.com.br/v2/orders?filters=status::in(REVERTED)
IMPORTANT
1. The refund can only be made to the bank account of the same payment holder.
2. The payment can only be refunded on the credit card in the period less than 180 days after the authorization of the payment.
3. The payment made by credit card must have refunded via credit card.