Compose a dynamic Pix BR Code

​

Builds the EMV BR Code (pixCopiaECola) for a location URL and optionally its PNG image.

Body·
required
application/json
  • emitImage
    Type: boolean
  • locationUrl
    Type: string

    Charge location (tag 26.25). Absent on a recurrence-only QR Code (JORNADA_2).

  • merchantCity
    Type: string
  • merchantName
    Type: string
  • recLocationUrl
    Type: string

    Recurrence location (tag 80.25). Required on every composite QR Code.

  • size
    Type: integer Format: int32

    Signed 32-bit integers (commonly used integer type).

Responses
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/api/qr/compose
curl http://localhost:8080/api/qr/compose \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "locationUrl": "pix.finaya.tech/19abde72-7e4a-4a1a-9d5d-9c4b03a3e2e7",
  "recLocationUrl": "pix.finaya.tech/rec/2353c790eefb11eaadc10242ac120002",
  "merchantName": "Loja Exemplo",
  "merchantCity": "SAO PAULO",
  "emitImage": true,
  "size": 512
}'
{
  "pixCopiaECola": "00020101021226...6304ABCD",
  "imagem": "string"
}