Catalog price lists
Prices apart from the products’ own — for some customer groups, some views, one currency or every one, over a period. Where several active lists apply, the highest priority wins; a website prices at most 20 customer groups apart.
List catalog price lists
Lists the website's price lists, the highest priority first, then by name. filter takes is_active, customer_group_ids:"<id>" — the lists for one customer group — and view_ids:"<id>"; order_by takes priority and display_name.
path Parameters
website_idId of the parent website.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: priority desc, display_name asc. Sortable: display_name, priority.
filterAIP-160 subset (§8). Filterable: customer_group_ids, is_active, view_ids. A field outside the list is INVALID_ARGUMENT.
List catalog price lists › Responses
One page of catalog_price_lists.
This page of catalog_price_lists, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Create catalog price list
Adds a price list. display_name is required and unique on the website — a taken one answers ALREADY_EXISTS — and a website that already has 100 lists answers FAILED_PRECONDITION. Every id of customer_group_ids and view_ids must be a customer group or a view of the website; currency_code is the base currency or one of catalog_currencies, or absent for every currency; ends_at is after starts_at. An active list whose groups would make more than 20 customer groups priced apart answers FAILED_PRECONDITION PRICED_GROUPS_LIMIT.
path Parameters
website_idId of the parent website.
Create catalog price list › Request Body
display_nameThe list's name, unique on the website — «Wholesale», «Black Friday». Not blank, at most 255 characters.
priorityWhich list's entry a price comes from where several lists apply to it: the higher. 0 when omitted; negative numbers are fine.
is_activeWhether the list applies at all. Switched off, it keeps its entries and applies nowhere. true when omitted.
starts_atWhen the list starts to apply. Absent — from now on. null under update_mask clears it.
ends_atWhen the list stops applying: after starts_at. Absent — for good. null under update_mask clears it.
customer_group_idsThe ids of the website's customer groups the list is for, each once. Empty — the default — means every visitor, guests included. A group an active list names is priced apart: a website has at most 20 such groups, and a write past that answers FAILED_PRECONDITION PRICED_GROUPS_LIMIT. Deleting a group takes it out of every list, and a list it was the last group of is switched off rather than opened to everyone. customer_group_ids:"<id>" lists the lists for one group.
view_idsThe ids of the website's views the list applies on, each once, at most 100. Empty — the default — means every view. view_ids:"<id>" lists the lists for one view.
currency_codeThe one currency the list applies in and its entries' amounts are in: the website's base currency (general.catalog.base_currency) or one of its catalog_currencies. Absent — every currency, and then the entries take percent_off only. Changing it while an entry is an amount answers FAILED_PRECONDITION PRICE_LIST_AMOUNTS.
Create catalog price list › Responses
The created resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameThe list's name, unique on the website — «Wholesale», «Black Friday». Not blank, at most 255 characters.
priorityWhich list's entry a price comes from where several lists apply to it: the higher. 0 when omitted; negative numbers are fine.
is_activeWhether the list applies at all. Switched off, it keeps its entries and applies nowhere. true when omitted.
starts_atWhen the list starts to apply. Absent — from now on. null under update_mask clears it.
ends_atWhen the list stops applying: after starts_at. Absent — for good. null under update_mask clears it.
customer_group_idsThe ids of the website's customer groups the list is for, each once. Empty — the default — means every visitor, guests included. A group an active list names is priced apart: a website has at most 20 such groups, and a write past that answers FAILED_PRECONDITION PRICED_GROUPS_LIMIT. Deleting a group takes it out of every list, and a list it was the last group of is switched off rather than opened to everyone. customer_group_ids:"<id>" lists the lists for one group.
view_idsThe ids of the website's views the list applies on, each once, at most 100. Empty — the default — means every view. view_ids:"<id>" lists the lists for one view.
currency_codeThe one currency the list applies in and its entries' amounts are in: the website's base currency (general.catalog.base_currency) or one of its catalog_currencies. Absent — every currency, and then the entries take percent_off only. Changing it while an entry is an amount answers FAILED_PRECONDITION PRICE_LIST_AMOUNTS.
Get catalog price list
Prices apart from the products' own, for some customers and some views, in one currency or every one, over a period: «Wholesale» for the trade group, «Black Friday» for everyone. What the list prices is its entries — a product or one variant at a quantity, an amount or a percentage off. Where several active lists apply to a price the one of the highest priority wins. Deleting a list deletes its entries. At most 100 per website.
path Parameters
website_idId of the parent website.
price_list_idId of the parent price_list.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get catalog price list › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameThe list's name, unique on the website — «Wholesale», «Black Friday». Not blank, at most 255 characters.
priorityWhich list's entry a price comes from where several lists apply to it: the higher. 0 when omitted; negative numbers are fine.
is_activeWhether the list applies at all. Switched off, it keeps its entries and applies nowhere. true when omitted.
starts_atWhen the list starts to apply. Absent — from now on. null under update_mask clears it.
ends_atWhen the list stops applying: after starts_at. Absent — for good. null under update_mask clears it.
customer_group_idsThe ids of the website's customer groups the list is for, each once. Empty — the default — means every visitor, guests included. A group an active list names is priced apart: a website has at most 20 such groups, and a write past that answers FAILED_PRECONDITION PRICED_GROUPS_LIMIT. Deleting a group takes it out of every list, and a list it was the last group of is switched off rather than opened to everyone. customer_group_ids:"<id>" lists the lists for one group.
view_idsThe ids of the website's views the list applies on, each once, at most 100. Empty — the default — means every view. view_ids:"<id>" lists the lists for one view.
currency_codeThe one currency the list applies in and its entries' amounts are in: the website's base currency (general.catalog.base_currency) or one of its catalog_currencies. Absent — every currency, and then the entries take percent_off only. Changing it while an entry is an amount answers FAILED_PRECONDITION PRICE_LIST_AMOUNTS.
Delete catalog price list
Deletes a price list with all its entries. Switch is_active off instead to keep them.
path Parameters
website_idId of the parent website.
price_list_idId of the parent price_list.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete catalog price list › Responses
Deleted. No body (§7).
Update catalog price list
Changes a price list; each field sent is checked as on create, the period against the stored bound the body leaves out. A new currency_code while an entry of the list is an amount answers FAILED_PRECONDITION PRICE_LIST_AMOUNTS: the amounts are in the old one. Groups that would make more than 20 priced apart answer FAILED_PRECONDITION PRICED_GROUPS_LIMIT.
path Parameters
website_idId of the parent website.
price_list_idId of the parent price_list.
query Parameters
update_maskComma-separated field paths to merge. A field named here and sent as null is cleared; without the mask a null is dropped (§7, §11).
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Update catalog price list › Request Body
display_nameThe list's name, unique on the website — «Wholesale», «Black Friday». Not blank, at most 255 characters.
priorityWhich list's entry a price comes from where several lists apply to it: the higher. 0 when omitted; negative numbers are fine.
is_activeWhether the list applies at all. Switched off, it keeps its entries and applies nowhere. true when omitted.
starts_atWhen the list starts to apply. Absent — from now on. null under update_mask clears it.
ends_atWhen the list stops applying: after starts_at. Absent — for good. null under update_mask clears it.
customer_group_idsThe ids of the website's customer groups the list is for, each once. Empty — the default — means every visitor, guests included. A group an active list names is priced apart: a website has at most 20 such groups, and a write past that answers FAILED_PRECONDITION PRICED_GROUPS_LIMIT. Deleting a group takes it out of every list, and a list it was the last group of is switched off rather than opened to everyone. customer_group_ids:"<id>" lists the lists for one group.
view_idsThe ids of the website's views the list applies on, each once, at most 100. Empty — the default — means every view. view_ids:"<id>" lists the lists for one view.
currency_codeThe one currency the list applies in and its entries' amounts are in: the website's base currency (general.catalog.base_currency) or one of its catalog_currencies. Absent — every currency, and then the entries take percent_off only. Changing it while an entry is an amount answers FAILED_PRECONDITION PRICE_LIST_AMOUNTS.
Update catalog price list › Responses
The updated resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
display_nameThe list's name, unique on the website — «Wholesale», «Black Friday». Not blank, at most 255 characters.
priorityWhich list's entry a price comes from where several lists apply to it: the higher. 0 when omitted; negative numbers are fine.
is_activeWhether the list applies at all. Switched off, it keeps its entries and applies nowhere. true when omitted.
starts_atWhen the list starts to apply. Absent — from now on. null under update_mask clears it.
ends_atWhen the list stops applying: after starts_at. Absent — for good. null under update_mask clears it.
customer_group_idsThe ids of the website's customer groups the list is for, each once. Empty — the default — means every visitor, guests included. A group an active list names is priced apart: a website has at most 20 such groups, and a write past that answers FAILED_PRECONDITION PRICED_GROUPS_LIMIT. Deleting a group takes it out of every list, and a list it was the last group of is switched off rather than opened to everyone. customer_group_ids:"<id>" lists the lists for one group.
view_idsThe ids of the website's views the list applies on, each once, at most 100. Empty — the default — means every view. view_ids:"<id>" lists the lists for one view.
currency_codeThe one currency the list applies in and its entries' amounts are in: the website's base currency (general.catalog.base_currency) or one of its catalog_currencies. Absent — every currency, and then the entries take percent_off only. Changing it while an entry is an amount answers FAILED_PRECONDITION PRICE_LIST_AMOUNTS.