LogoLogo
HomeBlogLoginSignup
  • Get started
  • Guides
  • Reference
  • Banking API
    • Entities
    • Counterparties
    • Institutions
    • Bank accounts
    • Virtual accounts
    • Collecting
      • Dynamic QR codes
      • Static QR codes
      • Refund
    • Payment
      • Pix Key
      • Pix Brcode
    • Transfer
    • Documents
      • Collecting
      • Collecting - Refund
      • Payment
      • Payment - Refund
      • Transfer
    • Checkout
    • Developers
      • Webhooks
Powered by GitBook
On this page

Was this helpful?

  1. Banking API
  2. Collecting

Dynamic QR codes

PreviousCollectingNextStatic QR codes

Last updated 4 months ago

Was this helpful?

Get a QRCode dynamic hash

get

Gets a dynamic hash

Path parameters
idstring · uuidRequired

Unique identifier

Responses
200
Hash
application/json
401
Unauthorized
application/json
404
Unprocessable Entity
application/json
500
Internal server error
application/json
get
GET /banking/cashin/pix/qrcodes/{id}/hash HTTP/1.1
Host: api.sandbox.trio.com.br
Accept: */*
{
  "data": {
    "hash": "0000BResdasadjvajsidunajkTTrioTecnologia"
  }
}

Get dynamic pix QRCode image

get

Gets a dynamic pix QRCode image

Path parameters
idstringRequired

Dynamic Pix QRCode ID

Responses
200
Image
application/json
401
Unauthorized
application/json
404
Unprocessable Entity
application/json
500
Internal server error
application/json
get
GET /banking/cashin/pix/qrcodes/{id}/image HTTP/1.1
Host: api.sandbox.trio.com.br
Accept: */*
{
  "data": {
    "image": "12389HV8AHRIKVHQ374HFULAGLE8FAH0H4F890QHO2HEFOA7EUG8FU"
  }
}
  • POSTCreate a new dynamic pix QRCode
  • GETGet a specific dynamic QRCode
  • GETGet a QRCode dynamic hash
  • GETGet dynamic pix QRCode image

Get a specific dynamic QRCode

get

Gets a specific dynamic QRCode

Path parameters
idstring · uuidRequired

Unique identifier

Responses
200
Dynamic
application/json
401
Unauthorized
application/json
404
Unprocessable Entity
application/json
500
Internal server error
application/json
get
GET /banking/cashin/pix/qrcodes/{id} HTTP/1.1
Host: api.sandbox.trio.com.br
Accept: */*
{
  "data": {
    "allow_change_the_amount_on_payment": true,
    "amount": {
      "amount": 10,
      "currency": "BRL"
    },
    "counterparty_bank_accounts": [
      {
        "branch": "0001",
        "digit": "12345",
        "ispb": "00000001",
        "number": "12345",
        "type": "checking"
      }
    ],
    "counterparty_id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2",
    "description": "QRCode 1",
    "expiration_datetime": "2025-02-03 14:34:00.770563Z",
    "external_id": "external_id",
    "hash": "123",
    "id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2",
    "image": "12389HV8AHRIKVHQ374HFULAGLE8FAH0H4F890QHO2HEFOA7EUG8FU",
    "origin_id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2",
    "origin_type": "none",
    "stages": [
      {
        "id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2",
        "status": "created",
        "timestamp": "2025-02-03 14:34:00.770565Z"
      }
    ],
    "status": "created",
    "timestamp": "2025-02-03 14:34:00.770551Z",
    "virtual_account_id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2"
  }
}

Create a new dynamic pix QRCode

post

Creates a new dynamic pix QRCode

Body

Body params to create a dynamic QRCode

amountintegerRequired

Amount value of the dynamic QRCode

descriptionstringOptional

Description of the dynamic QRCode

expiration_datetimestring · date-timeOptional

Expiration datatime

external_idstringOptional

External ID of the dynamic QRCode

virtual_account_idstringRequired

Virtual Account ID

Responses
201
Pix QRCode
application/json
401
Unauthorized
application/json
500
Internal server error
application/json
post
POST /banking/cashin/pix/qrcodes HTTP/1.1
Host: api.sandbox.trio.com.br
Content-Type: application/json
Accept: */*
Content-Length: 432

{
  "amount": 10,
  "counterparty": {
    "bank_accounts": [
      {
        "branch": "1",
        "digit": "1",
        "ispb": "00000001",
        "number": "80808080",
        "type": "checking"
      }
    ],
    "name": "counterparty_name",
    "tax_number": "45261517001"
  },
  "description": "description",
  "expiration_datetime": "2025-02-03 14:34:01.470951Z",
  "external_id": "external_id",
  "options": {
    "allow_change_the_amount_on_payment": true,
    "show_qrcode_image": true
  },
  "virtual_account_id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2"
}
{
  "data": {
    "allow_change_the_amount_on_payment": true,
    "amount": {
      "amount": 10,
      "currency": "BRL"
    },
    "counterparty_bank_accounts": [
      {
        "branch": "0001",
        "digit": "12345",
        "ispb": "00000001",
        "number": "12345",
        "type": "checking"
      }
    ],
    "counterparty_id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2",
    "description": "QRCode 1",
    "expiration_datetime": "2025-02-03 14:34:00.770563Z",
    "external_id": "external_id",
    "hash": "123",
    "id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2",
    "image": "12389HV8AHRIKVHQ374HFULAGLE8FAH0H4F890QHO2HEFOA7EUG8FU",
    "origin_id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2",
    "origin_type": "none",
    "stages": [
      {
        "id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2",
        "status": "created",
        "timestamp": "2025-02-03 14:34:00.770565Z"
      }
    ],
    "status": "created",
    "timestamp": "2025-02-03 14:34:00.770551Z",
    "virtual_account_id": "41234d60-f6a9-4c9c-8cc3-5769ce9bbea2"
  }
}