Step 3 Generating Signatures
Our APIs are deployed in isolated Sandbox and Production environments. Charter Supplier onboarding onto these environments requires obtaining a unique Consumer ID and Authentication Signature before initiating an API call.
Getting Started
Before you can invoke our APIs, you need to authenticate your access, which involves using your unique Consumer ID and generated private key to create an Authentication Signature.
Before you begin:
To authenticate your access to our APIs, you need to have already submitted your public key to Walmart and have already received your unique Consumer ID. Please refer back to Step 2 Requesting Access if you need to complete this step.
If you already have your unique Consumer ID, you can begin creating an Authentication Signature.
To start, have the following ready:
- Your generated private key
- Your Walmart issued, unique Consumer ID
- Your Walmart provided key version number
- JAVA 8.0 or above installed on your system (if it is not already installed, please download Java).
Generating Your Signature
To generate your Authentication Signature, complete the following steps. You can watch the video or continue reading for instructions.
-
Download the signature-generator.jar file and save it with your private key.
-
From your terminal, run the file using the following command:
java -jar signature-generator.jar <consumerId> <location to private_key.pem> <key_version>
Where:
- Consumer ID = your Walmart provided unique ID
- Location to private key file = the location where you saved the private key file
- Key version = the Walmart provided public key version number
The output of the above command will be as follows:
```
Signature: HcCvPF6CjdlVfZQWszNg9jwS2gd+chmRL7YltbwsD9GGJV.....
Intimestamp: XXXXXXXXXXXXX
```
Where:
- Signature = your Authentication Signature. This value must be used for request header: WM_SEC.AUTH_SIGNATURE
- Intimestamp = the timestamp. This value must be used for header: WM_CONSUMER.INTIMESTAMP
You will need to pass a generated Authentication Signature and timestamp when making any API request call.
The digital signature expires in 3 MINUTES.
Regenerating the signature for every call is recommended.
Now that you have generated your authorization signature, you are ready to start invoking APIs!
©️Walmart | All Rights Reserved
Updated 7 months ago