API Reference
Refund a deposit
/transactions/deposit/{depositId}/refundhttps://okto.mimicr.dev · provider: https://demo-pix.oktopay.euReturns a paid deposit to the payer. Only deposits paid today (Brasília time) can be refunded; otherwise 2040. The deposit goes to reversing and then reversed, with an Invoice notification and refundEndToEndId in transactionInfo.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Deposit id.
"1268321722477579"Responses
200Refund started.
Deposit id.
Payer name.
Payer CPF.
Amount in cents.
2500Status.
reversingCreation time.
"2026-10-21T19:08:59.710000+00:00"Last change.
"2026-10-21T19:08:59.710000+00:00"Invoice page.
Pix copia e cola.
Free tags returned in responses and notifications (up to 5).
Data of the Pix that moved the money: the payer of a deposit or the receiver of a withdrawal. Present once the money moved.
Show child attributes
Account holder name.
"Ana Ribeiro"Account holder document.
"604.184.437-34"Bank of the counterparty.
Show child attributes
Bank name.
"BANCO INTER S.A."ISPB of the bank.
"00416968"COMPE code of the bank.
"077"Short bank name.
"INTER"Branch.
"1"Account number.
"6041844371"Account type.
"checking"End-to-end id of the Pix (E + ISPB + timestamp + 11 chars).
"E00416968202610211909LPudyxudL08"End-to-end id of the refund (D…), present after a reversal.
"D30980539202610211909abcdefghijk"400Validation or business error. Okto also answers "not found" errors with 400 and an error list.
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"401Invalid access token (code 2000).
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"403Missing Authorization header (code 2000, "Full authentication is required to access this resource").
Errors of the request.
Show child attributes
Okto error code (see the error catalog).
2001Fixed message of the code.
"The tax id is invalid."What exactly went wrong.
"taxId must be a valid CPF"