Sell Product API SKU value
已回答
已于 2021年7月27日 发布
When I make a request to the API to create a product without the SKU key, I get the error "resource: product, field: /data/sku, code: blank, message: attribute can't be blank, details: This field may not be null."
If I provide the key and set it to an empty string (""), it gives the same error. Putting anything in the string allows the product to be created.
However, from the Sell UI, you can leave the SKU blank and it adds fine.
How do I create a product from the API with a blank SKU? If I can't, this is a bug...
0
1
1 条评论
Sabra
Hey 1264766765750! The SKU parameter is not a required parameter when creating a product via the Create a Product API. To create a product without a SKU, you can just leave the SKU parameter out of your request payload entirely. I'll go ahead and open a ticket on your behalf so that we can take a look at your use case in more detail.
0
登录再写评论。