创建 eBay 履行政策。 ("Please select a valid postage service.")
Creating an eBay fulfilment policy. ("Please select a valid postage service.")
经过一天与 Postman 的合作,我已经设法将错误数量减少到 1 个。不知道如何克服它。
绝对不是权限问题。我打了很多授权电话。
URI:
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
)
- 制作国际选项和国内选项,两者都使用愚蠢的服务名称导致 3 个错误。 (我期待 4 个。)
代码:
{
"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"
}
]
}
]
}
这次我做错了什么?
查看它们 here。确保您拥有所有必填字段。
pickupDropOff
shippingOptions.shippingServices.shipToLocations.regionIncluded
我确实得到了问题的答案。不在这里,尽管我在这里向他们发送了 link,但我(最终)通过官方 eBay 渠道得到了答案。
我会post在这里为大家解答。我正在考虑添加正确的 Whosebug 格式,但决定最好保留原始答案的正确答案。
Hello Jonathon ,
Ignore my last message and Apologize for the confusion.
Here is the reason why you are getting the error:
You have to set "localPickup": "false", refer doc for your help:
https://developer.ebay.com/api-docs/sell/account/resources/fulfillment_policy/methods/createFulfillmentPolicy#request.localPickup
And you will get response as:
{ "name": "100 grams", "marketplaceId": "EBAY_AU",
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES",
"default": true
} ], "handlingTime": {
"value": 1,
"unit": "DAY" }, "shippingOptions": [
{
"optionType": "DOMESTIC",
"costType": "CALCULATED",
"shippingServices": [
{
"sortOrder": 1,
"shippingCarrierCode": "Australia Post",
"shippingServiceCode": "AU_Regular",
"freeShipping": false,
"buyerResponsibleForShipping": false,
"buyerResponsibleForPickup": false
}
],
"insuranceOffered": false,
"insuranceFee": {
"value": "0.0",
"currency": "AUD"
}
} ], "globalShipping": false, "pickupDropOff": false, "freightShipping": false, "fulfillmentPolicyId": "6104871000",
"warnings": [] }
Let us know if you need further assistance!!!
Best Regards, eBay Developer Support
经过一天与 Postman 的合作,我已经设法将错误数量减少到 1 个。不知道如何克服它。
绝对不是权限问题。我打了很多授权电话。
URI:
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
) - 制作国际选项和国内选项,两者都使用愚蠢的服务名称导致 3 个错误。 (我期待 4 个。)
代码:
{
"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"
}
]
}
]
}
这次我做错了什么?
查看它们 here。确保您拥有所有必填字段。
pickupDropOff
shippingOptions.shippingServices.shipToLocations.regionIncluded
我确实得到了问题的答案。不在这里,尽管我在这里向他们发送了 link,但我(最终)通过官方 eBay 渠道得到了答案。
我会post在这里为大家解答。我正在考虑添加正确的 Whosebug 格式,但决定最好保留原始答案的正确答案。
Hello Jonathon ,
Ignore my last message and Apologize for the confusion.
Here is the reason why you are getting the error:
You have to set "localPickup": "false", refer doc for your help: https://developer.ebay.com/api-docs/sell/account/resources/fulfillment_policy/methods/createFulfillmentPolicy#request.localPickup
And you will get response as:
{ "name": "100 grams", "marketplaceId": "EBAY_AU",
"categoryTypes": [ { "name": "ALL_EXCLUDING_MOTORS_VEHICLES", "default": true } ], "handlingTime": { "value": 1, "unit": "DAY" }, "shippingOptions": [ { "optionType": "DOMESTIC", "costType": "CALCULATED", "shippingServices": [ { "sortOrder": 1, "shippingCarrierCode": "Australia Post", "shippingServiceCode": "AU_Regular", "freeShipping": false, "buyerResponsibleForShipping": false, "buyerResponsibleForPickup": false } ], "insuranceOffered": false, "insuranceFee": { "value": "0.0", "currency": "AUD" } } ], "globalShipping": false, "pickupDropOff": false, "freightShipping": false, "fulfillmentPolicyId": "6104871000",
"warnings": [] }Let us know if you need further assistance!!!
Best Regards, eBay Developer Support