查询支付链接详情
请求
GET
/v2/cashier/payment-link/{linkId}
响应
Request Body{
"code": 0,
"message": "success",
"data": {
"linkId": "egGFE9mdsSa6DM5YwNGY5w",
"orderId": "2022-12-15T14:07:00-01",
"amount": 9999,
"currency": "BRL",
"country": "BR",
"paymentStatus": "INITIAL_STATUS",
"callbackUrl": "https://your-domain/callback/",
"redirectUrl": "https://your-domain/checkout-page",
"description": "this is a test payment",
"finalPaymentMethod": null,
"finalStatusTimestamp": 0,
"finalStatusTime": null,
"refundAmount": null,
"refundStatus": "INITIAL_STATUS",
"refundTime": null,
"refundTimestamp": 0,
"name": "buyer name",
"email": "liquido-test@gmail.com",
"phone": "+5511999999999",
"documentId": "51364124025",
"merchant": {
"name": null,
"logo": null
},
"transferDetails": {
"pix": null,
"boleto": null,
"bankTransfer": null,
"payCash": null,
"pse": null
},
"allowPaymentMethods": [
"CREDIT_CARD",
"PIX",
"BOLETO",
"BANK_TRANSFER_BR"
],
"billingAddress": {
"zipCode": "04849333",
"state": "SP",
"city": "sao paulo",
"district": "Jardim Gaivotas",
"street": "Rua 9 de setembro",
"number": "15",
"country": "BR",
"complement": "casa"
},
"refunded": false
}
}
异常响应
当请求发生客户端异常时, 返回一个http status code 400的响应.
Request Body 字段说明
参数 |
类型 |
描述 |
linkId |
String |
payment link在liquido系统的唯一id. |
orderId |
String |
商家的唯一的订单id |
amount |
Long |
支付金额。 单位分。 例如 100=1BRL |
country |
String |
国家代码 |
currency |
String |
收款货币代码,长度为3个字节,如巴西: BRL |
allowPaymentMethods |
List |
声明支付页面包含哪些支付方式。 默认值是CREDIT_CARD. 已支持的支付方式查看这里 |
paymentStatus |
String |
支付状态,枚举: INITIAL_STATUS, IN_PROGRESS, SETTLED. |
finalPaymentMethod |
String |
用户完成支付的支付方式. |
finalStatusTime |
String |
用户完成支付的时间,时间格式: "yyyy-MM-dd HH:mm:ss", UTC时区 |
finalStatusTimestamp |
Long |
用户完成支付的时间戳。 |
refundTime |
String |
退款时间,如果支付没有退款,则为null,时间格式: "yyyy-MM-dd HH:mm:ss", 时区: UTC |
refundTimestamp |
Long |
退款完成的时间戳. 如果没有退款,则为0 |
refunded |
Boolean |
是否已退款 |
refundAmount |
Long |
退款金额。 单位分。例如100=1BRL。 |
refundStatus |
String |
退款状态,枚举: INITIAL_STATUS, IN_PROGRESS, SETTLED, FAILED. |
name |
String |
用户姓名。 |
email |
String |
用户邮箱。 |
phone |
String |
用户手机号。必须包含国际区号,如"+55". |
documentId |
String |
居民身份证件号,如巴西的CPF/CNPJ。不含分隔字符。 |
billingAddress |
Address Object |
账单地址. |
callbackUrl |
String |
商户接收回调通知的url. 如果为空则不发送通知. |
redirectUrl |
String |
支付完成后的重定向地址,如果为空则不重定向。 |
description |
String |
支付描述 |
transferDetails |
Object |
支付方式的详细信息,结构和 Payin中的"transferDetails"字段一致。当支付完成后,不再展示。 |
BillingAddress 对象字段说明
参数 |
类型 |
描述 |
zipCode |
String |
邮政编码,如巴西的CEP |
state |
String |
州,缩写,如圣保罗是SP |
city |
String |
城市. |
district |
String |
区县. |
street |
String |
街道. |
number |
String |
门牌号. |
complement |
String |
补充信息. |
country |
String |
国家代码. |
TransferDetails 对象字段说明
Pix
参数 |
类型 |
描述 |
qrCode |
String |
二维码 |
qrCodeType |
String |
二维码类型枚举,STATIC,DYNAMIC |
expirationTime |
String |
支付期限 |
Boleto
参数 |
类型 |
描述 |
barcode |
String |
条形码 |
digitalLine |
String |
数字线 |
paymentTerm |
JSON |
支付期限 |
PaymentTerm
参数 |
类型 |
描述 |
paymentDeadline |
Long |
支付期限,不能大于当前时间5年,秒级时间戳 |
BankTransfer
BankAccountInfo
参数 |
类型 |
描述 |
bankCode |
String |
银行代码,3位数字 |
beneficiaryName |
String |
受益人名称,例如 BRL_LIQUIDO |
bankAccountNumber |
String |
受益人账号 |
bankBranchId |
String |
银行分行Id |
bankAccountType |
String |
受益人账号类型,例如 ContaCorrente |
ispb |
String |
银行的ISPB, 用途和缩写bankCode一致, 8位数字 |
document |
String |
可确认身份的证件,CPF或CNPJ |