Skip to content

saveMerchandise

Create or update a merchandise product. A model with an id updates that merchandise product; without one, it creates one.

catalog {
saveMerchandise(
andPublish: Boolean!
asTemplate: Boolean
model: MerchandiseInput!
): Merchandise
}

Publish the merchandise product once it is saved. Only a draft or lapsed merchandise product can be published. Not with asTemplate.

Save the merchandise product as a template to copy new ones from. Only a draft or a template can be saved as one. False by default.

The merchandise product to save.

Merchandise: a product with no date and no inventory.