Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Sell Product API SKU value

Beantwortet


Gepostet 27. Juli 2021

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 Kommentar

image avatar

Sabra

Zendesk Customer Care

Hey @...! 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


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post