Readonly
authThis is the instance of the {@see CommercetoolsAuth} class that this class uses internally. It's exposed publicly so that it can be used by consumer's of this class in order to access authorization API related functionality.
Readonly
configThe configuration passed in to the constructor.
Readonly
endpointsThe Auth and API endpoints driven by the user's setting of CommercetoolsApiConfig.region https://docs.commercetools.com/api/general-concepts#regions
Private
Readonly
requestThe request executor that's responsible for making the request to commercetools
Change the customer's password: https://docs.commercetools.com/api/projects/me-profile#change-customers-password
Check if a cart exists by id https://docs.commercetools.com/api/projects/carts#check-if-cart-exists-by-id
Check if a cart exists by key https://docs.commercetools.com/api/projects/carts#check-if-cart-exists-by-id
Create a customer account: https://docs.commercetools.com/api/projects/customers#create-customer-sign-up
Create a new cart: https://docs.commercetools.com/api/projects/carts#create-a-cart-1
Create a category: https://docs.commercetools.com/api/projects/categories#create-a-category
Create a customer group: https://docs.commercetools.com/api/projects/customerGroups#create-a-customergroup
Create InventoryEntry https://docs.commercetools.com/api/projects/inventory#create-inventoryentry
Create a customer account given an (optional) anonymous access token: https://docs.commercetools.com/api/projects/me-profile#create-customer-sign-up
Create a new cart for the customer associated with the given accessToken
parameter:
https://docs.commercetools.com/api/projects/me-carts#create-a-cart-1
Create an order from the given cart id. The cart id and version are automatically retrieved by looking up the customers active cart: https://docs.commercetools.com/api/projects/me-orders#create-order-from-a-cart
Create a payment object using the customer's access token: https://docs.commercetools.com/api/projects/me-payments#create-mypayment
Create an order from the given cart id. The cart id and version are automatically retrieved by looking up the cart: https://docs.commercetools.com/api/projects/orders#create-order
Create a payment object: https://docs.commercetools.com/api/projects/payments#create-a-payment
Create a product: https://docs.commercetools.com/api/projects/products#create-a-product
Create a product selection https://docs.commercetools.com/api/projects/product-selections#create-product-selection
Create a standalone price object: https://docs.commercetools.com/api/projects/standalone-prices#create-standaloneprice
Delete a cart by the given id: https://docs.commercetools.com/api/projects/carts#delete-a-cart-by-id
Delete a category by id: https://docs.commercetools.com/api/projects/categories#delete-category-by-id
Delete a category by key: https://docs.commercetools.com/api/projects/categories#delete-category-by-key
Delete a custom object https://docs.commercetools.com/api/projects/custom-objects#delete-customobject-by-container-and-key
Delete a customer account by id https://docs.commercetools.com/api/projects/customers#delete-customer-by-id
Delete a customer account by key https://docs.commercetools.com/api/projects/customers#delete-customer-by-key
Delete a customer group by id: https://docs.commercetools.com/api/projects/customerGroups#delete-customergroup-by-id
Delete a customer group by key: https://docs.commercetools.com/api/projects/customerGroups#delete-customergroup-by-key
Delete InventoryEntry by id https://docs.commercetools.com/api/projects/inventory#delete-inventoryentry-by-id
Delete InventoryEntry by key https://docs.commercetools.com/api/projects/inventory#delete-inventoryentry-by-key
Delete the active cart This method uses {@see getMyActiveCart} to first get the active cart, in order to find the cart id and version: https://docs.commercetools.com/api/projects/me-carts#delete-a-cart
Delete my cart by id https://docs.commercetools.com/api/projects/me-carts#delete-a-cart
Delete payment object using the customer's access token: https://docs.commercetools.com/api/projects/me-payments#delete-mypayment
Delete an order by id: https://docs.commercetools.com/api/projects/orders#delete-order-by-id
Delete an order by order number: https://docs.commercetools.com/api/projects/orders#delete-order-by-ordernumber
Delete a payment object by id: https://docs.commercetools.com/api/projects/payments#delete-payment-by-id
Delete a product by id: https://docs.commercetools.com/api/projects/products#delete-product-by-id
Request options
Delete a product by key: https://docs.commercetools.com/api/projects/products#delete-product-by-key
Request options
Delete a product selection by key https://docs.commercetools.com/api/projects/product-selections#delete-product-selection-by-key
Delete a standalone price object by id: https://docs.commercetools.com/api/projects/standalone-prices#delete-standaloneprice-by-id
Delete a standalone price object by key: https://docs.commercetools.com/api/projects/standalone-prices#delete-standaloneprice-by-key
Delete a store by id: https://docs.commercetools.com/api/projects/stores#delete-store-by-id
Delete a store by key: https://docs.commercetools.com/api/projects/stores#delete-store-by-key
Type-guard against any additional unexpected properties being passed in.
Optional
options: CommonRequestOptionsGet a cart by id https://docs.commercetools.com/api/projects/carts#get-a-cart-by-id
Get a cart by key https://docs.commercetools.com/api/projects/carts#get-a-cart-by-key
Get a cart discount code by id: https://docs.commercetools.com/api/projects/cartDiscounts#get-cartdiscount-by-id
Get a cart discount by key: https://docs.commercetools.com/api/projects/cartDiscounts#get-cartdiscount-by-key
Get a category by id or key. Either the id or the key must be provided.
Get an individual category by id: https://docs.commercetools.com/api/projects/categories#get-category-by-id
Get an individual category by key: https://docs.commercetools.com/api/projects/categories#get-category-by-key
Get a category projection by slug and locale Queries the categories for the given slug + locale using: https://docs.commercetools.com/api/projects/categories#query-categories
Get the parent categories of a given category. This method returns an array of {@see Category} items representing the ancestry of categories for the given category id. The list is ordered from top down. In other words, the root category is always the first item in the list.
Get channel by id: https://docs.commercetools.com/api/projects/channels#get-channel-by-id
Get channel by key: https://docs.commercetools.com/api/projects/channels#get-channel-by-key
Get a custom object https://docs.commercetools.com/api/projects/custom-objects#get-customobject-by-container-and-key
Get a custom object by id https://docs.commercetools.com/api/projects/custom-objects#get-customobject
Get a customer by id: https://docs.commercetools.com/api/projects/customers#get-customer-by-id
Get a customer by key: https://docs.commercetools.com/api/projects/customers#get-customer-by-key
Get a customer by password token: https://docs.commercetools.com/api/projects/customers#get-customer-by-password-token
Get an individual customer group by id: https://docs.commercetools.com/api/projects/customerGroups#get-customergroup-by-id
Get an individual customer group by key: https://docs.commercetools.com/api/projects/customerGroups#get-customergroup-by-key
Get a discount code by id: https://docs.commercetools.com/api/projects/discountCodes#get-discountcode-by-id
Get an InventoryEntry by id https://docs.commercetools.com/api/projects/inventory#get-inventoryentry-by-id
Get an InventoryEntry by key https://docs.commercetools.com/api/projects/inventory#get-inventoryentry-by-key
Get a customer's account/profile: https://docs.commercetools.com/api/projects/me-profile#get-customer
Get the active cart. Requires a logged in or anonymous customer access token: https://docs.commercetools.com/api/projects/me-carts#get-active-cart
Get my cart. Requires a logged in or anonymous customer access token: https://docs.commercetools.com/api/projects/me-carts#get-cart-by-id
Get an order by id using the customer's access token: https://docs.commercetools.com/api/projects/me-orders#get-order-by-id
Get a payment object by id using the customer's access token: https://docs.commercetools.com/api/projects/me-payments#get-mypayment-by-id
Get an order by id: https://docs.commercetools.com/api/projects/orders#get-order-by-id
Get an order by order number: https://docs.commercetools.com/api/projects/orders#get-order-by-ordernumber
Get a password reset token https://docs.commercetools.com/api/projects/customers#create-a-token-for-resetting-the-customers-password
Get a payment object by id: https://docs.commercetools.com/api/projects/payments#get-payment-by-id
Get an individual product by id: https://docs.commercetools.com/api/projects/products#get-product-by-id
Get an individual product by key: https://docs.commercetools.com/api/projects/products#get-product-by-key
Get a product projection by id https://docs.commercetools.com/api/projects/productProjections#get-productprojection-by-id
Get a product projection by key https://docs.commercetools.com/api/projects/productProjections#get-productprojection-by-key
Get a product projection by searching the slug with a given locale or array of locales
Utilises the product projection query endpoint: https://docs.commercetools.com/api/projects/productProjections#query-productprojections
You must pass either the {@see options.languageCode} or {@see options.languageCodes} property in the {@see options} parameter. If both are provided, only the {@see options.languageCodes} is actually used.
Get a product selection by id https://docs.commercetools.com/api/projects/product-selections#get-product-selection
Get a product selection by key https://docs.commercetools.com/api/projects/product-selections#get-product-selection-by-key
Get a product type by id: https://docs.commercetools.com/api/projects/productTypes#get-a-producttype-by-id
Get a product type by key: https://docs.commercetools.com/api/projects/productTypes#get-a-producttype-by-key
Generate request options. These are then fed in to axios when making the request to commercetools.
Get a shipping method by id: https://docs.commercetools.com/api/projects/shippingMethods#get-shippingmethod-by-id
Get a shipping method by key: https://docs.commercetools.com/api/projects/shippingMethods#get-shippingmethod-by-key
Get shipping methods applicable to a given cart id: https://docs.commercetools.com/api/projects/shippingMethods#get-shippingmethods-for-a-cart
Get shipping methods applicable for a Cart and Location: https://docs.commercetools.com/api/projects/shippingMethods#for-a-cart-and-location
Get shipping method by location: https://docs.commercetools.com/api/projects/shippingMethods#get-shippingmethods-for-a-location
Get a standalone price given its id https://docs.commercetools.com/api/projects/standalone-prices#get-standaloneprice-by-id
Get a standalone price given its key https://docs.commercetools.com/api/projects/standalone-prices#get-standaloneprice-by-key
Get a state given its id https://docs.commercetools.com/api/projects/states#get-state-by-id
Get a state given its key https://docs.commercetools.com/api/projects/states#get-state-by-key
Get a store given its id https://docs.commercetools.com/api/projects/stores#get-a-store-by-id
Get a store given its key https://docs.commercetools.com/api/projects/stores#get-a-store-by-key
Get a tax category given its id https://docs.commercetools.com/api/projects/taxCategories#get-taxcategory-by-id
Get a tax category given its key https://docs.commercetools.com/api/projects/taxCategories#get-taxcategory-by-key
Get a type by id: https://docs.commercetools.com/api/projects/types#get-type-by-id
Get a type by key: https://docs.commercetools.com/api/projects/types#get-type-by-key
Execute a GraphQL statement: https://docs.commercetools.com/api/graphql
Login to customer's account: https://docs.commercetools.com/api/projects/customers#authenticate-customer-sign-in
Login to customer's account given an (optional) anonymous access token: https://docs.commercetools.com/api/projects/me-profile#authenticate-customer-sign-in
Query cart discounts: https://docs.commercetools.com/api/projects/cartDiscounts#query-cartdiscounts
Optional
options: CommonRequestOptionsOptional
options: CommonStoreEnabledRequestOptionsOptional
options: CommonRequestOptionsOptional
options: CommonRequestOptionsQuery customer groups: https://docs.commercetools.com/api/projects/customerGroups#query-customergroups
Optional
options: CommonRequestOptionsQuery the inventory of Skus https://docs.commercetools.com/api/projects/inventory#query-inventory
Optional
options: CommonRequestOptionsQuery my orders: https://docs.commercetools.com/api/projects/me-orders#query-orders-1
Query payment objects using the customer's access token: https://docs.commercetools.com/api/projects/me-payments#query-mypayments
Query payment objects: https://docs.commercetools.com/api/projects/payments#query-payments
Query product projections https://docs.commercetools.com/api/projects/productProjections#query-productprojections
Optional
options: CommonRequestOptionsQuery product selections https://docs.commercetools.com/api/projects/product-selections#query-product-selections
Optional
options: CommonStoreEnabledRequestOptionsQuery product types: https://docs.commercetools.com/api/projects/productTypes#query-producttypes
Query the products available in a store through active Product Selections https://docs.commercetools.com/api/projects/product-selections#query-products-available-in-a-store-through-active-product-selections
Query shipping methods: https://docs.commercetools.com/api/projects/shippingMethods#query-shippingmethods
Optional
options: CommonRequestOptionsQuery standalone prices https://docs.commercetools.com/api/projects/standalone-prices#query-standaloneprices
Optional
options: CommonRequestOptionsOptional
options: CommonRequestOptionsOptional
options: CommonRequestOptionsQuery tax categories https://docs.commercetools.com/api/projects/taxCategories#query-taxcategories
Optional
options: CommonRequestOptionsReplicate an existing cart from a Cart or Order https://docs.commercetools.com/api/projects/carts#replicate-cart
Reset the customer's password: https://docs.commercetools.com/api/projects/me-profile#reset-customers-password
Save a custom object https://docs.commercetools.com/api/projects/custom-objects#create-or-update-a-customobject
Search product projections https://docs.commercetools.com/api/projects/products-search#search-productprojections
Unpublish a product by id
Issues an 'unpublish' action for the given product: https://docs.commercetools.com/api/projects/products#unpublish
Unpublish a product by key
Issues an 'unpublish' action for the given product: https://docs.commercetools.com/api/projects/products#unpublish
Update a cart by id https://docs.commercetools.com/api/projects/carts#update-a-cart-by-id
Update a category by id: https://docs.commercetools.com/api/projects/categories#update-category-by-id
Update a category by key: https://docs.commercetools.com/api/projects/categories#update-category-by-key
Update a customer by id: https://docs.commercetools.com/api/projects/customers#update-customer-by-id
Update a customer by key: https://docs.commercetools.com/api/projects/customers#update-customer-by-key
Update a customer group by id: https://docs.commercetools.com/api/projects/customerGroups#update-customergroup-by-id
Update a customer group by key: https://docs.commercetools.com/api/projects/customerGroups#update-customergroup-by-key
Update InventoryEntry by id https://docs.commercetools.com/api/projects/inventory#update-inventoryentry-by-id
Update InventoryEntry by key https://docs.commercetools.com/api/projects/inventory#update-inventoryentry-by-key
Update a customer's account/profile: https://docs.commercetools.com/api/projects/me-profile#update-customer
Update a customer's cart with the given actions. Note that we automatically retrieve the customer's active cart using the given access token: https://docs.commercetools.com/api/projects/me-carts#update-cart https://docs.commercetools.com/api/projects/me-carts#update-actions
Update a customer's cart with the given actions: https://docs.commercetools.com/api/projects/me-carts#update-cart https://docs.commercetools.com/api/projects/me-carts#update-actions
Update a payment object using the customer's access token: https://docs.commercetools.com/api/projects/me-payments#update-mypayment
Update an order by id: https://docs.commercetools.com/api/projects/orders#update-order-by-id
Update an order by order number: https://docs.commercetools.com/api/projects/orders#update-order-by-ordernumber
Update a payment object by id: https://docs.commercetools.com/api/projects/payments#update-payment-by-id
Update a product by id: https://docs.commercetools.com/api/projects/products#update-product-by-id
Update a product by key: https://docs.commercetools.com/api/projects/products#update-product-by-key
Update a product selection by key https://docs.commercetools.com/api/projects/product-selections#update-product-selection-by-key
Update a standalone price object by id: https://docs.commercetools.com/api/projects/standalone-prices#update-standaloneprice-by-id
Update a standalone price object by key: https://docs.commercetools.com/api/projects/standalone-prices#update-standaloneprice-by-key
Update a store by id: https://docs.commercetools.com/api/projects/stores#update-store-by-id
Update a store by key: https://docs.commercetools.com/api/projects/stores#update-store-by-key
Static
validate
A collection of convenience methods for interacting with the commercetools API.