On this page:
https://api.premepay.com/v1/stores/:id/orders/:order-number/boletos/:id/refund
Parameter | Type | Description | Required |
---|---|---|---|
bankAccount |
object | Bank data | Yes |
holderName |
string | Bank account holder | Yes |
bankCode |
string | Bank code | Yes |
routingNumber |
string | Routing number | Yes |
accountNumber |
string | Account number | Yes |
identificationNumber |
string | CPF or CNPJ | Yes |
type |
checking ou savings |
Account Type (Checking or Savings) | Yes |
refund |
object | Refund | Yes |
amount |
decimal | Amount to be refunded (partial refund is not possible) | Yes |
reason |
string (100) | Refund reason | No |
This is an example of how your request to create a new transfer should look like.
If your request is successful, you will receive the return of the consumer object.
If your request has invalid creation parameters - for example, specifying an invalid field or value - you may receive an error response. Below is the complete list of possible error responses:
Related Content
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" width="40px" /> POST - Create refund
</aside>
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" width="40px" /> POST - Create refund - Credit card and Pix
</aside>