Guides
Locations and QR codes
Create locations to reuse payload URLs, render the QR code image and detail a Pix Copy and Paste.
The location is the payload URL inside the dynamic QR code. Every cob and cobv gets a location when created, but you can also create the location first and link it later, for example to print the QR code before you know the amount.
Create and link
curl --request POST \
--url https://pix.efi.mimicr.dev/v2/loc \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "tipoCob": "cob" }'{ "id": 66, "location": "qrcodespix.efi.mimicr.dev/v2/7796e273b8e447c2b2c0ac2c58fe1a13", "tipoCob": "cob", "criacao": "2026-10-21T20:13:39.462Z" }tipoCob is cob or cobv, lowercase; any other value answers 400 json_invalido. To link it, send "loc": { "id": 66 } when creating or revising the charge. The location must be of the same type as the charge.
Render the image
curl --url https://pix.efi.mimicr.dev/v2/loc/66/qrcode \ --header 'Authorization: Bearer <token>'
{
"qrcode": "00020101021226830014BR.GOV.BCB.PIX2561qrcodespix.efi.mimicr.dev/v2/285d…63048137",
"imagemQrcode": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0i…",
"linkVisualizacao": "https://pix.efi.mimicr.dev/cob/pagar/285d07c6b1c54015e7326a3aa7d7a100"
}qrcodeis the BR Code (Pix Copy and Paste), with a valid CRC.imagemQrcodeis an SVG as a data URI, as at Efí (not PNG).linkVisualizacaoonly works in production at Efí. In Mimicr it has the same format and opens a page of the Pix host with the charge linked to the location (amount, debtor, status and the QR Code). The Pagar com Pix button pays the charge as the debtor, with the same effect as thepix.pay_cobaction. With no charge linked, the page only shows the location.
Mimicr's locations use the qrcodespix.efi.mimicr.dev host; the BR Codes cannot be paid with real banking apps.
Get, list and unlink
GET /v2/loc/:idreturns the location and, if any, the linkedtxid. An unknown id answers400 location_nao_encontrada.GET /v2/loc?inicio=…&fim=…lists, with thetipoCobandtxIdPresentefilters. The list comes inloc.DELETE /v2/loc/:id/txidunlinks the charge: the location loses itstxid, the charge loses its location and its status does not change.
Detail a QR code
Before paying a QR code with the account balance, you can read the charge data:
curl --request POST \
--url https://pix.efi.mimicr.dev/v2/gn/qrcodes/detalhar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "pixCopiaECola": "00020101021226830014BR.GOV.BCB.PIX2561qrcodespix.efi.mimicr.dev/v2/…" }'The response carries tipoCob, txid, status, devedor, recebedor, valor.final and chave. In Mimicr, only QR codes of the sandbox's own charges are detailed; a static QR answers 400 QrcodeOperacaoInvalida and an invalid code 422. To pay, see Pix send.
Reference: Create a location, Generate a QR code and Detail a QR code.