- 支付
- 私域
- 公域
- 营销
- 资金
- 会员
- 信用
- 安全
- 其他
创建账单
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v3/alipay/ebpp/bill/add
alipay.ebpp.bill
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/ebpp/bill/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"bank_bill_no": "20130916",
"bill_date": "201203",
"bill_key": "3388102012376451",
"charge_inst": "BJCEB",
"extend_field": "{\"key1\":\"value1\",\"key2\":\"value2\",\"key3\":\"value3\",\"key4\":\"value4\"}",
"merchant_order_no": "201203031234567",
"mobile": "15987838584",
"order_type": "JF",
"owner_name": "织绫",
"pay_amount": "23.45",
"service_amount": "8",
"sub_order_type": "WATER",
"traffic_location": "浙江,杭徽高速",
"traffic_regulations": "闯红灯"
}'
响应示例响应示例
200 - 示例 1
{
"alipay_order_no": "201203088888888",
"bank_bill_no": "20130705",
"bill_date": "201203",
"bill_key": "3388102012376451",
"charge_inst": "BJCEB",
"charge_inst_name": "北京光大",
"extend_field": "20140504",
"merchant_order_no": "201203031234567",
"order_type": "JF",
"owner_name": "织绫",
"pay_amount": "23.45",
"service_amount": "8",
"sub_order_type": "WATER"
}
请求参数
Query 参数
auth_token
string
用户授权令牌
Body 参数application/json
bank_bill_no
string
外部订单号
示例值:
20130916
bill_date
string
可选
示例值:
201203
bill_key
string
可选
示例值:
3388102012376451
charge_inst
string
可选
示例值:
BJCEB
extend_field
string
扩展属性
示例值:
{"key1":"value1","key2":"value2","key3":"value3","key4":"value4"}
merchant_order_no
string
可选
示例值:
201203031234567
mobile
string
用户的手机号
示例值:
15987838584
order_type
string
可选
示例值:
JF
owner_name
string
可选
示例值:
织绫
pay_amount
string
可选
示例值:
23.45
service_amount
string
账单的服务费。
示例值:
8
sub_order_type
string
可选
示例值:
WATER
traffic_location
string
可选
示例值:
浙江,杭徽高速
traffic_regulations
string
可选
示例值:
闯红灯
示例
返回响应
🟢200common response
application/json
Body
alipay_order_no
string
可选
示例值:
201203088888888
bank_bill_no
string
可选
示例值:
20130705
bill_date
string
可选
示例值:
201203
bill_key
string
可选
示例值:
3388102012376451
charge_inst
string
可选
示例值:
BJCEB
charge_inst_name
string
出账机构中文名称。
示例值:
北京光大
extend_field
string
可选
示例值:
20140504
merchant_order_no
string
可选
示例值:
201203031234567
order_type
string
可选
示例值:
JF
owner_name
string
可选
示例值:
织绫
pay_amount
string
可选
示例值:
23.45
service_amount
string
账单的服务费
示例值:
8
sub_order_type
string
可选
示例值:
WATER
🔴500请求失败