API Reference
Deposits (Pay In)

Update an intent

PUT/deposit/api/v1/intents/{id}
Base URL: https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.com

Replaces an intent's externalId, webhookUrl and deposits. Only allowed in Draft; otherwise it answers 400 DEP-105.

Authorization

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

Path parameters

idstring<uuid>required

Internal GUID of the intent (the id returned on creation or in the Location header).

Body

application/json
externalIdstringrequired

Your externalId.

Example: "deposito-456"
webhookUrlstring<uri>required

Absolute (http/https) URL for the intent's notifications.

depositsobject[]required

Full list of deposits (not empty); replaces the current one.

Pix-QrDynamic
methodstringrequired

Pix-QrDynamic.

Pix-QrDynamic
amountnumberrequired

Amount, greater than zero and within the deposit limits.

Example: 200
currencystring

ISO 4217 code (default BRL). Other currencies are converted to BRL.

dataobject
Show child attributes
expirationinteger

QR Code lifetime in seconds.

Example: 600
textInformationstring

Optional text shown to the payer.

rejectDifferentPayerboolean

Rejects payments from another holder.

Pix-QrStatic
methodstringrequired

Pix-QrStatic.

Pix-QrStatic
amountnumberrequired

Amount, greater than zero and within the deposit limits.

Example: 25
currencystring

ISO 4217 code (default BRL). Other currencies are converted to BRL.

dataobject
Show child attributes
textInformationstring

Optional text shown to the payer.

Pix-ITP
methodstringrequired

Pix-ITP.

Pix-ITP
amountnumberrequired

Amount, greater than zero and within the deposit limits.

Example: 100
currencystring

ISO 4217 code (default BRL). Other currencies are converted to BRL.

dataobjectrequired
Show child attributes
documentstringrequired

Valid CPF/CNPJ of whoever will pay. In Mimicr, only the holder of this document can pay the ITP.

Example: "39053344705"
redirectUrlstring<uri>required

Where the payer's bank returns after authorization.

Example: "https://sua-app.dev/retorno"
textInformationstring

Optional text shown to the payer.

draftboolean

Mimicr extension: false submits the draft (Draft → Pending).

Responses

200The updated intent, in the lookup format.
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"
400Validation, or intent not in Draft (DEP-105).
typestringrequired

Problem type reference (RFC 9110).

Example: "https://tools.ietf.org/html/rfc9110#section-15.5.1"
titlestringrequired

Problem summary.

Example: "One or more validation errors occurred."
statusintegerrequired

HTTP status.

Example: 400
intentIdstring | null

Id of the intent involved, or null when there is none yet.

errorsobject[]required

List of errors, one per field.

Show child attributes
codestringrequired

Error code (VAL-XXX on Payment, DEP-XXX on Deposit).

Example: "VAL-001"
messagestringrequired

Human-readable message.

Example: "Invalid Pix key"
fieldstring | null

Field that caused the error.

Example: "payment.data.pixKeyValue"
401Missing, expired or invalid token. Empty body.
403Intent of another merchant.
typestringrequired

Problem type reference (RFC 9110).

Example: "https://tools.ietf.org/html/rfc9110#section-15.5.1"
titlestringrequired

Problem summary.

Example: "One or more validation errors occurred."
statusintegerrequired

HTTP status.

Example: 400
intentIdstring | null

Id of the intent involved, or null when there is none yet.

errorsobject[]required

List of errors, one per field.

Show child attributes
codestringrequired

Error code (VAL-XXX on Payment, DEP-XXX on Deposit).

Example: "VAL-001"
messagestringrequired

Human-readable message.

Example: "Invalid Pix key"
fieldstring | null

Field that caused the error.

Example: "payment.data.pixKeyValue"
404Intent not found.
typestringrequired

Problem type reference (RFC 9110).

Example: "https://tools.ietf.org/html/rfc9110#section-15.5.1"
titlestringrequired

Problem summary.

Example: "One or more validation errors occurred."
statusintegerrequired

HTTP status.

Example: 400
intentIdstring | null

Id of the intent involved, or null when there is none yet.

errorsobject[]required

List of errors, one per field.

Show child attributes
codestringrequired

Error code (VAL-XXX on Payment, DEP-XXX on Deposit).

Example: "VAL-001"
messagestringrequired

Human-readable message.

Example: "Invalid Pix key"
fieldstring | null

Field that caused the error.

Example: "payment.data.pixKeyValue"
409New externalId already used (DEP-123).
typestringrequired

Problem type reference (RFC 9110).

Example: "https://tools.ietf.org/html/rfc9110#section-15.5.1"
titlestringrequired

Problem summary.

Example: "One or more validation errors occurred."
statusintegerrequired

HTTP status.

Example: 400
intentIdstring | null

Id of the intent involved, or null when there is none yet.

errorsobject[]required

List of errors, one per field.

Show child attributes
codestringrequired

Error code (VAL-XXX on Payment, DEP-XXX on Deposit).

Example: "VAL-001"
messagestringrequired

Human-readable message.

Example: "Invalid Pix key"
fieldstring | null

Field that caused the error.

Example: "payment.data.pixKeyValue"