Hello,
I’ve tried to create a Item with stock count. My API request look like:
But I got Server error 500.
Can you please tell me what I’m doing wrong ?
Hello,
I’ve tried to create a Item with stock count. My API request look like:
But I got Server error 500.
Can you please tell me what I’m doing wrong ?
We shouldn’t be returning that error and I’ll be sure to share it with the team. The problem with the request is that you’re passing in a quantity. If you remove the following it’ll work.
"stockable_conversion": {
"nonstockable_quantity": "1",
"stockable_item_variation_id": "#varid",
"stockable_quantity": "1"
}
When creating an item it doesn’t take a quantity. You’ll use the Inventory API to add quantity to item variations.