Class: module:api/BasketsApi

module:api/BasketsApi(apiClient)

new module:api/BasketsApi(apiClient)

Constructs a new BasketsApi.

Parameters:
Name Type Description
apiClient module:ApiClient

Optional API client implementation to use, default to module:ApiClient#instance if unspecified.

Source:

Methods

deleteBasketsByID(basketId) → {Promise}

Removes a basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be retrieved

Source:
Returns:
Type
Promise

deleteBasketsByIDCouponsByID(basketId, couponItemId) → {Promise}

Removes a coupon from the basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

couponItemId String

the id of the coupon item to be removed

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

deleteBasketsByIDCouponsByIDWithHttpInfo(basketId, couponItemId) → {Promise}

Removes a coupon from the basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

couponItemId String

the id of the coupon item to be removed

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

deleteBasketsByIDGiftCertificateItemsByID(basketId, giftCertificateItemId) → {Promise}

Deletes a gift certificate item from an existing basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

giftCertificateItemId String

the id of the gift certificate item to be removed

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

deleteBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId) → {Promise}

Deletes a gift certificate item from an existing basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

giftCertificateItemId String

the id of the gift certificate item to be removed

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

deleteBasketsByIDItemsByID(basketId, itemId) → {Promise}

Removes a product item from the basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

itemId String

the id of the product item to be removed

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

deleteBasketsByIDItemsByIDWithHttpInfo(basketId, itemId) → {Promise}

Removes a product item from the basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

itemId String

the id of the product item to be removed

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

deleteBasketsByIDNotesByID(basketId, noteId) → {Promise}

Removes a basket note.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

noteId String

the id of the note to be removed

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

deleteBasketsByIDNotesByIDWithHttpInfo(basketId, noteId) → {Promise}

Removes a basket note.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

noteId String

the id of the note to be removed

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

deleteBasketsByIDPaymentInstrumentsByID(basketId, paymentInstrumentId) → {Promise}

Removes a payment instrument of a basket.

Parameters:
Name Type Description
basketId String

the basket id

paymentInstrumentId String

the id of the payment instrument to be removed

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

deleteBasketsByIDPaymentInstrumentsByIDWithHttpInfo(basketId, paymentInstrumentId) → {Promise}

Removes a payment instrument of a basket.

Parameters:
Name Type Description
basketId String

the basket id

paymentInstrumentId String

the id of the payment instrument to be removed

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

deleteBasketsByIDPriceAdjustmentsByID(basketId, priceAdjustmentId) → {Promise}

Removes a custom manual price adjustment from the basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

priceAdjustmentId String

the uuid of the adjustment to be removed

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

deleteBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId) → {Promise}

Removes a custom manual price adjustment from the basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

priceAdjustmentId String

the uuid of the adjustment to be removed

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

deleteBasketsByIDShipmentsByID(basketId, shipmentId) → {Promise}

Removes a specified shipment and all associated product, gift certificate, shipping and price adjustment line items from a basket. It is not permissible to remove the default shipment.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

shipmentId String

the id of the shipment to be deleted

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

deleteBasketsByIDShipmentsByIDWithHttpInfo(basketId, shipmentId) → {Promise}

Removes a specified shipment and all associated product, gift certificate, shipping and price adjustment line items from a basket. It is not permissible to remove the default shipment.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

shipmentId String

the id of the shipment to be deleted

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

deleteBasketsByIDWithHttpInfo(basketId) → {Promise}

Removes a basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be retrieved

Source:
Returns:

a Promise, with an object containing HTTP response

Type
Promise

getBasketsByID(basketId) → {Promise}

Gets a basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be retrieved

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

getBasketsByIDApproachingDiscounts(basketId) → {Promise}

Gets the approaching discounts of a basket

Parameters:
Name Type Description
basketId String

The id of the basket to be checked.

Source:
Returns:
Type
Promise

getBasketsByIDApproachingDiscountsWithHttpInfo(basketId) → {Promise}

Gets the approaching discounts of a basket

Parameters:
Name Type Description
basketId String

The id of the basket to be checked.

Source:
Returns:

a Promise, with an object containing data of type module:models/ApproachingDiscountResult and HTTP response

Type
Promise

getBasketsByIDNotes(basketId) → {Promise}

Retrieves notes for a basket.

Parameters:
Name Type Description
basketId String

The id of the basket for which you want to retrieve the notes.

Source:
Returns:

a Promise, with data of type module:models/NotesResult

Type
Promise

getBasketsByIDNotesWithHttpInfo(basketId) → {Promise}

Retrieves notes for a basket.

Parameters:
Name Type Description
basketId String

The id of the basket for which you want to retrieve the notes.

Source:
Returns:

a Promise, with an object containing data of type module:models/NotesResult and HTTP response

Type
Promise

getBasketsByIDPaymentMethods(basketId) → {Promise}

Gets applicable payment methods for an existing basket considering the open payment amount only.

Parameters:
Name Type Description
basketId String

the basket id

Source:
Returns:
Type
Promise

getBasketsByIDPaymentMethodsWithHttpInfo(basketId) → {Promise}

Gets applicable payment methods for an existing basket considering the open payment amount only.

Parameters:
Name Type Description
basketId String

the basket id

Source:
Returns:

a Promise, with an object containing data of type module:models/PaymentMethodResult and HTTP response

Type
Promise

getBasketsByIDShipmentsByIDShippingMethods(basketId, shipmentId) → {Promise}

Gets the applicable shipping methods for a certain shipment of a basket.

Parameters:
Name Type Description
basketId String

the id of the basket

shipmentId String

the id of the shipment

Source:
Returns:
Type
Promise

getBasketsByIDShipmentsByIDShippingMethodsWithHttpInfo(basketId, shipmentId) → {Promise}

Gets the applicable shipping methods for a certain shipment of a basket.

Parameters:
Name Type Description
basketId String

the id of the basket

shipmentId String

the id of the shipment

Source:
Returns:

a Promise, with an object containing data of type module:models/ShippingMethodResult and HTTP response

Type
Promise

getBasketsByIDWithHttpInfo(basketId) → {Promise}

Gets a basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be retrieved

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

patchBasketsByID(basketId, body) → {Promise}

Updates a basket. Only the currency of the basket, source code, and the custom properties of the basket and of the shipping items will be considered.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/Basket
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

patchBasketsByIDGiftCertificateItemsByID(basketId, giftCertificateItemId, body) → {Promise}

Updates a gift certificate item of an existing basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

giftCertificateItemId String

the id of the gift certificate item to be updated

body module:models/GiftCertificateItem
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

patchBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId, body) → {Promise}

Updates a gift certificate item of an existing basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

giftCertificateItemId String

the id of the gift certificate item to be updated

body module:models/GiftCertificateItem
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

patchBasketsByIDItemsByID(basketId, itemId, body) → {Promise}

Updates an item in a basket. The following values in the request body are considered by the server: product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. This is only possible if the product item is an option product. To change option values a collection of option items to be changed need to be provided in property option_items. Those option_items need to contain option_id and option_value_id. The provided values must be valid for the option product that this product item represents. Otherwise InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. custom properties c_<CUSTOM_NAME>: a value corresponding to the type defined for custom attribute <CUSTOM_NAME> of ProductLineItem. The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

itemId String

the it of the item to be updated

body module:models/ProductItem
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

patchBasketsByIDItemsByIDWithHttpInfo(basketId, itemId, body) → {Promise}

Updates an item in a basket. The following values in the request body are considered by the server: product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. This is only possible if the product item is an option product. To change option values a collection of option items to be changed need to be provided in property option_items. Those option_items need to contain option_id and option_value_id. The provided values must be valid for the option product that this product item represents. Otherwise InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. custom properties c_<CUSTOM_NAME>: a value corresponding to the type defined for custom attribute <CUSTOM_NAME> of ProductLineItem. The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

itemId String

the it of the item to be updated

body module:models/ProductItem
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

patchBasketsByIDPaymentInstrumentsByID(basketId, paymentInstrumentId, body) → {Promise}

Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}

Parameters:
Name Type Description
basketId String

the basket id

paymentInstrumentId String

the id of the payment instrument to be updated

body module:models/BasketPaymentInstrumentRequest
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

patchBasketsByIDPaymentInstrumentsByIDWithHttpInfo(basketId, paymentInstrumentId, body) → {Promise}

Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}

Parameters:
Name Type Description
basketId String

the basket id

paymentInstrumentId String

the id of the payment instrument to be updated

body module:models/BasketPaymentInstrumentRequest
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

patchBasketsByIDPriceAdjustmentsByID(basketId, priceAdjustmentId, body) → {Promise}

Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an adjustment of type PERCENTAGE, the 'percentage' attribute is mandatory. For adjustments of type AMOUNT and FIXED_PRICE, the 'amount' attribute is mandatory.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

priceAdjustmentId String

the uuid of the adjustment to be updated

body module:models/PriceAdjustment
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

patchBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId, body) → {Promise}

Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an adjustment of type PERCENTAGE, the 'percentage' attribute is mandatory. For adjustments of type AMOUNT and FIXED_PRICE, the 'amount' attribute is mandatory.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

priceAdjustmentId String

the uuid of the adjustment to be updated

body module:models/PriceAdjustment
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

patchBasketsByIDShipmentsByID(basketId, shipmentId, body) → {Promise}

Updates a shipment for a basket. The shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified the id the shipping address the shipping method gift boolean flag gift message custom properties

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

shipmentId String

the id of the shipment to be modified

body module:models/Shipment
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

patchBasketsByIDShipmentsByIDWithHttpInfo(basketId, shipmentId, body) → {Promise}

Updates a shipment for a basket. The shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified the id the shipping address the shipping method gift boolean flag gift message custom properties

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

shipmentId String

the id of the shipment to be modified

body module:models/Shipment
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

patchBasketsByIDWithHttpInfo(basketId, body) → {Promise}

Updates a basket. Only the currency of the basket, source code, and the custom properties of the basket and of the shipping items will be considered.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/Basket
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBaskets(opts) → {Promise}

Creates a new basket. The created basket is initialized with default values. Data provided in the body document will be populated into the created basket. It can be updated with further Shop API calls. Considered values from the request body are: customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} Related resource means with which resource you can specify the same data after the basket creation. Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. The resource supports JWT or OAuth tokens for authentication: A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. The number of baskets which can be created per customer is limited. When a basket is created it is said to be open. It remains open until either an order is created from it using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be updated by support) Custom properties in the form c_<CUSTOM_NAME> are supported. A custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for the Basket system object, and its value must be valid for that custom attribute. Other basket properties like the channel type or source code cannot be set with this resource.

Parameters:
Name Type Description
opts Object

Optional parameters

Properties
Name Type Description
body module:models/Basket
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsByIDCoupons(basketId, body) → {Promise}

Adds a coupon to an existing basket.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

body module:models/CouponItem
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsByIDCouponsWithHttpInfo(basketId, body) → {Promise}

Adds a coupon to an existing basket.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

body module:models/CouponItem
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBasketsByIDGiftCertificateItems(basketId, body) → {Promise}

Adds a gift certificate item to an existing basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/GiftCertificateItem
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsByIDGiftCertificateItemsWithHttpInfo(basketId, body) → {Promise}

Adds a gift certificate item to an existing basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/GiftCertificateItem
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBasketsByIDItems(basketId, body) → {Promise}

Adds new items to a basket. The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. Considered values from the request body, for each item are: product_id: a valid product id. This is the id of the product to be added to the basket. If the product is already in the basket, the API either increments the quantity of the existing product line item or creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and product bundles containing variation masters, the API creates a new product line item regardless of the site preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. quantity: a number between 0.01 and 999. This is the quantity of the product to order. inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the bonus discount line item for which the added product is a selected bonus product. option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. This is only possible if the product item is an option product. To set option values, you must specify a collection of option items in the option_items property. These option items must contain option_id and option_value_id. Also, the values you specify must be valid for the option product that this product item represents. Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the type of custom attribute defined for ProductLineItem.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

body module:models/ProductItem
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsByIDItemsWithHttpInfo(basketId, body) → {Promise}

Adds new items to a basket. The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. Considered values from the request body, for each item are: product_id: a valid product id. This is the id of the product to be added to the basket. If the product is already in the basket, the API either increments the quantity of the existing product line item or creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and product bundles containing variation masters, the API creates a new product line item regardless of the site preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. quantity: a number between 0.01 and 999. This is the quantity of the product to order. inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the bonus discount line item for which the added product is a selected bonus product. option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. This is only possible if the product item is an option product. To set option values, you must specify a collection of option items in the option_items property. These option items must contain option_id and option_value_id. Also, the values you specify must be valid for the option product that this product item represents. Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the type of custom attribute defined for ProductLineItem.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

body module:models/ProductItem
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBasketsByIDNotes(basketId, body) → {Promise}

Adds a note to an existing basket.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

body module:models/Note
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsByIDNotesWithHttpInfo(basketId, body) → {Promise}

Adds a note to an existing basket.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

body module:models/Note
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBasketsByIDPaymentInstruments(basketId, body) → {Promise}

Adds a payment instrument to a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type.

Parameters:
Name Type Description
basketId String

the basket id

body module:models/BasketPaymentInstrumentRequest
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsByIDPaymentInstrumentsWithHttpInfo(basketId, body) → {Promise}

Adds a payment instrument to a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type.

Parameters:
Name Type Description
basketId String

the basket id

body module:models/BasketPaymentInstrumentRequest
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBasketsByIDPriceAdjustments(basketId, body) → {Promise}

Adds a custom manual price adjustment to the basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/PriceAdjustmentRequest
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsByIDPriceAdjustmentsWithHttpInfo(basketId, body) → {Promise}

Adds a custom manual price adjustment to the basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/PriceAdjustmentRequest
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBasketsByIDShipments(basketId, body) → {Promise}

Creates a new shipment for a basket. The created shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified: the id the shipping address the shipping method gift boolean flag gift message custom properties

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/Shipment
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsByIDShipmentsWithHttpInfo(basketId, body) → {Promise}

Creates a new shipment for a basket. The created shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified: the id the shipping address the shipping method gift boolean flag gift message custom properties

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/Shipment
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBasketsReference(body) → {Promise}

Creates a new basket based on a basket reference. The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data like payment instruments and coupons will not be copied over to the new basket.

Parameters:
Name Type Description
body module:models/BasketReference
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

postBasketsReferenceWithHttpInfo(body) → {Promise}

Creates a new basket based on a basket reference. The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data like payment instruments and coupons will not be copied over to the new basket.

Parameters:
Name Type Description
body module:models/BasketReference
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

postBasketsWithHttpInfo(opts) → {Promise}

Creates a new basket. The created basket is initialized with default values. Data provided in the body document will be populated into the created basket. It can be updated with further Shop API calls. Considered values from the request body are: customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} Related resource means with which resource you can specify the same data after the basket creation. Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. The resource supports JWT or OAuth tokens for authentication: A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. The number of baskets which can be created per customer is limited. When a basket is created it is said to be open. It remains open until either an order is created from it using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be updated by support) Custom properties in the form c_<CUSTOM_NAME> are supported. A custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for the Basket system object, and its value must be valid for that custom attribute. Other basket properties like the channel type or source code cannot be set with this resource.

Parameters:
Name Type Description
opts Object

Optional parameters

Properties
Name Type Description
body module:models/Basket
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

putBasketsByIDAgent(basketId) → {Promise}

Marks a basket as an agent basket.

Parameters:
Name Type Description
basketId String

the basket id

Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

putBasketsByIDAgentWithHttpInfo(basketId) → {Promise}

Marks a basket as an agent basket.

Parameters:
Name Type Description
basketId String

the basket id

Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

putBasketsByIDBillingAddress(basketId, opts) → {Promise}

Sets the billing address of a basket.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

opts Object

Optional parameters

Properties
Name Type Description
useAsShipping Boolean
customerAddressId String
body module:models/OrderAddress
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

putBasketsByIDBillingAddressWithHttpInfo(basketId, opts) → {Promise}

Sets the billing address of a basket.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

opts Object

Optional parameters

Properties
Name Type Description
useAsShipping Boolean
customerAddressId String
body module:models/OrderAddress
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

putBasketsByIDCustomer(basketId, body) → {Promise}

Sets customer information for an existing basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/CustomerInfo
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

putBasketsByIDCustomerWithHttpInfo(basketId, body) → {Promise}

Sets customer information for an existing basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

body module:models/CustomerInfo
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

putBasketsByIDShipmentsByIDShippingAddress(basketId, shipmentId, body, opts) → {Promise}

Sets a shipping address of a specific shipment of a basket.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

shipmentId String

The id of the shipment to be modified.

body module:models/OrderAddress
opts Object

Optional parameters

Properties
Name Type Description
useAsBilling Boolean
customerAddressId String
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

putBasketsByIDShipmentsByIDShippingAddressWithHttpInfo(basketId, shipmentId, body, opts) → {Promise}

Sets a shipping address of a specific shipment of a basket.

Parameters:
Name Type Description
basketId String

The id of the basket to be modified.

shipmentId String

The id of the shipment to be modified.

body module:models/OrderAddress
opts Object

Optional parameters

Properties
Name Type Description
useAsBilling Boolean
customerAddressId String
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

putBasketsByIDShipmentsByIDShippingMethod(basketId, shipmentId, body) → {Promise}

Sets a shipping method to a specific shipment of a basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

shipmentId String

the id of the shipment to be modified

body module:models/ShippingMethod
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

putBasketsByIDShipmentsByIDShippingMethodWithHttpInfo(basketId, shipmentId, body) → {Promise}

Sets a shipping method to a specific shipment of a basket.

Parameters:
Name Type Description
basketId String

the id of the basket to be modified

shipmentId String

the id of the shipment to be modified

body module:models/ShippingMethod
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise

putBasketsByIDStorefront(basketId, opts) → {Promise}

Marks a basket as storefront basket.

Parameters:
Name Type Description
basketId String

the basket id

opts Object

Optional parameters

Properties
Name Type Description
exchange Boolean
Source:
Returns:

a Promise, with data of type module:models/Basket

Type
Promise

putBasketsByIDStorefrontWithHttpInfo(basketId, opts) → {Promise}

Marks a basket as storefront basket.

Parameters:
Name Type Description
basketId String

the basket id

opts Object

Optional parameters

Properties
Name Type Description
exchange Boolean
Source:
Returns:

a Promise, with an object containing data of type module:models/Basket and HTTP response

Type
Promise