Create a cart

The request body for creating a cart contains the name of the cart to be created assigned to the variable "cartName".

URL of the POST method: https://api.itscope.com/2.1/business/carts 

Example:

POST https://api.itscope.com/2.1/business/carts 

{
  "cartName": "Cart of Thomas"
}

Edit (rename) a cart

The request body is the same as creating a cart. Therefore the new name of the cart is assigned to the variable "cartName"

The cart to be edited is specified by the cartId. The ID is being generated while creating a cart and assigned to it.

URL of the PUT method: https://api.itscope.com/2.1/business/carts/<cartId> 

Example:

PUT https://api.itscope.com/2.1/business/carts/640b6b1e-01fa-423e-b072-8b7dca155c2e

{
  "cartName": "Shopping by Thomas"
}

Delete a cart

The cart to be deleted is being specified by the cartId.

URL of the DELETE method: https://api.itscope.com/2.1/business/carts/<cartId> 

Example:

DELETE https://api.itscope.com/2.1/business/carts/640b6b1e-01fa-423e-b072-8b7dca155c2e

Add products to a cart

The request body for adding products to a cart contains the object "cartLineItem". This object contains the following variables:

 

puid Product-ID at ITscope
supplierId Supplier-ID at ITscope
supplierItemId Article number of the supplier
quantity Quantity
comment Line item comment

The cart the products should be added to is specified by the cartId.

URL of the POST method: https://api.itscope.com/2.1/business/carts/<cartId>/cartlineitems

Example:

We want to add the product with the PUID 1559972000 to our cart, with the quantity of 5 and from the supplier Ingram Micro Germany. Ingram Germany has the supplier ID 14 and the product has the Ingram article number "9432GFW".

POST https://api.itscope.com/2.1/business/carts/640b6b1e-01fa-423e-b072-8b7dca155c2e/cartlineitems

{
  "cartLineItem": [
    {
      "puid": 1559972000,
      "supplierId": 14,
      "supplierItemId": "9432GFW",
      "quantity": 5,
      "comment": "For the printer at south office"
    }
  ]
}

Remove products from a cart

The product to be removed has to be specified by the lineItemId. We also need to know from which cart the product has to be removed, so we will also specify the cartId.

URL of the DELETE method: https://api.itscope.com/2.1/business/carts/<cartId>/cartlineitems/<lineitemId> 

Example:

DELETE https://api.itscope.com/2.1/business/carts/640b6b1e-01fa-423e-b072-8b7dca155c2e/cartlineitems/9f8d78d5-118e-4f9d-9a98-2e6ec551c9b1 

Show a cart

Fetching a cart requires the cartId.

URL of the GET method: https://api.itscope.com/2.1/business/carts/<cartId>/cart.json*
* or cart.xml

Example:

GET https://api.itscope.com/2.1/business/carts/640b6b1e-01fa-423e-b072-8b7dca155c2e/cart.json 

List all carts

Lists all carts.

URL of the GET method: https://api.itscope.com/2.1/business/carts/cart.json*
* or cart.xml

Example:

GET https://api.itscope.com/2.1/business/carts/cart.json 

Note: This page has been translated with the Google Translation Service.

Have more questions? Submit a request