Create order & Payment API
Run in Apifox
1.Create a new order and use the prepaid amount for payment. Once the order is successfully created and paid, procurement will proceed. If procurement fails, the prepaid amount will be refunded. 2.The request ID is unique and cannot be changed after the order is created. 3.The recipient addresses must be within China.
Request Body Params application/json
{
"appKey" : "" ,
"appSecret" : "" ,
"requestId" : "REQ202501011003" ,
"shippingAddress" : {
"name" : "张三" ,
"email" : "XXX@XXX.com" ,
"phone" : "18888888888" ,
"province" : "上海" ,
"city" : "上海市" ,
"district" : "闵行区" ,
"detailAddress" : "中华路29弄01室"
} ,
"product" : {
"dwSpuId" : "4329499" ,
"dwSkuId" : "620516702" ,
"distSpuId" : "" ,
"distSkuId" : "" ,
"quantity" : 1 ,
"price" : 5900
}
} Request Code Samples
curl --location 'https://openapi.dajisaas.com/poizon/order/createOrder' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey": "",
"appSecret": "",
"requestId": "REQ202501011003",
"shippingAddress": {
"name": "张三",
"email": "XXX@XXX.com",
"phone": "18888888888",
"province": "上海",
"city": "上海市",
"district": "闵行区",
"detailAddress": "中华路29弄01室"
},
"product": {
"dwSpuId": "4329499",
"dwSkuId": "620516702",
"distSpuId": "",
"distSkuId": "",
"quantity": 1,
"price": 5900
}
}' Responses application/json
Generate Code
{
"code" : 200 ,
"msg" : "success" ,
"data" : {
"requestId" : "REQ202501011003" ,
"customerOrderNo" : "OA00835379" ,
"distOrderNo" : "913033-OA00835379" ,
"orderItems" : [
{
"distSubOrderNo" : "913033-OA00835379_1" ,
"orderStatus" : "PAID" ,
"distSkuId" : "379a2694-8ff9-47c6-9e9c-2de3c536511e" ,
"dwSkuId" : "620516702" ,
"quantity" : 1 ,
"createTime" : 1779172708157 ,
"modifyTime" : 1779172708157 ,
"realPayAmount" : "59.00" ,
"currency" : "CNY"
}
]
} ,
"status" : 200
} Modified at 2026-05-19 07:05:37