跳到主要内容

按密钥查询支付工具条目

按密钥查询支付工具条目将返回特定条目的完整详情,包括所有相关发票项目。

Request

ENDPOINT
/wallet/WALLET_KEY/payment_instrument/PAYMENT_INSTRUMENT_KEY/payment_instrument_entry/PAYMENT_INSTRUMENT_ENTRY_KEY
MÉTODO
GET

路径参数

字段类型描述字符数
wallet_keyuuidv4UUID v4 格式的钱包唯一密钥36
payment_instrument_keyuuidv4UUID v4 格式的支付工具唯一密钥36
payment_instrument_entry_keyuuidv4UUID v4 格式的条目唯一密钥36

Response

STATUS
200
Response Body:支付工具条目详情
{
"payment_instrument_entry_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"payment_instrument_entry_amount": 150.00,
"payment_instrument_entry_type": "purchase",
"payment_instrument_entry_status": "concluded",
"payment_instrument_entry_data": {
"merchant_name": "Merchant Name",
"merchant_country": "Merchant Country",
"merchant_postal_code": "Merchant Postal Code",
"merchant_city": "Merchant City",
"merchant_street": "Merchant Street"
},
"invoice_items": [
{
"invoice_item_key": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"invoice_key": "f2cad6b4-2a68-9572-99a7-2849c8d6ecf8",
"wallet_entry_key": null,
"payment_instrument_entry_key": "8cb70dea-9fb0-4a68-9572-99a72849c8d6",
"installment_number": 1,
"invoice_description": "Compra no estabelecimento XYZ",
"amount": 150.00,
"used_limit": 150.00,
"invoice_item_status": "concluded",
"invoice_item_due_date": "2024-02-15",
"created_at": "2024-01-15T10:30:00Z"
}
],
"created_at": "2024-01-15T10:30:00Z"
}

响应体参数

字段类型描述字符数
payment_instrument_entry_key *uuidv4uuid v4 格式的条目唯一识别密钥36
payment_instrument_entry_amount *number条目金额-
payment_instrument_entry_type *string支付工具条目类型payment_instrument_entry_type 枚举值
payment_instrument_entry_status *string工具条目状态payment_instrument_entry_status 枚举值
invoice_items *object array相关发票项目invoice_item 对象
payment_instrument_entry_dataobject附加数据payment_instrument_entry_data 对象
created_at *string创建日期(ISO 8601 UTC 格式)-

payment_instrument_entry_data 对象(purchase | withdraw)

字段类型描述字符数
merchant_name *string商家名称-
merchant_country *string商家所在国家-
merchant_postal_code *string商家邮政编码-
merchant_city *string商家所在城市-
merchant_street *string商家街道地址-

payment_instrument_entry_data 对象(postpaid_card_issuance)

字段类型描述字符数
postpaid_card_issuance_name *string后付费卡发卡名称-
payment_instrument_key *stringUUID v4 格式的支付工具唯一密钥36
postpaid_card_key *stringUUID v4 格式的后付费卡唯一密钥36
说明

此条目仅适用于代扣卡钱包卡。

payment_instrument_entry_type 枚举值

枚举值描述
purchase购买
withdraw提款
postpaid_card_issuance后付费卡发卡

payment_instrument_entry_status 枚举值

枚举值描述
processing_conclusion正在处理结算
processing_cancellation正在处理取消
concluded条目已结算
canceled条目已取消
说明

支付工具条目可以直接从 processing_conclusion 转换为 processing_cancellationcanceled。在这种情况下,不会创建发票项目。

invoice_item 对象

字段类型描述字符数
invoice_item_key *uuidv4uuid v4 格式的发票项目唯一识别密钥36
invoice_key *uuidv4uuid v4 格式的发票唯一识别密钥36
wallet_entry_keyuuidv4uuid v4 格式的钱包条目唯一识别密钥36
payment_instrument_entry_keyuuidv4uuid v4 格式的支付工具条目唯一识别密钥36
installment_number *integer分期编号-
invoice_description *string发票项目描述-
amount *number项目金额-
used_limit *number已用额度-
invoice_item_status *string发票项目状态invoice_item_status 枚举值
invoice_item_due_date *string项目到期日(YYYY-MM-DD 格式)10
created_at *string创建日期(ISO 8601 UTC 格式)-

invoice_item_status 枚举值

枚举值描述
concluded项目已结算(所属发票未支付)
canceled项目已取消

错误响应

STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 代码
status
QI 代码
code
标题
title
描述(英文)
description
描述(葡文)
translation
404CIN000007Wallet not FoundWallet with key: abeca0d0-a09d-4b3b-a495-40b553422ced was not foundCarteira com a chave: abeca0d0-a09d-4b3b-a495-40b553422ced não foi encontrado
404CIN000017Payment Instrument Not FoundPayment instrument was not foundInstrumento de pagamento não foi encontrado
404CIN000086Not FoundPayment instrument entry was not foundTransação para instrumento de pagamento não foi encontrada