API Reference
Deposits (Pay In)

Update an intent's deposits

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

Updates one or more deposits already linked to the intent (new amount or expiration) and regenerates the QR Code. In Mimicr, each item is matched by id or, without it, by method, and only in Draft or Pending.

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

Deposits to update; each item needs data.

Show child attributes
idstring<uuid>

Id of the deposit to update. Without it, Mimicr matches by method.

methodstringrequired
Pix-QrDynamicPix-QrStaticPix-ITP
amountnumberrequired

New amount.

Example: 250
currencystring

Currency (default BRL).

dataobjectrequired
Show child attributes
expirationinteger

New lifetime in seconds (dynamic QR).

textInformationstring

Text for the payer.

rejectDifferentPayerboolean

Rejects another holder.

documentstring

Payer document (ITP).

redirectUrlstring

Return URL (ITP).

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 (for example an item without data) or a status that doesn't allow it (DEP-106).
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"