Pesquisas recentes


Sem pesquisas recentes

Sell Product API SKU value

Respondido


Publicado 27 de jul. de 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 comentário

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


Por favor, entrar para comentar.

Não encontrou o que estava procurando?

Nova publicação