When creating a new SKU, there are restrictions set up in our platform that you will need to pay attention to. If you do not follow these, you will be unable to activate your SKU and it will not be displayed to customers.
When creating an SKU using the Create SKU endpoint, you should not set the IsActive
as true
. If you send the request to activate the SKU, you will receive a 400 Bad Request
error. The value to IsActive
must always be false
when sending that request.
To activate your SKU, it needs to have at least one image associated with it. If your SKU is a kit, it will also need to have at least one active component associated with it as well. If you send a request to Update SKU without meeting these conditions, you will receive a 400 Bad Request
error.
There are two ways that you can activate your SKU - manually or automatically.
Manual activation
To manually activate your SKU, follow these steps:
- Create the SKU, setting
IsActive
asfalse
. - If the SKU is a kit, create and associate SKU components.
- Create and associate SKU files.
- Update the SKU as active, setting
IsActive
astrue
.
Now the SKU should be active in your store.
Automatic activation
This configuration will automatically update the SKU as active once it is associated with an image or an active component. You do not need to update the SKU as in the previous steps.
To automatically activate your SKU, follow these steps:
- Create the SKU, setting
IsActive
asfalse
and theActivateIfPossible
attribute astrue
. - If the SKU is a kit, create and associate SKU components.
- Create and associate SKU files.
Now the SKU should be active in your store.