Error when Publishing offer in sandbox via API
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023 06:28 AM
Hi,
Can anyone please help me to publish an offer in eBay sandbox?
The api I used:
https://api.sandbox.ebay.com/sell/inventory/v1/offer/{offerId}/publish
The error I got:
{
"errors": [
{
"errorId": 25002,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "A user error has occurred. Invalid <ShippingPackage>."
}
]
}
Below is the offer I created:
{
"offerId": "8394309010",
"sku": "123",
"marketplaceId": "EBAY_GB",
"format": "FIXED_PRICE",
"listingDescription": "Test description",
"availableQuantity": 8,
"pricingSummary": {
"price": {
"value": "352.9",
"currency": "GBP"
}
},
"listingPolicies": {
"paymentPolicyId": "6200274000",
"returnPolicyId": "6200275000",
"fulfillmentPolicyId": "6200277000",
"eBayPlusIfEligible": false
},
"categoryId": "183593",
"merchantLocationKey": "test_location_4",
"tax": {
"vatPercentage": 10.2,
"applyTax": true,
"thirdPartyTaxCategory": "Electronics"
},
"status": "UNPUBLISHED",
"listingDuration": "GTC",
"includeCatalogProductDetails": true,
"hideBuyerDetails": false
}
P.S. I created payment, return and fulfilment policy ID successfully via sandbox APIs. So the policy Ids should be valid.
Thank you very much.
Message 1 of 2
1 REPLY 1
Re: Error when Publishing offer in sandbox via API
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2023 05:35 PM
A user error has occurred. Invalid <ShippingPackage>
I would recommend looking at your fulfillmentPolicy to see if all shipping parameters are included in that policy and are compatible with the product.
https://developer.ebay.com/devzone/xml/docs/reference/ebay/types/ShippingPackageDetailsType.html
https://developer.ebay.com/devzone/xml/docs/reference/ebay/types/ShippingPackageCodeType.html
Message 2 of 2
