TW-API
  1. V2
TW-API
  • 文档说明
  • 请求
  • 响应
  • V2
    • 获取派送产品列表
      POST
    • 订单试算
      POST
    • 订单预报
      POST
    • 订单状态查询
      POST
    • 订单详情
      POST
    • 面单下载
      POST
    • 订单删除
      POST
    • 预扣费查询
      POST
    • 打单余额
      POST
    • 查询账单
      POST
    • 查询账单明细
      POST
    • 审核包袋
      POST
    • 创建合包
      POST
    • 删除合包
      POST
    • 查询包袋信息
      POST
  1. V2

查询账单

POST
/api/v2/getBill
最后修改时间:2026-01-01 01:15:47

请求参数

Header 参数

Body 参数application/json

示例
{
    "date":"2025-07-18",
    "date_scope":[
		"2025-07-18",
		"2025-10-18"
    ],
    "page":1,
    "limit":2
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/api/v2/getBill' \
--header 'key;' \
--header 't;' \
--header 'username;' \
--header 'sign;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "date":"2025-07-18",
    "date_scope":[
		"2025-07-18",
		"2025-10-18"
    ],
    "page":1,
    "limit":2
}'

返回响应

🟢200成功
application/json
Body

示例
{
	"code": 200,
	"message": "OK",
	"data": {
		"current_page": 1,
		"data": [
			{
				"id": 1,
				"bill_at": "2025-09-18",
				"code": "20250918",
				"sort": "01",
				"balance_before": "14990.69",
				"charge_price": "0.00",
				"refund_price": "0.00",
				"balance_after": "11058.05",
				"bill_price": "-3932.64",
				"status": 1,
				"created_at": "2025-09-18 23:01:12"
			},
			{
				"id": 2,
				"bill_at": "2025-09-11",
				"code": "20250911",
				"sort": "01",
				"balance_before": "13199.24",
				"charge_price": "5000.00",
				"refund_price": "0.00",
				"balance_after": "14990.69",
				"bill_price": "-3208.55",
				"status": 1,
				"created_at": "2025-09-11 23:02:09"
			}
		],
		"last_page": 5,
		"per_page": "2",
		"total": 10
	}
}
🟠404失败
修改于 2026-01-01 01:15:47
上一页
打单余额
下一页
查询账单明细
Built with