Prerequisites

 

  1. Login to Bitlog portal

  2. To get your credentials and information

  3. Here you will find the Getting Started Project for Bitlog Wms Api

This project solution is created to help you get started using Bitlog WMS API.
Most of the information that is mentioned below can be retrieved by logging into the Bitlog Cloud Portal here

You'll require the following information to be able to access the API:

  1. UserName / Password

    This is your Bitlog Cloud Portal login. You should receive this information by e-mail when you sign up for Bitlog WMS.

  2. ClientId / ClientSecret

    This is a security pair that is required to retrieve an access token that is used to make calls to API.

  3. API Url

    This is the URL you use to communicate with the API. Use the following URL if you are a demo customer:

    https://bitlogdemowmsapi.azurewebsites.net

Running application

To be able to run this application you'll need to save the above parameters into the file bitlog.json located in the Console project.
Application will load the settings from the file when it starts and show you the menu with commands you can use to test the API.

The first thing you'll have to do is to obtain an access token. You can do this by calling the function GetNewAccessTokenAsync() using a T command.
If commands succedes, you'll receive a token that you can save using S command. The validity of this token is determined by the API,
but normally you should retrieve it only once and reuse it. Retrieving a new token invalidates previous token you had.

Now you can start testing the API. For example:

  1. Enter W
    You should receive a list of warehouses

  2. Enter O 131307
    You should receive delivery status for order No 131307

  3. Enter C
    This should create a new container C99 with one item in it

  4. Enter G
    You should get your container back

  5. Enter U
    This should update container description and add an item to it

  6. Enter G
    You should get your container back with a new description and two items

  7. Enter D
    This should delete container C99

  8. Enter G
    You should get an empty list of containers back

Happy coding!
Bitlog development team