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

simplest way to create listings on sandbox

I need to create a listing in sandbox and then place order for that listing in order to check the notification and data sent by ebay notification to my webhook endpoint. But unable to create the listing using APIs.

"message": "A user error has occurred. Invalid <ShippingPackage>."

 

Getting this error while publishing the the offer.

Message 1 of 8
latest reply
7 REPLIES 7

simplest way to create listings on sandbox

I got the same issue when using publish offer API. 

https://api.sandbox.ebay.com/sell/inventory/v1/offer/{offerId}/publish

 

 

Can someone please help?

 

Thank you.

Message 2 of 8
latest reply

simplest way to create listings on sandbox

@ahhas_4534 

@jish-7749 

 

To both of you, be sure that the shipping policy (fulfillmentPolicy) includes the correct shipping parameters for both the item and for your country.

 

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

simplest way to create listings on sandbox

Hi Shipscript,

 

Thanks for your reply.

I have created my fulfillment, payment and return policy in my eBay sandbox. (I also created the test location for the offer)

 

Below is my test json for the offer:

 

{
    "sku""123",
    "marketplaceId""EBAY_GB",
    "format""FIXED_PRICE",
    "listingDescription""Test description",
    "availableQuantity"8,
    "pricingSummary": {
        "price": {
            "value"352.9,
            "currency""GBP"
        }
    },
    "listingPolicies": {
        "fulfillmentPolicyId""6200277000",
        "paymentPolicyId""6200274000",
        "returnPolicyId""6200275000"
    },
    "categoryId""183593",
    "merchantLocationKey""test_location_4",
    "tax": {
        "vatPercentage"10.2,
        "applyTax"true,
        "thirdPartyTaxCategory""Electronics"
    }
}
 
Can you see any problem in this offer?
 
Thank you very much.
 
Message 4 of 8
latest reply

simplest way to create listings on sandbox

Hi @shipscript ,

 

Besides from the offer and policy I created for publishing the offer, below is the test inventory I used:

{
            "sku""123",
            "locale""en_GB",
            "product": {
                "title""UKUKUKbTest listing UK EBAY_GB - do not bid or buy - awesome Apple watch test 2",
                "aspects": {
                    "CPU": [
                        "Dual-Core Processor"
                    ],
                    "Feature": [
                        "Water resistance",
                        "GPS"
                    ]
                },
                "description""Test listing - do not bid or buy \n Built-in GPS. Water resistance to 50 meters.1 A new lightning-fast dual-core processor. And a display that’s two times brighter than before. Full of features that help you stay active, motivated, and connected, Apple Watch Series 2 is designed for all the ways you move ",
                "upc": [
                    "888462079525"
                ],
                "imageUrls": [
                ]
            },
            "availability": {
                "shipToLocationAvailability": {
                    "quantity"8
                }
            }
        }
 
 
But I still get the error when publishing it.
 
P.S. test_location_4's  merchantLocationStatus is ENABLED
 
Thank you very much.
 
Message 5 of 8
latest reply

simplest way to create listings on sandbox

@jish-7749 

 

What is in your fulfillmentPolicy 6200277000?

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

simplest way to create listings on sandbox

@shipscript 

Thanks for your reply.
Here is my fulfillmentPolicy from API https://api.sandbox.ebay.com/sell/account/v1/fulfillment_policy?marketplace_id=EBAY_GB:

{
    "total"1,
    "fulfillmentPolicies": [
        {
            "name""Worldwide shipping options: Free domestic, CALCULATED int'l",
            "marketplaceId""EBAY_GB",
            "categoryTypes": [
                {
                    "name""ALL_EXCLUDING_MOTORS_VEHICLES",
                    "default"true
                }
            ],
            "handlingTime": {
                "value"1,
                "unit""DAY"
            },
            "globalShipping"false,
            "pickupDropOff"false,
            "localPickup"true,
            "freightShipping"false,
            "fulfillmentPolicyId""6200277000"
        }
    ]
}
Message 7 of 8
latest reply

simplest way to create listings on sandbox

For me, removing packageType from the inventory item fixed the issue.

Message 8 of 8
latest reply