Home > widget-integration > CartAPI
CartAPI class
Signature:
export declare class CartAPI extends BoostAPI
Extends: BoostAPI
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Add single product to cart | ||
|
Add multiple products to cart in a single request | ||
|
Change cart item quantity with automatic retry on conflicts Uses exponential backoff strategy for 409 Conflict errors | ||
|
Clear all items from cart | ||
|
Get all cart data from Shopify | ||
|
Get array of items currently in cart | ||
|
|
Get request headers for cart API calls Override to add custom headers (tracking, authentication, etc.) | |
|
|
Get retry configuration for cart API operations Override to customize retry behavior for high-traffic shops | |
|
|
Process item properties before adding to cart Override to add shop-specific properties or modify default behavior |