API Reference
Get an intent by externalId
/deposit/api/v1/intents/by-external/{externalId}https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.comSame 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
Your externalId.
Responses
200The intent.
Intent GUID.
Deposit or Session.
DepositSessionYour externalId.
"deposito-456"Status in upper case.
DRAFTPENDINGAPPROVEDDECLINEDEXPIREDCANCELEDREFUNDCreation time.
"2026-07-08T12:00:00Z"Last status change.
"2026-07-08T12:00:00Z"The intent's deposits.
Show child attributes
Deposit id.
Deposit status (in Mimicr: PENDING, APPROVED, DECLINED, EXPIRED, CANCELED, RETURNED).
Show child attributes
Rail name.
"Pix"Method description.
"Pix QR Code dinâmico"Method image.
Method currency.
"BRL"Method minimum amount.
0.01Amount in BRL.
200Amount currency.
"BRL"BR Code (copy and paste) or ITP URL.
EndToEndId of the Pix received; use it to reconcile.
Reconciliation id.
Rate applied, when there was a currency conversion.
Original amount, when converted.
Original currency, when converted.
Quote id, when converted.
Pix details; fields that don't apply to the type are omitted.
Show child attributes
Pix type.
DynamicStaticITPPix key (ITP only, always null).
Lifetime in seconds (dynamic).
Rejects another holder (dynamic).
Payer document (ITP).
Return URL (ITP).
Text for the payer.
Creation time.
"2026-07-08T12:00:00Z"Processing refusals (payer's bank), with log.
Show child attributes
Error id.
Error code (in Mimicr, SPI ISO 20022 codes such as AC03, AM04, AB03, RR04).
"AB03"Error description.
true when the error is recoverable and the send will be retried.
true once the error has been handled (for example by a later successful attempt).
When the error was handled.
When the error happened.
"2026-07-08T12:00:00Z"One entry per failed attempt.
Show child attributes
Attempt id.
Error code of the attempt.
"AB03"Description of the attempt's error.
"Timeout no SPI ao enviar o Pix"When the attempt happened.
"2026-07-08T12:00:00Z"Validation errors (pre-validations and screening).
Show child attributes
Sequential error id.
1Validation error code.
"VAL-023"Error message.
Error category (in Mimicr: Configuration, Limits, Session, PreValidation, Screening).
Method of the transaction.
"Pix-Key"When the validation failed.
"2026-07-08T12:00:00Z"Validation results.
Show child attributes
Sequential id.
Deposit evaluated, or null on creation.
In Mimicr, Pre or Post.
Payer, AccountOrigin or Screening.
In Mimicr, Passed or Failed.
Failure code.
Failure message.
When it was evaluated.
"2026-07-08T12:00:00Z"Status history, oldest first.
Show child attributes
Transition id.
New status.
Previous status.
Reason for the transition.
When the transition happened.
"2026-07-08T12:00:00Z"401Missing, expired or invalid token. Empty body.
404Intent not found or owned by another merchant.
Always false on errors.
false5001 resource not found, 2001 unprocessable input, 1001 validation error (in Mimicr), 4009 key already registered (in Mimicr).
5001Error message.
"Deposit intent not found."