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: 16
}
]

2) getSearchData

Description This API provides data for Search.

Request Details

  • method: POST
  • body:
{
keys: {
buyer: '',
dbCompany: '',
user: ''
}
}

Response

{
data: {
SEARCH_MAILID: {
colsTaken: 1,
displayType: 'text',
sortNum: 8,
label: 'Email Id'
},
SEARCH_CITY: {
colsTaken: 1,
displayType: 'text',
sortNum: 2,
label: 'City'
},
SEARCH_STATE: {
colsTaken: 1,
displayType: 'text',
sortNum: 4,
label: 'State'
},
SEARCH_CLASSOFTRADE: {
colsTaken: 1,
displayType: 'dropdownMultiple',
dataArr: [
{
active: 'N',
label: 'TESTPWD-E104COT',
id: 'TESTPWD-E104COT'
},
.....
{
active: 'N',
label: 'TESTPWD-E74-LOCATION2',
id: 'TESTPWD-E74-LOCATION2'
}
],
'sortNum': 8,
'label': 'COT'
},
SEARCH_PHONENUMBER: {
colsTaken: 1,
displayType: 'text',
sortNum: 6,
label: 'Phone Number'
},
SEARCH_USERID: {
colsTaken: 1,
displayType: 'text',
sortNum: 5,
label: 'UserId'
},
SEARCH_NAME: {
colsTaken: 1,
displayType: 'text',
sortNum: 1,
label: 'Vendor Company Name'
},
SEARCH_SUPPLIER_CODE: {
colsTaken: 1,
displayType: 'text',
sortNum: 8,
label: 'Vendor Supplier Code'
}
}
}