Unable to create a product

16 views
Skip to first unread message

Yacine Belaifa

unread,
May 15, 2025, 9:49:54 PMMay 15
to Shopizer
Hi everyone,

I am trying to create a product and keep getting the same error message: 
{
    "errorCode": "500",
    "message": "product must have at least one availability"
}
here is my payload

{
  "available": true,
  "categories": [],
  "dateAvailable": "2025-05-15T00:00:00",
  "creationDate": "2025-05-15T00:00:00",
  "descriptions": [
    {
      "language": "en",
      "name": "Wrap-around handguard kit",
      "description": "<ul><li>Including all required assembly materials</li><li>Extremely sturdy aluminum brackets</li><li>Prevents broken levers</li></ul>",
      "friendlyUrl": "wrap-around-handguard-kit",
      "title": "Wrap-around handguard kit"
    }
  ],
  "price": 1172,
  "productShipeable": true,
  "productVirtual": false,
  "quantity": 3,
  "quantityOrderMaximum": 1,
  "quantityOrderMinimum": 1,
  "refSku": "79702984044",
  "sku": "79702984044",
  "type": "GENERAL",
  "visible": true,
  "images": [
    {
      "imageUrl": "https://cms.jinomotos.com/pim/7/7b75de5b-c86b-4ba8-aa9b-7ab641281744.jpg",
      "defaultImage": true,
      "imageType": 1,
      "name": "handguard-main"
    },
    {
      "imageUrl": "https://cms.jinomotos.com/pim/2/285a6966-77b2-43ae-84b0-eea3189dc078.jpg",
      "defaultImage": false,
      "imageType": 1,
      "name": "handguard-side"
    }
  ],
  "productSpecifications": {
    "dimensionUnitOfMeasure": "cm",
    "weightUnitOfMeasure": "kg",
    "height": null,
    "length": null,
    "width": null,
    "weight": null,
    "manufacturer": null,
    "model": null
  },
  "availabilities": [
    {
      "region": "*",
      "productQuantity": 3,
      "productQuantityOrderMin": 1,
      "productQuantityOrderMax": 1,
      "productStatus": true,
      "available": true,
      "productIsAlwaysFreeShipping": false
    }
  ]
}
I am using version 3.2.7
Thank you very much!
Reply all
Reply to author
Forward
0 new messages