交易查询
Request
ENDPOINT
/account/ACCOUNT_KEY/transactionMÉTODO
GETRequest Path Params
| 字段 | 类型 | 描述 |
|---|---|---|
account_key * | string | QI 账户唯一识别密钥 |
Query Params
| 字段 | 类型 | 描述 |
|---|---|---|
date_from | string | 开始日期。格式 "YYYY-MM-DD" |
date_to | string | 结束日期。格式 "YYYY-MM-DD" |
order_by | string | "asc" 升序或 "desc" 降序。默认为 "desc" |
page | integer | 请求的页码。默认为 1 |
page_size | integer | 查询中请求的每页大小。默认为 4000 |
Response
成功响应
STATUS
200关于 Transaction Details 字段
此字段是一个对象,包含所执行交易类型的具体信息(Boleto 支付、TED 或 Pix)。
Response Body: Pix 交易
{
"data": [
{
"account_balance": 22403.11,
"agent_person_key": null,
"created_at": "2023-11-24 19:10:54",
"description": "329 0001 000002-5 32.402.502/0001-35 QI SOCIEDADE DE CRÉDITO DIRETO S.A.",
"origin_key": "4983e0ad-2212-44f9-8ab9-c243f72f90a8",
"source_subtype": {
"enumerator": "internal_pix_transfer",
"translation_ptbr": "Transferência de PIX"
},
"transacted_at": "2023-11-24 19:10:54",
"transaction_amount": 1,
"transaction_details": {
"payer_account_branch": "0001",
"payer_account_digit": "7",
"payer_account_number": "5267641",
"payer_document_number": "98765432100",
"payer_ispb": "32402502",
"payer_name": "Eduardo Spada",
"receiver_account_branch": "0001",
"receiver_account_digit": "5",
"receiver_account_number": "000002",
"receiver_conciliation_id": null,
"receiver_document_number": "32402502000135",
"receiver_ispb": "32402502",
"receiver_name": "QI SCD S.A."
},
"transaction_key": "b71ea9a3-e012-4761-bea6-e65c6bfc228f"
}
],
"pagination": {
"current_page": 1,
"next_page": null,
"rows_per_page": 30,
"total_pages": "unavailable",
"total_rows": null
}
}
Response Body: TED 交易
{
"data": [
{
"account_balance": 22403.11,
"agent_person_key": null,
"created_at": "2023-11-24 19:10:54",
"description": "329 0001 000002-5 32.402.502/0001-35 QI SOCIEDADE DE CRÉDITO DIRETO S.A.",
"origin_key": "4983e0ad-2212-44f9-8ab9-c243f72f90a8",
"source_subtype": {
"enumerator": "incoming_funds_transfer",
"translation_ptbr": "Transferência de Entrada"
},
"transacted_at": "2023-11-24 19:10:54",
"transaction_amount": 1,
"transaction_details": {
"receiver_account_number": "7212399",
"payer_account_branch": "120",
"payer_account_number": "84598",
"receiver_name": "QI SCD S.A.",
"receiver_account_branch": "2",
"payer_document_number": "23846749289329",
"payer_account_digit": "4",
"payer_ispb": "61231190",
"receiver_ispb": "32402502",
"receiver_document_number": "02983510938761",
"payer_name": "ASICS BRASIL DISTRIBUICAO E CO",
"receiver_account_digit": "3"
},
"transaction_key": "b71ea9a3-e012-4761-bea6-e65c6bfc228f"
}
],
"pagination": {
"current_page": 1,
"next_page": null,
"rows_per_page": 30,
"total_pages": "unavailable",
"total_rows": null
}
}
Response Body: Boleto 支付交易
{
"data": [
{
"account_balance": 22403.11,
"agent_person_key": null,
"created_at": "2023-11-24 19:10:54",
"description": "329 0001 000002-5 32.402.502/0001-35 QI SOCIEDADE DE CRÉDITO DIRETO S.A.",
"origin_key": "4983e0ad-2212-44f9-8ab9-c243f72f90a8",
"source_subtype": {
"enumerator": "bank_slip_payment",
"translation_ptbr": "Pagamento de Boleto"
},
"transacted_at": "2023-11-24 19:10:54",
"transaction_amount": 1,
"transaction_details": {
"beneficiary_legal_name": "COATIOSUERRA LTDA",
"barcode": "34191954500001165778979877821520910001098000",
"digitable_line": "34312123124532455091500010980001195450000116579",
"beneficiary_document_number": "61148052000102"
},
"transaction_key": "b71ea9a3-e012-4761-bea6-e65c6bfc228f"
}
],
"pagination": {
"current_page": 1,
"next_page": null,
"rows_per_page": 30,
"total_pages": "unavailable",
"total_rows": null
}
}
Response Body: 银行卡清算交易
{
"data": [
{
"account_balance": 22403.11,
"agent_person_key": null,
"created_at": "2023-11-24 19:10:54",
"description": "Nome da Credenciadora 12345678000195 - Elo Débito - Liquidação",
"origin_key": "4983e0ad-2212-44f9-8ab9-c243f72f90a8",
"source_subtype": {
"enumerator": "incoming_debit_card_settlement",
"translation_ptbr": "Liquidação de cartão de débito"
},
"transacted_at": "2023-11-24 19:10:54",
"transaction_amount": 1,
"transaction_details": {
"merchant_name": "Nome do Merchant",
"merchant_document_number": "87654321000198",
"acquirer_name": "Nome da Credenciadora",
"acquirer_document_number": "12345678000195",
"product_type": "ECD",
"product_description": "Elo Débito"
},
"transaction_key": "b71ea9a3-e012-4761-bea6-e65c6bfc228f"
}
],
"pagination": {
"current_page": 1,
"next_page": null,
"rows_per_page": 30,
"total_pages": "unavailable",
"total_rows": null
}
}
Response Body: 银行卡消费交易
{
"data": [
{
"account_balance": 20003.01,
"agent_person_key": null,
"created_at": "2023-11-24 19:10:54",
"description": "Cartão físico | Nome do Estabelecimento | SAO PAULO - BR | U3UUUU",
"origin_key": "c9f31beb-dafa-42c2-9a16-0854c523eabd",
"source_subtype": {
"enumerator": "card_purchase",
"translation_ptbr": "Compra com Cartão"
},
"transacted_at": "2023-11-24 19:10:54",
"transaction_amount": 17,
"transaction_details": {
"acquirer_code": "000000",
"merchant_mcc": "0000",
"merchant_name": "Nome do Estabelecimento",
"authorization_code": "U3UUUU",
"merchant_address": {
"postal_code": "00000123",
"city": "SAO PAULO",
"country": "BR"
},
"merchant_currency": "BRL",
"merchant_amount": "17.00",
"card_transaction_type": "purchase",
"card_type": "plastic"
},
"transaction_key": "b71ea9a3-e012-4761-bea6-e65c6bfc228f"
}
],
"pagination": {
"current_page": 1,
"next_page": null,
"rows_per_page": 30,
"total_pages": "unavailable",
"total_rows": null
}
}
关于 next_page 字段
pagination 对象中的 next_page 字段表示下一个可查询的页面。若无更多页面,返回值将为 null。
注意!
信用卡清算交易的 transaction_details 对象中的 product_type 字段由卡清算系统提供,可能返回 null。对于此类情况,应读取 product_description 字段以识别清算的 product_type。
product_type 枚举值
| 枚举值 | 描述 |
|---|---|
| ACC | American Express 信用卡 |
| BCC | Banescard 信用卡 |
| BCD | Banescard 借记卡 |
| BVV | Ben Visa Vale 预付卡 |
| CAC | Cielo Amex 信用卡 |
| CBC | Cabal 信用卡 |
| CBD | Cabal 借记卡 |
| CBP | Cabal 预付卡 |
| CC3 | 信用让渡中心 |
| CDC | Cielo Diners 信用卡 |
| CEC | Cielo Elo 信用卡 |
| CED | Cielo Elo 借记卡 |
| CHC | Cielo Hipercard 信用卡 |
| CMC | Cielo Mastercard 信用卡 |
| CMD | Cielo Mastercard 借记卡 |
| COP | COPASA - 米纳斯吉拉斯州卫生公司 |
| CUP | Cup 信用卡 |
| CZC | Credz 信用卡 |
| DCC | Diners 跨境清算信用卡 |
| ECB | Elo PAT - 福利卡 |
| ECC | Elo 信用卡 |
| ECD | Elo 借记卡 |
| GCC | Goodcard 信用卡 |
| GDC | Global Payments Diners 信用卡 |
| GMC | Global Payments MasterCard 信用卡 |
| GMD | Global Payments MasterCard 借记卡 |
| GVC | Global Payments VISA 信用卡 |
| GVD | Global Payments VISA 借记卡 |
| HCC | Hipercard 信用卡 |
| HCD | Hiper 借记卡 |
| JCC | JCB 信用卡 |
| MAC | Mais 信用卡 |
| MCA | MasterCard ATM 卡 |
| MCC | Mastercard 信用卡 |
| MCD | Maestro 借记卡 |
| MCP | Mastercard 预付卡 |
| NBA | Neoenergia - 巴伊亚州电力公司 |
| NBR | Neoenergia - 巴西利亚配电公司 |
| NEK | Neoenergia - Elektro Redes S/A |
| NPE | Neoenergia - 伯南布哥州能源公司 |
| NRN | Neoenergia - 北里奥格朗德州能源公司 |
| OCD | Ourocard 借记卡 |
| OT | 其他转账清算产品 |
| PCA | 集中征收平台 |
| SCC | Sorocred 信用卡 |
| SCD | Sorocred 借记卡 |
| SLC | 集中清算服务 |
| STC | SELTEC |
| TCB | Tecban |
| TED | TED 清算产品 |
| VCA | Visa ATM 卡 |
| VCC | Visa 信用卡 |
| VCD | Visa Electron 借记卡 |
| VCP | Visa 预付卡 |
| VDC | Verdecard 信用卡 |
| VDP | Verdecard 预付卡 |
| VIA | Visa 国际 ATM 取款 |
| VIC | Visa 国际信用购物 |
| VID | Visa 国际借记购物 |
| Alelo 预付卡 | |
| Agiplan 信用卡 | |
| Aura 信用卡 | |
| Calcard 信用卡 | |
| Credsystem 信用卡 | |
| Redesplan 信用卡 | |
| Sicred 信用卡 | |
| Avista 信用卡 | |
| Discover 信用卡 | |
| Sicredi 借记卡 | |
| Hiper 信用卡 | |
| Ticket 预付卡 | |
| Sodexo 预付卡 | |
| VR 预付卡 | |
| Policard 预付卡 | |
| Valecard 预付卡 | |
| Greencard 预付卡 | |
| Coopercard 预付卡 | |
| Verocheque 预付卡 | |
| Nutricash 预付卡 | |
| Banricard 预付卡 | |
| Socored 预付卡 | |
| Cielo 封闭安排信用卡 | |
| Cielo 封闭安排借记卡 |
source_sub_types 枚举值:
| 枚举值 | 描述 |
|---|---|
| operation_disbursement | 操作放款 |
| protest_expense | 抗议费用 |
| automatic_integrated_payment | 自动集成支付 |
| tax | 税款 |
| electronic_funds_fee | TED 手续费 |
| credit_operation_fee | 信贷开户手续费 |
| internal_funds_transfer | 内部转账 |
| incoming_funds_transfer | 入账转账 |
| outgoing_funds_transfer | TED |
| deposit | 存款 |
| withdrawal | 转账 |
| withdrawal_reversal | 转账冲销 |
| trade_funds_transfer | 让渡支付转账 |
| settlement_funds_transfer | 清算转账 |
| bank_slip_fee | Boleto 手续费 |
| bank_slip_settlement | Boleto 清算 |
| outgoing_funds_transfer_reversal | TED 冲销 |
| incoming_funds_transfer_refusal | 转账被拒 |
| electronic_funds_fee_reversal | TED 手续费冲销 |
| monthly_account_fee_reversal | 账户维护费冲销 |
| bank_slip_fee_reversal | Boleto 手续费冲销 |
| correspondent_bank_transfer | 银行代理转账 |
| credit_analysis_fee | 信贷分析手续费 |
| credit_operation_fee_reversal | 信贷开户手续费冲销 |
| financial_investments_income | 金融投资收益 |
| bank_slip_settlement_reversal | Boleto 清算冲销 |
| bank_slip_settlement_expense_reversal | Boleto 清算手续费冲销 |
| bank_slip_settlement_incoming_reversal | Boleto 清算收款冲销 |
| correspondent_bank_transfer_reversal | 银行代理转账冲销 |
| credit_analysis_fee_reversal | 信贷分析手续费冲销 |
| doc_expense_reversal | DOC 手续费冲销 |
| incoming_doc_reversal | DOC 入账冲销 |
| operation_disbursement_reversal | 操作放款冲销 |
| operation_settling_reversal | 操作付款冲销 |
| outgoing_doc_reversal | DOC 出账冲销 |
| rebate_reversal | 返点冲销 |
| settlement_funds_transfer_reversal | 清算转账冲销 |
| tax_reversal | 税款冲销 |
| trade_funds_transfer_reversal | 让渡支付转账冲销 |
| bank_slip_permanency_fee | 票据保留手续费 |
| bank_slip_cancel_protest_fee | 票据保留手续费 |
| bank_slip_protest_fee | 申请抗议手续费 |
| bank_slip_notary_office_fee | 公证处抗议费用 |
| bank_slip_registration_fee | 登记手续费 |
| bank_slip_extension_fee | 延期手续费 |
| bank_slip_rebate_fee | 折扣手续费 |
| bank_slip_discount_fee | 折扣手续费 |
| bank_slip_settlement_fee | 清算手续费 |
| bank_slip_write_off_term_fee | 到期注销手续费 |
| bank_slip_write_off_fee | 注销手续费 |
| bank_slip_cancel_protest_write_off_fee | 中止抗议并注销手续费 |
| bank_slip_notary_office_settlement_fee | 公证处清算手续费 |
| rebate_tax_free | 代收转付 |
| rebate_tax_free_reversal | 代收转付冲销 |
| incoming_funds_transfer_reversal | 内部转账冲销 |
| bank_slip_payment | Boleto 支付 |
| bank_slip_payment_reversal | Boleto 支付冲销 |
| warranty_analysis_fee | 担保分析手续费 |
| bank_slip_settlement_deposit | Boleto 清算 |
| bank_slip_payment_withdrawal | Boleto 支付 |
| account_setup_fee | 开户手续费 |
| account_setup_fee_reversal | 开户手续费冲销 |
| bank_slip_payment_withdrawal_reversal | Boleto 支付冲销 |
| incoming_anticipation_of_receivable | - |
| incoming_credit_card_settlement | 信用卡清算 |
| incoming_debit_card_settlement | 借记卡清算 |
| assignment_automatic_transfer | 自动让渡扣款 |
| assignment_automatic_transfer_reversal | 自动让渡扣款冲销 |
| pix_fee | PIX 手续费 |
| incoming_pix_transfer | PIX 入账 |
| outgoing_pix_transfer | PIX 出账 |
| pix_fee_reversal | PIX 手续费冲销 |
| incoming_pix_transfer_reversal | PIX 入账冲销 |
| outgoing_pix_transfer_reversal | PIX 出账冲销 |
| pix_deposit | PIX 存款 |
| pix_withdrawal | PIX 转账 |
| pix_withdrawal_reversal | PIX 转账冲销 |
| pix_chargeback_withdrawal | 发送 PIX 退款 |
| outgoing_pix_chargeback | PIX 退款出账 |
| incoming_pix_chargeback | 收到 PIX 退款 |
| pix_chargeback_deposit | PIX 退款入账 |
| pix_chargeback_withdrawal_reversal | 发送 PIX 退款冲销 |
| outgoing_pix_chargeback_reversal | PIX 退款出账冲销 |
| incoming_pix_chargeback_reversal | 收到 PIX 退款冲销 |
| operation_pix_disbursement | 操作 PIX 放款 |
| operation_pix_disbursement_reversal | 操作 PIX 放款冲销 |
| receivables_inquiry_fee | 应收账款查询手续费 |
| pix_deposit_reversal | PIX 存款冲销 |
| internal_pix_transfer | PIX 转账 |
| automatic_integrated_payment_reversal | 自动集成支付冲销 |
| operation_dibursement_reversal | 操作放款冲销 |
| available_yield | 流动性投资存款 |
| bank_slip_convenant_payment | 协议 Boleto 支付 |
prepaid_card_transaction_type 枚举值:
| 枚举值 | 描述 |
|---|---|
| purchase | 刷卡消费 |
| international_purchase | 国际刷卡消费 |
| withdrawal | ATM 取款 |
card_type 枚举值:
| 枚举值 | 描述 |
|---|---|
| plastic | 实体卡 |
| virtual | 虚拟卡 |