收到 500 内部服务器错误执行https://connect.squareup.com/v1/batch的 POST
带有 JSON 对象
{“要求”:[
{"method":"DELETE", "relative_path":"/v1/me/items/13fd1363-2e1f-4b55-bfbf-f58b97814cfa", "access_token":"XXX-XXXXXXXXXXXXXXXXXX"},
{"method":"DELETE", "relative_path":"/v1/me/items/9d415859-8758-4147-aa16-7088c84bb201", "access_token":"XXX-XXXXXXXXXXXXXXXXXX"}
]}
当单独删除相同的项目时没有问题:
删除https://connect.squareup.com/v1/me/items/13fd1363-2e1f-4b55-bfbf-f58b97814cfa
另外,我已经能够批量执行库存调整,所以我认为我的技术还可以。
这是一个错误还是我做错了什么?
我正在修改原始帖子以包含建议的示例响应
[
{
"status_code": 200,
"body": {},
"request_id": "0"
},
{
"status_code": 200,
"body": {},
"request_id": "1"
},
{
"status_code": 200,
"body": {},
"request_id": "2"
},
{
"status_code": 500,
"body": {
"type": "internal_server_error",
"message": "InternalServerError"
},
"request_id": "3"
},
{
"status_code": 200,
"body": {},
"request_id": "4"
},
{
"status_code": 200,
"body": {},
"request_id": "5"
},
{
"status_code": 200,
"body": {},
"request_id": "6"
},
{
"status_code": 200,
"body": {},
"request_id": "7"
},
{
"status_code": 200,
"body": {},
"request_id": "8"
},
{
"status_code": 200,
"body": {},
"request_id": "9"
},
{
"status_code": 200,
"body": {},
"request_id": "10"
},
{
"status_code": 500,
"body": {
"type": "internal_server_error",
"message": "InternalServerError"
},
"request_id": "11"
},
{
"status_code": 200,
"body": {},
"request_id": "12"
},
{
"status_code": 200,
"body": {},
"request_id": "13"
},
{
"status_code": 200,
"body": {},
"request_id": "14"
},
{
"status_code": 500,
"body": {
"type": "internal_server_error",
"message": "InternalServerError"
},
"request_id": "15"
},
{
"status_code": 200,
"body": {},
"request_id": "16"
},
{
"status_code": 200,
"body": {},
"request_id": "17"
},
{
"status_code": 500,
"body": {
"type": "internal_server_error",
"message": "InternalServerError"
},
"request_id": "18"
},
{
"status_code": 200,
"body": {},
"request_id": "19"
},
{
"status_code": 200,
"body": {},
"request_id": "20"
},
{
"status_code": 200,
"body": {},
"request_id": "21"
},
{
"status_code": 200,
"body": {},
"request_id": "22"
},
{
"status_code": 200,
"body": {},
"request_id": "23"
},
{
"status_code": 200,
"body": {},
"request_id": "24"
}
]