API Reference
Deposits (classic Pix)

Refund a deposit

PUT/transactions/deposit/{depositId}/refund
Base URL: https://okto.mimicr.dev · provider: https://demo-pix.oktopay.eu

Returns 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

depositIdstringrequired

Deposit id.

Example: "1268321722477579"

Responses

200Refund started.
idstring

Deposit id.

namestring

Payer name.

taxIdstring

Payer CPF.

amountinteger

Amount in cents.

Example: 2500
statusstring

Status.

reversing
createdstring<date-time>

Creation time.

Example: "2026-10-21T19:08:59.710000+00:00"
updatedstring<date-time>

Last change.

Example: "2026-10-21T19:08:59.710000+00:00"
linkstring

Invoice page.

brcodestring

Pix copia e cola.

tagsstring[]

Free tags returned in responses and notifications (up to 5).

transactionInfoobject

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
namestring

Account holder name.

Example: "Ana Ribeiro"
taxIdstring

Account holder document.

Example: "604.184.437-34"
bankInfoobject

Bank of the counterparty.

Show child attributes
namestring

Bank name.

Example: "BANCO INTER S.A."
spiCodestring

ISPB of the bank.

Example: "00416968"
strCodestring

COMPE code of the bank.

Example: "077"
displayNamestring

Short bank name.

Example: "INTER"
branchCodestring

Branch.

Example: "1"
accountNumberstring

Account number.

Example: "6041844371"
accountTypestring

Account type.

Example: "checking"
endToEndIdstring

End-to-end id of the Pix (E + ISPB + timestamp + 11 chars).

Example: "E00416968202610211909LPudyxudL08"
refundEndToEndIdstring

End-to-end id of the refund (D…), present after a reversal.

Example: "D30980539202610211909abcdefghijk"
400Validation or business error. Okto also answers "not found" errors with 400 and an error list.
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"
401Invalid access token (code 2000).
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"
403Missing Authorization header (code 2000, "Full authentication is required to access this resource").
errorsobject[]required

Errors of the request.

Show child attributes
codeintegerrequired

Okto error code (see the error catalog).

Example: 2001
messagestringrequired

Fixed message of the code.

Example: "The tax id is invalid."
detailedMessagestringrequired

What exactly went wrong.

Example: "taxId must be a valid CPF"