API Reference
API Pix: authenticationPOSTGet a token
Billing · AuthenticationPOSTGet a token (Billing)
Billing · NotificationsGETGet a notification
Payload locations

Generate a QR code

GET/v2/loc/{id}/qrcode
Base URL: https://pix.efi.mimicr.dev · provider: https://pix-h.api.efipay.com.br

Generates 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

idintegerrequired

Location id.

Responses

200QR code.
qrcodestring

BR Code (Pix Copy and Paste).

Example: "00020101021226830014BR.GOV.BCB.PIX2561qrcodespix.efi.mimicr.dev/v2/285d07c6b1c54015e7326a3aa7d7a1005204000053039865802BR5912EXEMPLOS EFI6008SAOPAULO62070503*..."
imagemQrcodestring

QR code image in SVG, as a base64 data URI.

Example: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MSA1MSIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cGF0aCBmaWx..."
linkVisualizacaostring

Page showing the charge and the QR Code (in Mimicr, it lets you pay the charge).

Example: "https://pix.efi.mimicr.dev/cob/pagar/285d07c6b1c54015e7326a3aa7d7a100"
400location_nao_encontrada: no location with this id.
nomestringrequired

Error code in snake_case, for example cobranca_nao_encontrada.

Example: "cobranca_nao_encontrada"
mensagemstringrequired

Error message in Portuguese.

Example: "Nenhuma cobrança encontrada para o txid informado"
errosobject[]

Schema validation details (only on json_invalido).

Show child attributes
chavestring

Keyword of the violated rule, for example required, pattern or enum.

Example: "pattern"
caminhostring

Path of the invalid field, for example .body.valor.original.

Example: ".body.valor.original"
mensagemstring

Description of the violation.

401Missing, invalid or expired token, or a token issued for another API (invalid_token).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"
403The token lacks the required scope (insufficient_scope).
errorstringrequired

OAuth error code.

invalid_clientinvalid_tokeninsufficient_scopeunsupported_grant_type
error_descriptionstringrequired

Error description.

Example: "Access token has insufficient scope"