Skip to content

saveMembershipType

Create or update a membership type. A model with an id updates that membership type; without one, it creates one. Every save synchronises its inventory in the background.

catalog {
saveMembershipType(
andPublish: Boolean!
asTemplate: Boolean
model: MembershipTypeInput!
): MembershipType
}

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

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

The membership type to save.

A membership type: a membership that customers can buy.