API Reference
Deposits (Pay In)

Get an intent by externalId

GET/deposit/api/v1/intents/by-external/{externalId}
Base URL: https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.com

Same response as the lookup by id, searching by the externalId you set on creation.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

externalIdstringrequired

Your externalId.

Responses

200The intent.
idstring<uuid>

Intent GUID.

typestring

Deposit or Session.

DepositSession
merchantInvoiceIdstring

Your externalId.

Example: "deposito-456"
statusstring

Status in upper case.

DRAFTPENDINGAPPROVEDDECLINEDEXPIREDCANCELEDREFUND
createdAtstring<date-time>

Creation time.

Example: "2026-07-08T12:00:00Z"
lastStatusDatestring<date-time>

Last status change.

Example: "2026-07-08T12:00:00Z"
depositsobject[]

The intent's deposits.

Show child attributes
idstring<uuid>

Deposit id.

statusstring

Deposit status (in Mimicr: PENDING, APPROVED, DECLINED, EXPIRED, CANCELED, RETURNED).

paymentMethodobject
Show child attributes
namestring

Rail name.

Example: "Pix"
descriptionstring

Method description.

Example: "Pix QR Code dinâmico"
imagestring

Method image.

currencystring

Method currency.

Example: "BRL"
minimumAmountnumber

Method minimum amount.

Example: 0.01
amountnumber

Amount in BRL.

Example: 200
currencystring

Amount currency.

Example: "BRL"
referencestring

BR Code (copy and paste) or ITP URL.

providerEndToEndstring | null

EndToEndId of the Pix received; use it to reconcile.

conciliationIdstring | null

Reconciliation id.

finalRatenumber | null

Rate applied, when there was a currency conversion.

originalAmountnumber | null

Original amount, when converted.

originalCurrencystring | null

Original currency, when converted.

quoteIdstring | null

Quote id, when converted.

pixDetailsobject

Pix details; fields that don't apply to the type are omitted.

Show child attributes
typestring

Pix type.

DynamicStaticITP
pixKeystring | null

Pix key (ITP only, always null).

expirationinteger

Lifetime in seconds (dynamic).

rejectDifferentPayerboolean

Rejects another holder (dynamic).

documentstring

Payer document (ITP).

redirectUrlstring

Return URL (ITP).

textInformationstring

Text for the payer.

createdAtstring<date-time>

Creation time.

Example: "2026-07-08T12:00:00Z"
depositErrorsobject[]

Processing refusals (payer's bank), with log.

Show child attributes
idstring<uuid>

Error id.

errorCodestring

Error code (in Mimicr, SPI ISO 20022 codes such as AC03, AM04, AB03, RR04).

Example: "AB03"
errorDescriptionstring

Error description.

canRetryboolean

true when the error is recoverable and the send will be retried.

processedboolean

true once the error has been handled (for example by a later successful attempt).

processedAtstring | null<date-time>

When the error was handled.

createdAtstring<date-time>

When the error happened.

Example: "2026-07-08T12:00:00Z"
logsobject[]

One entry per failed attempt.

Show child attributes
idstring<uuid>

Attempt id.

errorCodestring

Error code of the attempt.

Example: "AB03"
errorDescriptionstring

Description of the attempt's error.

Example: "Timeout no SPI ao enviar o Pix"
attemptedAtstring<date-time>

When the attempt happened.

Example: "2026-07-08T12:00:00Z"
validationErrorsobject[]

Validation errors (pre-validations and screening).

Show child attributes
idinteger

Sequential error id.

Example: 1
errorCodestring

Validation error code.

Example: "VAL-023"
errorMessagestring

Error message.

errorCategorystring

Error category (in Mimicr: Configuration, Limits, Session, PreValidation, Screening).

paymentMethodstring

Method of the transaction.

Example: "Pix-Key"
occurredAtstring<date-time>

When the validation failed.

Example: "2026-07-08T12:00:00Z"
preValidationsobject[]

Validation results.

Show child attributes
idinteger

Sequential id.

intentDepositIdstring | null

Deposit evaluated, or null on creation.

phasestring

In Mimicr, Pre or Post.

validationTypestring

Payer, AccountOrigin or Screening.

statusstring

In Mimicr, Passed or Failed.

errorCodestring | null

Failure code.

errorMessagestring | null

Failure message.

createdAtstring<date-time>

When it was evaluated.

Example: "2026-07-08T12:00:00Z"
statusHistoryobject[]

Status history, oldest first.

Show child attributes
idstring<uuid>

Transition id.

statusstring

New status.

previousStatusstring | null

Previous status.

reasonstring | null

Reason for the transition.

createdAtstring<date-time>

When the transition happened.

Example: "2026-07-08T12:00:00Z"
401Missing, expired or invalid token. Empty body.
404Intent not found or owned by another merchant.
successbooleanrequired

Always false on errors.

Example: false
codeintegerrequired

5001 resource not found, 2001 unprocessable input, 1001 validation error (in Mimicr), 4009 key already registered (in Mimicr).

Example: 5001
messagestringrequired

Error message.

Example: "Deposit intent not found."