请求格式pathParam
invoicerequired uuid | 发票 ID |
响应格式data object
iduuid | 发票 ID |
info.currencystring | null | 发票的法币代码 |
info.tokenstring | null | 支付代币 |
info.networkstring | null | 支付网络 |
info.addressstring | null | 用于支付的钱包地址 |
amount.starting_pricenumber | 发票的初始法币金额 |
amount.discount_percentnumber | 折扣百分比 |
amount.merchant_fee_percentnumber | 商户手续费百分比 |
amount.service_fee_percentnumber | null | 平台服务费百分比 |
amount.totalnumber | 折扣和手续费后的最终金额 |
url.webhookurl | null | 商户 Webhook URL |
url.successurl | null | 支付成功后的跳转 URL |
url.errorurl | null | 支付失败后的跳转 URL |
url.paymenturl | 支付页面链接 |
options.part_paymentboolean | 是否允许部分付款 |
options.ignore_client_amountboolean | 是否忽略客户的精确金额 |
options.payment_accuracynumber | 允许的付款误差 |
additional.order_idstring | null | 外部订单 ID |
additional.infostring | null | 订单附加信息 |
statusstring | 发票当前状态 |
expired_atstring (ISO 8601, UTC) | 发票过期日期 |
created_atstring (ISO 8601, UTC) | 发票创建日期 |
payment.transactionsarray | 传入区块链交易列表 |
payment.transactions[].txidstring | null | 交易哈希 |
payment.transactions[].fromstring | null | 发送方地址 |
payment.transactions[].amountstring | null | 以代币最小单位表示的传入交易金额 |
payment.fiat_payment_amountnumber | 已支付的法币金额 |
payment.service_fee_amountnumber | 以法币计的累计服务费 |
请求示例
curl --request GET 'https://api.fps.pro/invoices/0a718b02-131d-495a-9641-39ca52139c07' \
成功响应
{
"status": 200,
"message": "success",
"data": {
"id": "0a718b02-138d-495a-9661-39ca52139c07",
"info": {
"currency": "USD",
"token": "tether",
"network": "tron",
"address": "TQ5x...abc"
},
"amount": {
"starting_price": 1000,
"discount_percent": 0,
"merchant_fee_percent": 10,
"service_fee_percent": 1,
"total": 1100
},
"url": {
"webhook": "https://merchant.example/webhook",
"success": "https://merchant.example/success",
"error": "https://merchant.example/error",
"payment": "https://frontend.example/0a718b02-138d-495a-9661-39ca52139c07"
},
"options": {
"part_payment": true,
"ignore_client_amount": false,
"payment_accuracy": 0
},
"additional": {
"order_id": "1",
"info": "test order"
},
"status": "paid",
"expired_at": "2026-01-05 14:30:43",
"created_at": "2026-01-05T13:30:43.000Z",
"payment": {
"transactions": [
{
"txid": "f4d4f497e6b32b6a4b8e...",
"from": "TFgN...sender",
"amount": "1100000000"
}
],
"fiat_payment_amount": 1100,
"service_fee_amount": 11
}
}
}错误
详细的授权错误列表位于 授权 - 错误
{
"status": 422,
"message": "Validation Error",
"errors": [
{
"field": "invoice",
"message": "The invoice must be UUID."
}
]
}{
"status": 404,
"message": "The invoice is not found"
}{
"status": 500,
"message": "Internal Server Error"
}