Price Sets

Mutation

clonePriceSet — Returns PriceSet

Scopes Required: edit_products

Arguments Type Description

id

ID!

The ID of the price set to clone

name

String!

The name of the newly cloned price set

Example Mutation
mutation ClonePriceSet($id: ID!, $name: String!) {
    clonePriceSet(id: $id, name: $name) {
        id,
        name
    }
}

# Example variables
{
    "id": "<ID>",
    "name": "<NAME>"
}

Mutation

createPriceSet — Returns PriceSet

Scopes Required: edit_products

Arguments Type Description

name

String!

The name of the new price set

parentId

ID

The ID of the price set this should inherit from, if null it will inherit from the default prices

Example Mutation
mutation CreatePriceSet($name: String!) {
    createPriceSet(name: $name) {
        id,
        name
    }
}

# Example variables
{
    "name": "<NAME>"
}

Mutation

deletePriceSet — Returns PriceSet

Scopes Required: edit_products

Arguments Type Description

id

ID!

The ID of the price set to delete

Example Mutation
mutation DeletePriceSet($id: ID!) {
    deletePriceSet(id: $id) {
        id,
        name
    }
}

# Example variables
{
    "id": "<ID>"
}

Mutation

updatePriceSet — Returns PriceSet

Scopes Required: edit_products

Arguments Type Description

id

ID!

The ID of the price set

name

String

The name of the price set

parentId

ID

The parent ID for the price set

Example Mutation
mutation UpdatePriceSet($id: ID!) {
    updatePriceSet(id: $id) {
        id,
        name
    }
}

# Example variables
{
    "id": "<ID>"
}