绝对不是授权问题。我已经打了很多授权电话。
POST https://api.ebay.com/sell/account/v1/fulfillment_policy
{
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES"
}
],
"freightShipping": "false",
"globalShipping": "false",
"handlingTime": {
"unit": "DAY",
"value": "1"
},
"localPickup": "true",
"marketplaceId": "EBAY_AU",
"name": "100 grams",
"shippingOptions": [
{
"costType": "CALCULATED",
"optionType": "DOMESTIC",
"shippingServices": [
{
"shippingCarrierCode": "Australia Post",
"shippingServiceCode": "AU_Regular"
}
]
}
]
}
{
"errors": [
{
"errorId": 20403,
"domain": "API_ACCOUNT",
"category": "REQUEST",
"message": "Invalid .",
"longMessage": "Please select a valid postage service.",
"inputRefIds": [
"service"
],
"parameters": [
{
"name": "XPATH",
"value": "DomesticItemShippingService[0].shippingService"
}
]
}
]
}
"shippingOptions": [...]
(以及[]
内部的所有内容)摆脱了错误,并成功创建了新的履行政策。但是,我想在通话中包括运送选项。shippingCarrierCode
似乎没有任何作用。我已将其更改为各种明智和不明智的事情,包括将其完全删除。对输出无影响。 shippingServiceCode
更改为任何非标准(例如"shippingServiceCode": "potato"
)会导致得到完全相同的错误,但两次而不是一次。 (请参阅下文)如何仅使用一种运输选项就可以得到两次相同的错误?DomesticItemShippingService[1].shippingService
改为DomesticItemShippingService[0].shippingService
)代码:
{ "errors": [ { "errorId": 20403, "domain": "API_ACCOUNT", "category": "REQUEST", "message": "Invalid .", "longMessage": "Please select a valid postage service.", "inputRefIds": [ "service" ], "parameters": [ { "name": "XPATH", "value": "DomesticItemShippingService[0].shippingService" } ] }, { "errorId": 20403, "domain": "API_ACCOUNT", "category": "REQUEST", "message": "Invalid .", "longMessage": "Please select a valid postage service.", "inputRefIds": [ "service" ], "parameters": [ { "name": "XPATH", "value": "DomesticItemShippingService[1].shippingService" } ] } ] }
这次我做错了什么?
与Postman合作一天之后,我设法将错误的数量减少到1个。不知道如何克服它。绝对不是授权问题。我已经做了很多授权...
[将它们签出here。确保您具有所有必填字段。