question

afab-recycling avatar image
0 Likes"
afab-recycling asked

Listings created with api cannot be shipped.

So all of my listings for some reason cannot have shipping calculated for them. I have a location and every inventoryItem has had its availability set like the example below

"availability": {
  "shipToLocationAvailability": {
    "availabilityDistributions" : [
      {
        "quantity": 1,
        "merchantLocationKey": "onlyLocation"
      }
    ],
    "quantity": 1
  }
}

when I get my inventory items withgetInventoryItemsI get the following.

"inventoryItems": [
    {
      "sku": "510",
      "product": {
        ...
      "availability": {
        "pickupAtLocationAvailability": [
          {
            "merchantLocationKey": "onlyLocation"
          }
        ],
        "shipToLocationAvailability": {
          "quantity": 1
        }
      }
    },

This is weird since I didn't set a pickupAtLocationAvailability. When I get this item specifically though I get.

"availability": {
    "shipToLocationAvailability": {
      "availabilityDistributions": [
        {
          "merchantLocationKey": "onlyLocation",
          "quantity": 1
        }
      ],
      "quantity": 1,
      "allocationByFormat": {
        "auction": 0,
        "fixedPrice": 1
      }
    }
  }

Which looks correct.


So why cant the listing I create calculate shipping? Because of this users can't buy my items!

inventory locationitem.locationshippingfulfillment
· 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.

I have spent two weeks trying to figure this out I am desperate.

0 Likes 0 ·

0 Answers

· Write an Answer

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.