Catalog shipping classes
What sets products apart for a shipping rate — «Bulky», «Fragile», «Frozen». A product names one; a shipping table prices each class through its own rates.
List catalog shipping classes
Lists the website's shipping classes by name; order_by takes 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: display_name asc. Sortable: display_name.
filterAIP-160 subset (§8). Filterable: none. A field outside the list is INVALID_ARGUMENT.
List catalog shipping classes › Responses
One page of catalog_shipping_classes.
This page of catalog_shipping_classes, 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 shipping class
Adds a shipping class. display_name is required and unique on the website: a taken one answers ALREADY_EXISTS, and a website that already has 50 classes answers FAILED_PRECONDITION LIMIT. A product joins the class through its shipping_class_id.
path Parameters
website_idId of the parent website.
Create catalog shipping class › Request Body
display_nameThe class's name, unique on the website — «Bulky», «Fragile», «Frozen». 1 to 100 characters, kept without the spaces around them.
descriptionWhat the class is for, as plain text for the shop's staff: at most 500 characters, kept without the spaces around them. Omitted while the class has none; null under update_mask, or a blank text, clears it.
Create catalog shipping class › 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 class's name, unique on the website — «Bulky», «Fragile», «Frozen». 1 to 100 characters, kept without the spaces around them.
descriptionWhat the class is for, as plain text for the shop's staff: at most 500 characters, kept without the spaces around them. Omitted while the class has none; null under update_mask, or a blank text, clears it.
Get catalog shipping class
Reads one shipping class of the website. A product's shipping_class_id names the class by this id.
path Parameters
website_idId of the parent website.
shipping_class_idId of the parent shipping_class.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get catalog shipping class › 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 class's name, unique on the website — «Bulky», «Fragile», «Frozen». 1 to 100 characters, kept without the spaces around them.
descriptionWhat the class is for, as plain text for the shop's staff: at most 500 characters, kept without the spaces around them. Omitted while the class has none; null under update_mask, or a blank text, clears it.
Delete catalog shipping class
Deletes a shipping class. A class products name is not deleted: FAILED_PRECONDITION SHIPPING_CLASS_IN_USE on websites/{website_id}/catalog_products, its description the number of those products.
path Parameters
website_idId of the parent website.
shipping_class_idId of the parent shipping_class.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete catalog shipping class › Responses
Deleted. No body (§7).
Update catalog shipping class
Renames a shipping class or changes its description. A display_name another class has answers ALREADY_EXISTS.
path Parameters
website_idId of the parent website.
shipping_class_idId of the parent shipping_class.
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 shipping class › Request Body
display_nameThe class's name, unique on the website — «Bulky», «Fragile», «Frozen». 1 to 100 characters, kept without the spaces around them.
descriptionWhat the class is for, as plain text for the shop's staff: at most 500 characters, kept without the spaces around them. Omitted while the class has none; null under update_mask, or a blank text, clears it.
Update catalog shipping class › 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 class's name, unique on the website — «Bulky», «Fragile», «Frozen». 1 to 100 characters, kept without the spaces around them.
descriptionWhat the class is for, as plain text for the shop's staff: at most 500 characters, kept without the spaces around them. Omitted while the class has none; null under update_mask, or a blank text, clears it.