question

robertc5670 avatar image
0 Likes"
robertc5670 asked

Return policy

**Endpoint:** https://api.sandbox.ebay.com/sell/account/v1/return_policy **Payload:**
 {
    "name": "Month Policy",
    "marketplaceId": "EBAY_IE",
    "returnsAccepted": true,
    "returnPeriod": {
        "value": 1,
        "unit": "MONTH"
    },
    "refundMethod": "MONEY_BACK",
    "returnShippingCostPayer": "SELLER"
} 
**Response:**
{
  "errors": [
    {
      "errorId": 20402,
      "domain": "API_ACCOUNT",
      "category": "REQUEST",
      "message": "Invalid input. Value isn't supported",
      "parameters": [
        {
          "name": "fieldName",
          "value": ""
        },
        {
          "name": "additionalInfo",
          "value": "Value isn't supported"
        }
      ]
    }
  ]
}
Actually, I'm able to set only 14 days, other values generate the error.
return policy
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered
Hi robertc5670, The supported values for the unit field vary according to the object using the time duration, and you will need to call GeteBayDetails (passing ReturnPolicyDetails) in the request) in the Trading API to get the allowable values for the site of interest. The IE marketplace accepts three values: 14 days , 30 days and 60 days. Best Regards,
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zhuowei.developersupport@ebay.com avatar image
0 Likes"
zhuowei.developersupport@ebay.com answered
Hi robertc5670, Thank you for bringing this issue to our attention. We have reported it to our engineering team, and we will keep you updated on the progress of the issue when we have more information. Best Regards,
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.