API Reference
Payments (Pay Out)

Get a payment by externalId

GET/payment/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>

Internal GUID of the intent.

externalIdstring

Your externalId.

Example: "pedido-123"
statusstring

Intent status. In Mimicr: Pending (validation), PendingPSP (sent to the SPI), PendingRetry (recoverable failure), Completed (webhook Released) or Error (webhook Declined).

PendingPendingRetryPendingPSPCompletedError
amountnumber

Amount in BRL.

Example: 150
retryCountinteger

How many times the send was retried.

createdAtstring<date-time>

Creation time.

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

Last update.

Example: "2026-07-08T12:00:00Z"
lastUpdatedAtstring | null<date-time>

Last status change.

completedAtstring | null<date-time>

When the Pix settled.

urlCallbackstring

URL that receives the webhook.

requestFingerprintstring

Fingerprint of the creation request.

Example: "70166a0c3342addd"
paymentobject
Show child attributes
idstring<uuid>

GUID of the payment (not of the intent).

methodstring

Payment method.

Pix-KeyPix-BankDataPix-CopyPastePix-Session
dataJsonstring

Receiver data as sent on creation, serialized as a JSON string.

Example: "{\"pixKeyType\":\"EMAIL\",\"pixKeyValue\":\"cliente@exemplo.com\"}"
transactionIdstring

Transaction id.

Example: "149086590"
endToEndIdstring | null

Pix end-to-end id; use it to reconcile with the statement.

Example: "E29079725202610230117Dur2utScejU"
createdAtstring<date-time>

Creation time.

Example: "2026-07-08T12:00:00Z"
lastUpdatedAtstring | null<date-time>

Last update.

withdrawErrorsobject[]

Errors while sending the Pix, with the attempt 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"
errorTypeinteger

Error type (in Mimicr, 1 recoverable and 2 final).

Example: 1
validationErrorsobject[]

Validation errors.

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[]

Pre-validations requested on creation.

Show child attributes
idstring<uuid>

Pre-validation id.

typestring

Type.

AccountDestinationReceiver
createdAtstring<date-time>

Creation time.

Example: "2026-07-08T12:00:00Z"
lastUpdatedAtstring | null<date-time>

Last evaluation.

statusHistoryobject[]

Status history, oldest first.

Show child attributes
idstring<uuid>

Transition id.

previousStatusstring | null

Previous status.

newStatusstring

New status.

reasonstring | null

Reason for the transition.

changedAtstring<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."