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

Failed to publish offer "Invalid <ShippingPackage>

Trying to publish a test offer in production and getting invalid shipping package. I think my InventoryItem and FulfillmentPolicy are set correctly. Anyone notice anything wrong here:

getInventoryItem: 
```
{
"sku": "DH8015-002_6_NWB",
"locale": "en_US",
"product": {
"title": "Test listing Nike Air Max 95 (w) DH8015-002 6W/4.5M",
"aspects": {
"Brand": [
"Nike"
],
"Department": [
"Women"
],
"Type": [
"Athletic"
],
"US Shoe Size": [
"6W"
],
"Color": [
"Grey"
],
"Style": [
"Sneaker"
],
"Upper Material": [
"Synthetic"
]
},
"description": "Test listing - do not bid or buy \n",
"upc": [
"DH8015-002"
],
"imageUrls": [
"https://i.ebayimg.com/images/g/J4QAAOSwz~hk-6Be/s-l1600.jpg",
"https://i.ebayimg.com/images/g/-wkAAOSwDclk-6Be/s-l1600.jpg",
"https://i.ebayimg.com/images/g/oHIAAOSwP9Nk-6Be/s-l1600.jpg"
]
},
"condition": "NEW",
"packageWeightAndSize": {
"dimensions": {
"width": 16,
"length": 10,
"height": 6,
"unit": "INCH"
},
"packageType": "MAILING_BOX",
"weight": {
"value": 2,
"unit": "POUND"
}
},
"availability": {
"shipToLocationAvailability": {
"availabilityDistributions": [
{
"merchantLocationKey": "Default-EBAY_US",
"fulfillmentTime": {
"value": 1,
"unit": "BUSINESS_DAY"
},
"quantity": 2
}
],
"quantity": 2,
"allocationByFormat": {
"auction": 0,
"fixedPrice": 2
}
}
}
}
```

getFullfilmentPolicy:
```
{
"name": "Shopify Shipping Policy - 4e79b6735580",
"marketplaceId": "EBAY_US",
"categoryTypes": [
{
"name": "ALL_EXCLUDING_MOTORS_VEHICLES",
"default": false
}
],
"handlingTime": {
"value": 1,
"unit": "DAY"
},
"shipToLocations": {},
"shippingOptions": [
{
"optionType": "DOMESTIC",
"costType": "CALCULATED",
"shippingServices": [
{
"sortOrder": 1,
"shippingCarrierCode": "UPS",
"shippingServiceCode": "UPSGround",
"freeShipping": false,
"buyerResponsibleForShipping": false,
"buyerResponsibleForPickup": false
}
],
"packageHandlingCost": {
"value": "0.0",
"currency": "USD"
},
"shippingDiscountProfileId": "0",
"shippingPromotionOffered": false
}
],
"globalShipping": false,
"pickupDropOff": false,
"localPickup": false,
"freightShipping": false,
"fulfillmentPolicyId": "130837717016"
}
```
getOffer:
```
{
"offerId": "363026991016",
"sku": "DH8015-002_6_NWB",
"marketplaceId": "EBAY_US",
"format": "FIXED_PRICE",
"pricingSummary": {
"price": {
"value": "300.0",
"currency": "USD"
}
},
"listingPolicies": {
"paymentPolicyId": "130837667016",
"returnPolicyId": "130837727016",
"fulfillmentPolicyId": "130837717016",
"eBayPlusIfEligible": false,
"bestOfferTerms": {
"bestOfferEnabled": true
}
},
"merchantLocationKey": "Default-EBAY_US",
"tax": {
"applyTax": false
},
"status": "UNPUBLISHED",
"listingDuration": "GTC",
"includeCatalogProductDetails": true,
"hideBuyerDetails": false
}
```
getLocation:
```
{
"merchantLocationKey": "Default-EBAY_US",
"location": {
"address": {
"city": "hidden",
"stateOrProvince": "hidden",
"postalCode": "hidden",
"country": "US"
},
"locationId": "032CC2F687C02B7FE0643CFDFEC1F944"
},
"merchantLocationStatus": "ENABLED",
"locationTypes": [
"WAREHOUSE"
]
}
```

Message 1 of 5
latest reply
4 REPLIES 4

Failed to publish offer "Invalid <ShippingPackage>

Failed to publish offer "Invalid <ShippingPackage>

Sorry I missed the section it was posted in. I asked the moderator to remove my post. 

But will add, could this be the issue: "name": "Shopify Shipping Policy - 4e79b6735580",

Don't know just making a wild guess. 

Message 3 of 5
latest reply

Failed to publish offer "Invalid <ShippingPackage>

As someone else noted, try removing your "packageType".  That's what fixed it for me.

Message 4 of 5
latest reply

Failed to publish offer "Invalid <ShippingPackage>

Hi everyone,

Due to the age of this thread, it has been closed to further replies. Please feel free to start a new thread if you wish to continue to discuss this topic.

Thank you for understanding.

Message 5 of 5
latest reply