创建 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"
                }
            ]
        }
    ]
}

我尝试过的事情:

代码:

{
    "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