How Can We Help?
< All Topics
Print

Get Cart Transaction

The Get Cart is used to get the contents of the shopping cart. The request and response JSON strings are defined below.

Request JSON Example (Version 1.0)

The following is an example of the JSON string that will be posted

{
   "getcart": {
      "version": "1.0",
      "integrationtype": "FLK",
      "cartid": "3330270",
      "readable": 1,
      "transid": "0",
      "memberno": "0",
      "accountid": "854200"
   }
}

Request JSON Schema (Version 1.0)

{
   "title": "Get Cart Request JSON Schema (Version 1.0)",
   "type": "object",
   "properties": {
      "GetCart": {
         "type": "object",
         "properties": {
            "version": {
               "description": "Specifies the version being used.",
               "type": "string"
            },
            "CartID": {
               "description": "ID for the Shopping Cart to be retrieved.",
               "type": "string"
            },
            "readable": {
               "description": "Is the cart readable.",
               "type": "string"
            },
            "transid": {
               "description": "A unique transaction ID.",
               "type": "integer"
            },
            "memberno": {
               "description": "Specifies the Group Member Number for the User making the Request.",
               "type": "string"
            },
            "accountId": {
               "description": "Account making the request",
               "type": "string"
            }
         }
      }
   }
}

Response JSON Example (Version 1.0)

The following is an example of the JSON string to be returned

{
   "cart": {
      "header": {
         "utctime": "2015-07-29 18:08:25",
         "version": "1.0",
         "cartid": "3330270",
         "locationid": "B-VELD",
         "accountid": "854200",
         "comments": "",
         "ponumber": "",
         "cartcreationtime": "07-23-2015 22:07:07"
      },
      "items": [
         {
            "sku": "846375",
            "mfrcode": "WFB",
            "partno": "D883C",
            "list": 73.1,
            "cost": 43.95,
            "core": 0,
            "qty": 1,
            "locationid": "B-VELD",
            "brandname": "SST Friction",
            "partdesc": "Disc Brake Pad",
            "vehdesc": "2014 Buick Enclave"
         }
      ]
   }
}

Response JSON Schema (Version 1.0)

{
   "iteminquiryresponse": {
      "utctime": {
         "description": "UTC Date/Time this JSON string is created (yyyy-DD-mm hh:mm:ss)",
         "type": "string"
      },
      "version": {
         "description": "Specifies the version being used.",
         "type": "string"
      },
      "cartid": {
         "description": "ID of the Shopping Cart that was requested ",
         "type": "string"
      },
      "locationid": {
         "description": "The location that is ordering the Parts ",
         "type": "string"
      },
      "accountid": {
         "description": "Account Number",
         "type": "string"
      },
      "comments": {
         "description": "Comments",
         "type": "string"
      },
      "ponumber": {
         "description": "Purchase Order number",
         "type": "string"
      },
      "cartcreationtime": {
         "description": "Time the Cart was created",
         "type": "string"
      },
      "items": [
         {
            "sku": {
               "description": " SKU Number if applicable ",
               "type": "string"
            },
            "mfrcode": {
               "description": "Manufacturer Code for this Item.",
               "type": "string"
            },
            "partno": {
               "description": "Part Number for this Item ",
               "type": "string"
            },
            "list": {
               "description": "List price of the Item ",
               "type": "string"
            },
            "cost": {
               "description": "Selling price for the item ",
               "type": "string"
            },
            "core": {
               "description": "Core charge ",
               "type": "string"
            },
            "qty": {
               "description": "Quantity for the Item ",
               "type": "string"
            },
            "locationid": {
               "description": "Location ID of where the order was placed ",
               "type": "string"
            },
            "brandname": {
               "description": "Display Brand Name for the Item ",
               "type": "string"
            },
            "partdesc": {
               "description": "Description of the Part ordered ",
               "type": "string"
            },
            "vehdesc": {
               "description": "Description of the vehicle for which the Part was ordered ",
               "type": "string"
            }
         }
      ]
   }
}
Table of Contents