cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error when Publishing offer in sandbox via API

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
latest reply
1 REPLY 1

Error when Publishing offer in sandbox via API

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

 

 

ShipScript has been an eBay Community volunteer since 2003, specializing in HTML, CSS, Scripts, Photos, Active Content, Technical Solutions, and online Seller Tools.
Message 2 of 2
latest reply