API Reference
Update an intent
/deposit/api/v1/intents/{id}https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.comReplaces 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
Internal GUID of the intent (the id returned on creation or in the Location header).
Body
application/jsonYour externalId.
"deposito-456"Absolute (http/https) URL for the intent's notifications.
Full list of deposits (not empty); replaces the current one.
Pix-QrDynamic
Pix-QrDynamic.
Pix-QrDynamicAmount, greater than zero and within the deposit limits.
200ISO 4217 code (default BRL). Other currencies are converted to BRL.
Show child attributes
QR Code lifetime in seconds.
600Optional text shown to the payer.
Rejects payments from another holder.
Pix-QrStatic
Pix-QrStatic.
Pix-QrStaticAmount, greater than zero and within the deposit limits.
25ISO 4217 code (default BRL). Other currencies are converted to BRL.
Show child attributes
Optional text shown to the payer.
Pix-ITP
Pix-ITP.
Pix-ITPAmount, greater than zero and within the deposit limits.
100ISO 4217 code (default BRL). Other currencies are converted to BRL.
Show child attributes
Valid CPF/CNPJ of whoever will pay. In Mimicr, only the holder of this document can pay the ITP.
"39053344705"Where the payer's bank returns after authorization.
"https://sua-app.dev/retorno"Optional text shown to the payer.
Mimicr extension: false submits the draft (Draft → Pending).
Responses
200The updated intent, in the lookup format.
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"400Validation, or intent not in Draft (DEP-105).
Problem type reference (RFC 9110).
"https://tools.ietf.org/html/rfc9110#section-15.5.1"Problem summary.
"One or more validation errors occurred."HTTP status.
400Id of the intent involved, or null when there is none yet.
List of errors, one per field.
Show child attributes
Error code (VAL-XXX on Payment, DEP-XXX on Deposit).
"VAL-001"Human-readable message.
"Invalid Pix key"Field that caused the error.
"payment.data.pixKeyValue"401Missing, expired or invalid token. Empty body.
403Intent of another merchant.
Problem type reference (RFC 9110).
"https://tools.ietf.org/html/rfc9110#section-15.5.1"Problem summary.
"One or more validation errors occurred."HTTP status.
400Id of the intent involved, or null when there is none yet.
List of errors, one per field.
Show child attributes
Error code (VAL-XXX on Payment, DEP-XXX on Deposit).
"VAL-001"Human-readable message.
"Invalid Pix key"Field that caused the error.
"payment.data.pixKeyValue"404Intent not found.
Problem type reference (RFC 9110).
"https://tools.ietf.org/html/rfc9110#section-15.5.1"Problem summary.
"One or more validation errors occurred."HTTP status.
400Id of the intent involved, or null when there is none yet.
List of errors, one per field.
Show child attributes
Error code (VAL-XXX on Payment, DEP-XXX on Deposit).
"VAL-001"Human-readable message.
"Invalid Pix key"Field that caused the error.
"payment.data.pixKeyValue"409New externalId already used (DEP-123).
Problem type reference (RFC 9110).
"https://tools.ietf.org/html/rfc9110#section-15.5.1"Problem summary.
"One or more validation errors occurred."HTTP status.
400Id of the intent involved, or null when there is none yet.
List of errors, one per field.
Show child attributes
Error code (VAL-XXX on Payment, DEP-XXX on Deposit).
"VAL-001"Human-readable message.
"Invalid Pix key"Field that caused the error.
"payment.data.pixKeyValue"