curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/trade/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"agreement_sign_params": {
"access_params": {
"channel": "ALIPAYAPP"
},
"period_rule_params": {
"execute_time": "string",
"period": 0,
"period_type": "string",
"single_amount": "string",
"total_amount": "string",
"total_payments": 0
},
"sub_merchant": {
"sub_merchant_id": "2088123412341234",
"sub_merchant_name": "滴滴出行",
"sub_merchant_service_description": "免密付车费,单次最高500",
"sub_merchant_service_name": "滴滴出行免密支付"
},
"allow_huazhi_degrade": false,
"external_agreement_no": "test20190701",
"external_logon_id": "13888888888",
"personal_product_code": "CYCLE_PAY_AUTH_P",
"product_code": "GENERAL_WITHHOLDING",
"recommend_sort_channel_params": [
{
"asset_type_code": "ALICREDIT",
"inst_id": "INST_ALIPAY"
}
],
"sign_notify_url": "http://www.merchant.com/receiveSignNotify",
"sign_scene": "INDUSTRY|DIGITAL_MEDIA"
},
"bkagent_req_info": {
"acq_code": "string",
"device_type": "string",
"location": "string",
"merch_code": "string",
"serial_num": "string"
},
"business_params": {
"actual_order_time": "string",
"campus_card": "string",
"card_type": "string",
"enterprise_pay_amount": "string",
"enterprise_pay_info": "string",
"good_taxes": "string",
"mc_create_trade_ip": "string",
"tiny_app_merchant_biz_type": "string"
},
"ext_user_info": {
"cert_no": "string",
"cert_type": "string",
"fix_buyer": "string",
"identity_hash": "string",
"min_age": "string",
"mobile": "string",
"name": "string",
"need_check_info": "string"
},
"extend_params": {
"card_type": "string",
"hb_fq_num": "string",
"hb_fq_seller_percent": "string",
"industry_reflux_info": "string",
"royalty_freeze": "string",
"specified_seller_name": "string",
"sys_service_provider_id": "string",
"trade_component_order_id": "string"
},
"logistics_detail": {
"logistics_type": "EXPRESS"
},
"receiver_address_info": {
"address": "上海市浦东新区陆家嘴银城中路501号",
"division_code": "310115",
"mobile": "13120180615",
"name": "张三",
"zip": "200120"
},
"royalty_info": {
"royalty_detail_infos": [
{
"amount": "string",
"amount_percentage": "string",
"batch_no": "string",
"desc": "string",
"out_relation_id": "string",
"serial_no": 0,
"trans_in": "string",
"trans_in_type": "string",
"trans_out": "string",
"trans_out_type": "string"
}
],
"royalty_type": "string"
},
"settle_info": {
"settle_detail_infos": [
{
"actual_amount": "string",
"amount": "string",
"settle_entity_id": "string",
"settle_entity_type": "string",
"summary_dimension": "string",
"trans_in": "string",
"trans_in_type": "string"
}
],
"settle_period_time": "string"
},
"sub_merchant": {
"merchant_id": "string",
"merchant_type": "string"
},
"alipay_store_id": "2016041400077000000003314986",
"body": "Iphone6 16G",
"buyer_id": "2088102146225135",
"buyer_logon_id": "15901825620",
"buyer_open_id": "074a1CcTG1LelxKe4xQC0zgNdId0nxi95b5lsNpazWYoCo5",
"disable_pay_channels": "pcredit,moneyFund,debitCardExpress",
"discountable_amount": "80.00",
"enable_pay_channels": "pcredit,moneyFund,debitCardExpress",
"goods_detail": [
{
"alipay_goods_id": "string",
"body": "string",
"categories_tree": "string",
"goods_category": "string",
"goods_id": "string",
"goods_name": "string",
"out_item_id": "string",
"out_sku_id": "string",
"price": "string",
"quantity": 0,
"show_url": "string"
}
],
"merchant_order_no": "20161008001",
"notify_url": "string",
"op_app_id": "2014072300007148",
"op_buyer_open_id": "074a1CcTG1LelxKe4xQC0zgNdId0nxi95b5lsNpazWYoCo5",
"operator_id": "Yx_001",
"out_trade_no": "20150320010101001",
"passback_params": "merchantBizType%3d3C%26merchantBizNo%3d2016010101111",
"product_code": "FACE_TO_FACE_PAYMENT",
"seller_id": "2088102146225135",
"store_id": "NJ_001",
"subject": "Iphone6 16G",
"terminal_id": "NJ_T_001",
"timeout_express": "90m",
"total_amount": "88.88",
"undiscountable_amount": "8.88",
"query_options": "[\"enterprise_pay_info\",\"hyb_amount\"]",
"time_expire": {}
}'