API Structure
1) getTopData
Description This API provides data for top cards.
Request Details
- method: POST
- body:
{
keys: {
buyer: '',
dbCompany: '',
user: ''
}
}
Response
[
{
color: 'green',
id: 401,
label: 'Enabled Vendors',
value: 15
},
{
color: 'green',
id: 402,
label: 'Disabled Vendors',
value: 1
},
{
color: 'green',
id: 403,
label: 'New Vendors to be Enabled',
value: 142
},
{
color: 'red',
id: 404,
label: 'Vendors due for Renewal',
value: 14
},
{
color: 'gray',
id: 405,
label: 'Blacklist Vendors',
value: 4
},
{
color: 'orange',
id: 406,
label: 'Barred Vendors',
value: 0
}
]
2) getSearchData
Description This API provides data for Search.
Request Details
- method: POST
- body:
{
keys: {
buyer: '',
dbCompany: '',
user: ''
}
}
Response
{
data: {
SEARCH_PAN: {
colsTaken: 1,
displayType: 'text',
sortNum: 9,
label: 'PAN'
},
SEARCH_MAILID: {
colsTaken: 1,
displayType: 'text',
sortNum: 8,
label: 'Email Id'
},
SEARCH_VENDORCLASS: {
colsTaken: 1,
displayType: 'text',
sortNum: 3,
label: 'Class'
},
SEARCH_REGISTRATION_TO_DATE: {
colsTaken: 1,
displayType: 'date',
sortNum: 11,
label: 'Resgistration To Date'
},
SEARCH_REGISTRATION_FROM_DATE: {
colsTaken: 1,
displayType: 'date',
sortNum: 10,
label: 'Resgistration From Date'
},
SEARCH_CITY: {
colsTaken: 1,
displayType: 'text',
sortNum: 2,
label: 'City'
},
SEARCH_STATE: {
"colsTaken": 1,
"displayType": "text",
"sortNum": 4,
"label": "State"
},
SEARCH_PHONENUMBER: {
colsTaken: 1,
displayType: 'text',
sortNum: 6,
label: 'Phone Number'
},
BUYER_COT: {
colsTaken: 1,
displayType: 'dropdownMultiple',
dataArr: [
{
active: 'N',
label: 'TESTPWD-abcdf',
id: 'TESTPWD-abcdf'
},
.....
{
active: 'N',
label: 'TESTPWD-TESTCOT',
id: 'TESTPWD-TESTCOT'
}
],
sortNum: 8,
label: 'COT'
},
SEARCH_NAME: {
colsTaken: 1,
displayType: 'text',
sortNum: 1,
label: 'Vendor Name'
},
SEARCH_USERID: {
colsTaken: 1,
displayType: 'text',
sortNum: 5,
label: 'UserId'
}
}
}
3) getSubCategoryData
Description This API provides data for subcategory dropdown.
Request Details
- method: POST
- body:
{
"user": "",
"dbCompany": "",
"buyer": "",
"CategoryCode": ""
}
Response
{
"SubCategory": [
{
"label": "A",
"id": "A"
},
{
"label": "B",
"id": "B"
},
{
"label": "BX",
"id": "C"
},
{
"label": "C",
"id": "D"
},
{
"label": "D",
"id": "E"
},
{
"label": "E",
"id": "F"
},
{
"label": "EX",
"id": "G"
},
{
"label": "F",
"id": "H"
}
]
}
4) getCotData
Description This API provides data for cot dropdown.
Request Details
- method: POST
- body:
{
"user": "",
"dbCompany": "",
"buyer": "",
"CategoryCode": "H",
"SubCatCode": "A"
}
Response
{
"COT": [
{
"label": "KEPALAI - Sub - Kepala1",
"id": "0001"
},
{
"label": "KEPALAI - Sub - Kepala2a - i",
"id": "0002"
}
]
}