API Reference
Generate a QR code
/v2/loc/{id}/qrcodehttps://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.brGenerates the QR Code of a location: the BR Code in qrcode, the SVG image in imagemQrcode and linkVisualizacao. At Efí the link only works in production; in Mimicr it opens a page of the Pix host with the linked charge and the QR Code, and the Pagar com Pix button pays the charge as the debtor (the same as the pix.pay_cob action).
Scope: payloadlocation.read.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Location id.
Responses
200QR code.
BR Code (Pix Copy and Paste).
"00020101021226830014BR.GOV.BCB.PIX2561qrcodespix.efi.mimicr.dev/v2/285d07c6b1c54015e7326a3aa7d7a1005204000053039865802BR5912EXEMPLOS EFI6008SAOPAULO62070503*..."QR code image in SVG, as a base64 data URI.
"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MSA1MSIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cGF0aCBmaWx..."Page showing the charge and the QR Code (in Mimicr, it lets you pay the charge).
"https://pix.efi.mimicr.dev/cob/pagar/285d07c6b1c54015e7326a3aa7d7a100"400location_nao_encontrada: no location with this id.
Error code in snake_case, for example cobranca_nao_encontrada.
"cobranca_nao_encontrada"Error message in Portuguese.
"Nenhuma cobrança encontrada para o txid informado"Schema validation details (only on json_invalido).
Show child attributes
Keyword of the violated rule, for example required, pattern or enum.
"pattern"Path of the invalid field, for example .body.valor.original.
".body.valor.original"Description of the violation.
401Missing, invalid or expired token, or a token issued for another API (invalid_token).
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"403The token lacks the required scope (insufficient_scope).
OAuth error code.
invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_typeError description.
"Access token has insufficient scope"