Introduction

Authentication

Test cards

Establishments

Users

Customers

Cards

Payment links

Error codes

Payment Split

Products

Discount Coupons

Sales

Signatures

Webhooks

Financial


On this page:


POST Create a bank slip refund

https://api.premepay.com/v1/stores/:id/orders/:order-number/boletos/:id/refund

Parameters List

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

Request example

This is an example of how your request to create a new transfer should look like.

Responses

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>