Products > Price Lists > priceListsCreate
Commerce APIProductsPrice ListspriceListsCreate
priceListsCreate
POST:price_lists.json

Description

Create one or multiple price lists.

Permission bit: "price_lists.create"

Topic: Price Lists

Arguments

data: [PriceListCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

customer_group_ids: [String!]

Customer group IDs to match against


date_range: DateRangeCreate

Date range to match against


display_price_difference: Boolean

Whether price difference should be displayed when this price list matches


name: String!

Name of the price list

Example: "Winter Sale"

Valid when: name is not empty

Valid when: name's length doesn't exceed 250 characters


parent_price_list_id: String

Unique price list identifier. See also: Unique Identifiers

Example: "pl_EQzGqWoY"

Valid when: parent_price_list_id matches regexp pattern: ^pl_


priority: Int

Priority of the rule (rule with higher priority is to be evaluated first)

Example: 0


sales_channel_ids: [String!]

Sales channel IDs to match against


Result

[PriceList!]

Preview (typescript)

Loading module