API Reference
Pix utilities

Decode a QR Code

POST/pix/api/v1/qrcode/decode
Base URL: https://pay4fun.mimicr.dev · provider: https://go.dev.pay4fun.com

Reads a BR Code (copy and paste) and returns its data. Use it before a Pix-CopyPaste payment to check the receiver and amount. Moves no money.

Authorization

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

Body

application/json
documentstringrequired

The QR Code (copy and paste) to decode.

dateForPaymentstring | null

Scheduled payment date (ISO 8601).

externalIdentifierstring | null

Your own identifier, for reference.

Responses

200The decoded payload.
object

Raw decoded payload, as the Pix provider returned it; don't assume a fixed schema. In Mimicr: type (STATIC/DYNAMIC), pixKey, location, amount, currency, merchantName, merchantCity, txid and payload with the EMV fields.

400document empty or not decodable.
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."
401Missing, expired or invalid token. Empty body.