API Key & Notification Key的获取请通过Cube平台自助操作,详见说明文档
{ "delivery_address": { "district": "闵行区", "province": "上海", "country": "中国", "special_instructions": "发顺丰快递", "town": "人民路21号中华老字号", "zip": "463000", "city": "上海", "detail": "亚洲中国上海市闵行区人民路21号中华老字号光明街路易大道北走500米" }, "contact": { "mobile_area": "0375", "mobile_no": "5969789", "name": "李佳威", "email": "22456789045@qq.com", "tel_area": "86", "tel_code": "13567987906" }, "callback": "http://localhost/mno-gateway/internal/callback", "extra": { "po": "此订单仅支持测试使用-uat@everybody!", "remarks": "订单可用" }, "accounting": { "pay_channel": 1, "currency": "CNY" }, "items": [ { "price":300, "id": "CP-6HPXSI4NTIL", "quantity": 2 } ] }
curl --location --request POST 'https://api.linksfield.net/cube/v4/orders' \ --header 'Accept-Language: zh-CN' \ --header 'Authorization;' \ --header 'X-LF-Api-Version;' \ --header 'X-LF-Signature-Type;' \ --header 'timestamp;' \ --header 'nonce;' \ --header 'Content-Type: application/json' \ --data-raw '{ "delivery_address": { "district": "闵行区", "province": "上海", "country": "中国", "special_instructions": "发顺丰快递", "town": "人民路21号中华老字号", "zip": "463000", "city": "上海", "detail": "亚洲中国上海市闵行区人民路21号中华老字号光明街路易大道北走500米" }, "contact": { "mobile_area": "0375", "mobile_no": "5969789", "name": "李佳威", "email": "22456789045@qq.com", "tel_area": "86", "tel_code": "13567987906" }, "callback": "http://localhost/mno-gateway/internal/callback", "extra": { "po": "此订单仅支持测试使用-uat@everybody!", "remarks": "订单可用" }, "accounting": { "pay_channel": 1, "currency": "CNY" }, "items": [ { "price":300, "id": "CP-6HPXSI4NTIL", "quantity": 2 } ] }'
{ "data": { "status": 1, "created_at": 1686707689000, "order_id": "OL-6XB9I9XX8QNR" }, "status": { "code": "CB-00-0000", "message": "成功", "detail": "https://developer.linksfield.net/doc-1413557?nav=01GBM770ARR76AXBD5856Z6J6P" } }