本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
action_name
variable's enum values.create_shipping_policy
print_shipping_policy
orders.read_write
- Orders Read & WriteAuthorization: Bearer ********************
print_prepare_list
, but required in some other actions, such as change_status
{
"operations": [
{
"action_name": "print_prepare_list"
},
{
"action_name": "change_status",
"value": {
"status": 525144736,
"send_status_sms": true,
"return_police": true,
"restore_items": true,
"note": "one note",
"branch_id": 21123
}
},
{
"action_name": "assign_users",
"value": [
461258256,
1968921873
]
},
{
"action_name": "assign_tags",
"value": [
"new tag",
"tag 3"
]
}
],
"filters": {
"order_ids": [
1296837389,
1936133132
],
"order_status": [
3,
5
]
}
}
curl --location --request POST 'https://echo.apifox.com/anything/orders/actions' \
--header 'Content-Type: application/json' \
--data-raw '{
"operations": [
{
"action_name": "print_prepare_list"
},
{
"action_name": "change_status",
"value": {
"status": 525144736,
"send_status_sms": true,
"return_police": true,
"restore_items": true,
"note": "one note",
"branch_id": 21123
}
},
{
"action_name": "assign_users",
"value": [
461258256,
1968921873
]
},
{
"action_name": "assign_tags",
"value": [
"new tag",
"tag 3"
]
}
],
"filters": {
"order_ids": [
1296837389,
1936133132
],
"order_status": [
3,
5
]
}
}'
{
"status": 200,
"success": true,
"data": [
{
"operation_id": "9c248334-f4cb-491b-84d0-57c415347d34",
"action_name": "print_prepare_list",
"status": "in_progress"
},
{
"operation_id": "9c248334-f4cb-491b-84d0-57c415347dd5",
"action_name": "change_status",
"status": "in_progress"
},
{
"operation_id": "9c248336-0080-440f-a936-68ee195e4139",
"action_name": "assign_users",
"status": "success"
},
{
"operation_id": "9c1ab67e-fd53-47da-a4d1-12cd69f7b656",
"action_name": "assign_tags",
"status": "failed",
"message": "لم يتم العثور على التاقات "
}
]
}
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升