SAQ DigitalDocs

    Check Status and Details of a Generated PIX Cash In by ID or EndToEnd

    This API retrieves the status and comprehensive details of a previously generated PIX QR Code. Query by QR Code ID or EndToEndId. Returns payment status, amounts, debtor information, dates, and associated account details.

    GEThttps://api.saq.digital/v2/finance/status-pix-copy-and-paste
    curl --request GET \
      --url 'https://api.saq.digital/v2/finance/status-pix-copy-and-paste' \
      --header 'Authorization: Bearer <ACCESS_TOKEN>'
    Response200
    {
      "id": 12345,
      "amount": 100.5,
      "status": "PAID",
      "pix_copy_and_paste": "00020126580014br.gov.bcb.pix0136...",
      "qr_code_url": "https://example.com/qrcode/12345.png",
      "debtor_name": "João da Silva",
      "debtor_document": "***.316.848-**",
      "created_at": "2026-04-25T10:30:00Z",
      "paid_at": "2026-04-25T11:45:00Z",
      "expiration_date": "2026-04-30T23:59:59Z",
      "tag": "Order #12345",
      "account_branch": "0001",
      "account_number": "12345678-9",
      "tax_value": 0.5,
      "end_to_end_id": "E12345678202604251234567890AB12345"
    }

    Query Parameters

    ParameterTypeDescriptionRequired
    idIntegerQR Code ID. Either id or e2e_id must be provided, but not both.Optional
    e2e_idStringEndToEndId (loc_id) of the QR Code. Either id or e2e_id must be provided, but not both.Optional

    Authentication

    HeaderTypeDescriptionRequired
    AuthorizationStringBearer token for authenticationYes

    Request Examples

    Query by ID:

    GET /v2/finance/status-pix-copy-and-paste?id=12345
    Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

    Query by EndToEndId:

    GET /v2/finance/status-pix-copy-and-paste?e2e_id=E12345678202604251234567890AB12345
    Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

    Response Example

    {
      "id": 12345,
      "amount": 100.50,
      "status": "PAID",
      "pix_copy_and_paste": "00020126580014br.gov.bcb.pix0136...",
      "qr_code_url": "https://example.com/qrcode/12345.png",
      "debtor_name": "João da Silva",
      "debtor_document": "***.316.848-**",
      "created_at": "2026-04-25T10:30:00Z",
      "paid_at": "2026-04-25T11:45:00Z",
      "expiration_date": "2026-04-30T23:59:59Z",
      "tag": "Order #12345",
      "account_branch": "0001",
      "account_number": "12345678-9",
      "tax_value": 0.50,
      "end_to_end_id": "E12345678202604251234567890AB12345"
    }

    Response Fields

    FieldTypeDescription
    idIntegerQR Code unique identifier
    amountFloatPayment amount
    statusStringQR Code status (NEW, PROCESSING, PAID, EXPIRED, CANCELED, CHARGEBACK)
    pix_copy_and_pasteStringPIX copy and paste code
    qr_code_urlStringURL to QR Code image
    debtor_nameStringName of the payer
    debtor_documentStringCPF/CNPJ of the payer
    created_atDateTimeQR Code creation timestamp
    paid_atDateTimePayment timestamp (if paid)
    expiration_dateDateTimeQR Code expiration date
    tagStringCustom tag or reference
    account_branchStringReceiving account branch/agency
    account_numberStringReceiving account number
    tax_valueFloatService tax charged (if applicable)
    end_to_end_idStringEndToEndId of the transaction

    Status Values

    StatusDescription
    NEWQR Code created and waiting for payment
    PROCESSINGPayment is being settled
    PAIDPayment completed successfully
    EXPIREDQR Code expired without payment
    CANCELEDQR Code cancelled before being paid
    CHARGEBACKPayment was refunded/charged back

    Error Responses

    Status CodeDescription
    400Bad request - Invalid parameters or QR Code not found
    401Unauthorized - Invalid or missing authentication
    500Internal server error

    Notes

    • Either id or e2e_id parameter must be provided, but not both
    • If both parameters are provided, a 400 error will be returned
    • If neither parameter is provided, a 400 error will be returned
    • Only QR Codes from your company can be queried
    • Access is validated based on user permissions for the associated account