本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
orders.read_write
- Orders Read & WriteAuthorization: Bearer ********************
{
"order_id": 837293123,
"identifier_type": "id",
"identifier": 123456,
"quantity": 1,
"branch_id": 12342,
"options": [
{
"id": 789012,
"value": [
"value1",
"value2"
]
}
],
"name": "Custom Product Name",
"price": 100.00,
"cost_price": 80.00,
"weight": 150,
"weight_type": "g"
}
curl --location --request POST 'https://echo.apifox.com/anything/orders/items' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id": 837293123,
"identifier_type": "id",
"identifier": 123456,
"quantity": 1,
"branch_id": 12342,
"options": [
{
"id": 789012,
"value": [
"value1",
"value2"
]
}
],
"name": "Custom Product Name",
"price": 100.00,
"cost_price": 80.00,
"weight": 150,
"weight_type": "g"
}'
{
"status": 200,
"success": true,
"data": [
{
"id": 365435777,
"name": "SSD",
"sku": "sam-ssd-256g",
"quantity": 1,
"currency": "SAR",
"weight": 0.51,
"weight_label": "٥١٠ جم",
"amounts": {
"price_without_tax": {
"amount": 150,
"currency": "SAR"
},
"total_discount": {
"amount": 0,
"currency": "SAR"
},
"tax": {
"percent": "15.00",
"amount": {
"amount": 22.5,
"currency": "SAR"
}
},
"total": {
"amount": 150,
"currency": "SAR"
}
},
"notes": "",
"options": [
{
"id": 675638105,
"product_option_id": 1902643925,
"name": "size",
"type": "radio",
"value": {
"id": 1090448197,
"name": "256G",
"price": {
"amount": 0,
"currency": "SAR"
}
}
}
],
"images": [],
"codes": [],
"files": [],
"reservations": [],
"branches_quantity": []
}
]
}
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升