Get Started with API Access

You can use our API toolkit to create your custom integrations. This can include connection to your custom websites, software or applications. To get access, please contact our support team: https://advanceprotech.com/submit-a-ticket/

When access is granted, you will be given your own username and password to access our API. To see all available APIs, you can go to RESTAPI Swagger Documentation

  1. To test your connection, you can choose the following API:
    POST ​/api​/Authenticate​/login 
  2. Click on [Try it out] button at the top right of that API
  3. You'll see the following JSON code as part of the request body
             {

                 "username": "john.doe",

                 "password": "123456",

                 "twoFactorCode": null,

                 "concurrencyFlag": 0,

                 "concurrencyStamp": null,

                 "deviceId": null

              }

     

  4. Replace username and password with the ones provided by support team and click [Execute] button
  5. Scroll down until you see Success response and copy the token from the response
    Example of a token:
    eyJhbGciOiJIUzI1NiIsInR5csdfwerb2345.eyJ1bmlxdWVfbmFtZSI6IjEwMjgiLCJyb2xlIjoiVXNlciIsIm5iZiI6MTU5MTM3OTAxMCwiZXhwIjoxNTkxNfgjtghA788JpYXQiOjE1OTEzNzkwMTB9.IeDtntMS7bGOTDQCtg92MolSbv2xe1GHHsedwd234s4
  6.  Click on [Authorize] button which is found at the top of the page
  7. In the Value field, enter the following:
    Bearer <token from step 5> 
  8. Click on [Authorize] button. Once you are already in, click close
  9. At this point, you can view data using other APIs. 
     For example, to view product details,
    1. you can use the following API:
           GET ​/api​/products
    2. Click on [Try it out] button
    3. Scroll down to see product details in the response section. 
      {
      "id": 1093,
      "active": true,
      "deleted": null,
      "date_updated": "2020-02-06T12:33:39-05:00",
      "sku": "AWA51",
      "name": "Alienware Area 51 Computer",
      "upc": "3702738422",
      "description": "With unprecedented gaming power and iconic, innovative design, the new Alienware Area-51 is the next evolution of high-performance desktop gaming.",
      "type": "Assembly",
      "has_variants": false,
      "assembly_id": 5,
      "kit_id": 0,
      "selling_price": 1566,
      "suggested_retail_price": 1566,
      "cost": 167,
      "available_quantity": 12,
      "total_quantity": 15,
      "variant_id": null,
      "unit_id": 12,
      "unit_name": "case",
      "weight": 10,
      "taxable": true,
      "drop_ship": false,
      "custom_field1": "",
      "custom_field2": "",
      "custom_field3": "",
      "custom_field4": "",
      "custom_field5": "",
      "custom_field6": "",
      "image_url": "",
      "use_lot_number": false,
      "use_serial_number": false,
      "use_manufacturing_serial_number": false,
      "use_serial_for_receive": false,
      "lot_serial_enabled": false,
      "enable_serialized_image_upload": false,
      "product_mandatory_cost": null,
      "category_id": 0,
      "tags": null,
      "height": null,
      "width": null,
      "length": null,
      "dimension": null,
      "vendor_id": 0,
      "vendor_name": null,
      "is_parent": false,
      "discount_limit": 0
      }