DMS API Document Ver 1.0
DMS API Document Ver 1.0
Objective
The objective of this document is to help the end users access the DMS API to download
data from DMS. This document covers the below listed modules for downloading data from
DMS.
1. Purchase Order
2. Sales Order
3. Monthly Journey Plan
4. Market Working
Steps
Below are the steps included in authenticating APIs and downloading data from the DMS.
Method: Get
Access the above API URL to get auth token and dynamic salt value from DMS server. The
API will give the details in the JSON format below.
{
"collections": {
"authentication": {
"authtoken": "eba0ad53e5934d8020bc0f95afafed04",
"dynasalt": "aca05577f792ef8b4dac9947d418e2ff"
},
"rowcount": ""
}
}
Method: Post
The auth token returned by the level 1 authentication API should be passed as the input for
the authentication level 2 parameter “auth_token”.
DMS API Document 2
Payload: The JSON data below should be shared as the payload for authentication level 2.
{
"collections": {
"authentication": {
"cdkey": "352QO-QKMXT-GSUEX-GFSUD-EVAB4",
"client_version": "VistonyPeruDownload",
"clientid": "VIST2021",
"deviceuniquekey": "1234567",
"ldapentitytype": "distributorprofile"
}
}
}
The API will return the below JSON which will have the API key value and the username. The
response JSON data can be referred below.
{
"collections": {
"authentication": {
"cdkey": "352QO-QKMXT-GSUEX-GFSUD-EVAB4",
"client_version": "VistonyPeruDownload",
"clientid": "VIST2021",
"deviceuniquekey": "1234567",
"ldapentitytype": "distributorprofile"
}
}
}
The “auth_token”, “authudername”, “api_key” parameters should refer to the output from
the authentication level 2 response.
The “sdt” parameter should have the data and time from which the data is to be downloaded
from DMS.
The API will share the number of records available for download as the output. The output
will be in the JSON format available below.
{
"collections": {
"response": {
"pocount": "1"
DMS API Document 3
},
"rowcount": "1"
}
}
The “auth_token”, “authudername”, “api_key” parameters should refer to the output from
the authentication level 2 response.
The “sdt” parameter should have the data and time from which the data is to be downloaded
from DMS.
The “limit” parameter should have the number of details records data to be downloaded
from DMS in a single request. The “offset” parameter should have the offset value of the
total number of records.
"suggested_base_reorder_qty": "0",
"quantity": "1",
"uomname": "Units",
"listprice": "35880.600000",
"line_discount_percent": "0",
"line_discount_amount": "0",
"tax": "0",
"datetime": "2024-12-02 16:53:18",
"active": "1",
"creatdate": "2024-07-02 15:32:41",
"incrementflag": "2",
"billing_address": "CODE",
"shipping_address": "CODE",
"approval_name": "gaurav"
},
"rowcount": "1"
}
}
API Details
Authentication levels 1 & 2 APIs are common for all the data downloads, the count and
details download APIs will be unique for each module, please find the API names below.