question

guls_guys avatar image
0 Likes"
guls_guys asked

Failed publishOfferByInventoryItemGroup; Error in return policy; bug in return policy

Hello all,

I'm trying to publish item group VIA this API

sell/inventory/v1/offer/publish_by_inventory_item_group/

https://developer.ebay.com/api-docs/sell/inventory/resources/offer/methods/publishOfferByInventoryItemGroup

And getting following error on posting this request :

{'errors': [ {'errorId': 25002, 'domain': 'API_INVENTORY', 'subdomain': 'Selling', 'category': 'REQUEST', 'message': 'A user error has occurred. Please specify a valid return policy.', 'parameters': [{'name': '0', 'value': 'InternationalReturnsAcceptedOption'}]} ]}

Seems like something wrong with the API, as there's no such field like 'InternationalReturnsAcceptedOption' in my return policy and also nothing like this attribute in ebay return policy REST API documentation.

Following is return policy on UI (attached image) and API get return policy response



API reponse get return_policy:

sell/account/v1/return_policy?marketplace_id=EBAY_GB

{'total': 1, 'returnPolicies': [{'name': 'Returns policy Large Item', 'description': 'Customer to pay for return postage. Upon return we will inspect the item and if it was a manufacturing the fault then we will reimburse the return shipping to customer', 'marketplaceId': 'EBAY_GB', 'categoryTypes': [{'name': 'ALL_EXCLUDING_MOTORS_VEHICLES', 'default': True}], 'returnsAccepted': True, 'returnPeriod': {'value': 14, 'unit': 'DAY'}, 'returnShippingCostPayer': 'BUYER', 'internationalOverride': {'returnsAccepted': False}, 'returnPolicyId': ''*********'}]}

API response get fulfillment_policy (Incase this is helpful in debugging this err):

sell/account/v1/fulfillment_policy?marketplace_id=EBAY_GB

{'total': 1, 'fulfillmentPolicies': [{'name': 'Postage policy Free Delivery', 'description': 'Domestic: Free delivery', 'marketplaceId': 'EBAY_GB', 'categoryTypes': [{'name': 'ALL_EXCLUDING_MOTORS_VEHICLES', 'default': True}], 'handlingTime': {'value': 3, 'unit': 'DAY'}, 'shipToLocations': {'regionIncluded': [], 'regionExcluded': [{'regionName': 'Channel Islands'}, {'regionName': 'Isle of Man'}, {'regionName': 'Isle of Wight'}, {'regionName': 'Northern Ireland'}, {'regionName': 'PO Box'}, {'regionName': 'Scilly Isles'}, {'regionName': 'Scottish Highlands'}, {'regionName': 'Scottish Islands'}]}, 'shippingOptions': [{'optionType': 'DOMESTIC', 'costType': 'FLAT_RATE', 'shippingServices': [{'sortOrder': 1, 'shippingCarrierCode': 'GENERIC', 'shippingServiceCode': 'UK_OtherCourier', 'shippingCost': {'value': '0.0', 'currency': 'GBP'}, 'additionalShippingCost': {'value': '0.0', 'currency': 'GBP'}, 'freeShipping': True, 'buyerResponsibleForShipping': False, 'buyerResponsibleForPickup': False}, {'sortOrder': 2, 'shippingCarrierCode': 'GENERIC', 'shippingServiceCode': 'UK_CollectInPerson', 'shippingCost': {'value': '0.0', 'currency': 'GBP'}, 'additionalShippingCost': {'value': '0.0', 'currency': 'GBP'}, 'freeShipping': False, 'buyerResponsibleForShipping': False, 'buyerResponsibleForPickup': False}], 'insuranceOffered': False, 'insuranceFee': {'value': '0.0', 'currency': 'GBP'}}], 'globalShipping': False, 'pickupDropOff': False, 'freightShipping': False, 'fulfillmentPolicyId': '*********'}]}


Any help is much appreciated

publishofferbyinventoryitemgroupreturnpolicyinternationalreturnsacceptedoption
1625588181775.png (58.6 KiB)
· 1
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.

1 Answer

· Write an Answer
guls_guys avatar image
0 Likes"
guls_guys answered

I created an another return policy and that new return policy worked for a while, but as soon i removed earlier policy ebay enforced 'internationalOverride': {'returnsAccepted': False} this attribute into newer return policy. It seems a bug, any tip to resolve this?

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.