This GET API can be used to retrieve contact details by page details in GEP SMART to post them into ERP.
URL Format: https://<Instance>/SmartInterfaceAPI/api/Contact/Page
https://<Instance>/SmartInterfaceAPI/api/Contact/Page?PageNo=1&PageSize=1
{
"data": [
{
"gepContactCode": 0,
"userName": "string",
"contactCode": "string",
"managerCode": [
"string"
],
"address": {
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"city": "string",
"stateCode": "string",
"stateOther": "string",
"countryCode": "string",
"zipCode": "string",
"faxNo": "string",
"phoneNo": "string",
"phoneOther": "string",
"phoneExtension": "string",
"phoneOtherExtension": "string",
"county": "string",
"poBoxNumber": "string"
},
"firstName": "string",
"lastName": "string",
"emailAddress": "string",
"authorityAmt": 0,
"isActive": true,
"isDeleted": true,
"userActivities": [
{
"activityName": "NONE"
}
],
"timeZone": "string",
"locationCode": "string",
"currencyCode": "string",
"designation": "string",
"commitmentAmount": 0,
"orgEntities": [
{
"entityCode": "string",
"isDefault": true,
"entityType": "string",
"lobEntityCode": "string"
}
],
"accountingEntities": [
{
"entityCode": "string",
"isDefault": true,
"entityType": "string",
"lobEntityCode": "string"
}
],
"contactOrgDetails": [
{
"orgEntity": {
"entityCode": "string",
"isDefault": true,
"entityType": "string",
"lobEntityCode": "string"
},
"personaAndRoles": {
"personaName": "string",
"personaCode": "string",
"activities": [
{
"code": "string",
"name": "string",
"description": "string"
}
],
"personaDescription": "string"
},
"lobType": "string",
"isDefaultLOB": true
}
],
"categories": [
{
"pasCode": 0,
"isDefault": true,
"clientPasCode": "string",
"isDeleted": true
}
],
"regions": [
{
"regionName": "string",
"isDefault": true
}
],
"lastLoginDate": "2020-01-21T11:53:45.057Z",
"personaAndRoles": {
"personaName": "string",
"personaCode": "string",
"activities": [
{
"code": "string",
"name": "string",
"description": "string"
}
],
"personaDescription": "string"
},
"customFields": [
{
"key": "string",
"value": [
"string"
],
"subCustomField": [
null
]
}
],
"ssoType": 0,
"cultureCode": "string",
"authorizeAmountForProject": 0,
"secondaryAuthorizeAmount": 0,
"secondaryAuthorizeAmountForContract": 0,
"amendmentAuthorizeAmountForContract": 0,
"workGroup": "string",
"contactManagers": [
{
"managerCode": "string",
"managerType": "string"
}
],
"authorityAmountDetails": [
{
"documentType": "string",
"lobType": "string",
"lobEntityCode": "string",
"entityType": "string",
"entityCode": "string",
"isDeleted": true,
"amountAttributes": [
{
"amountCode": "string",
"amount": 0
}
]
}
]
}
],
"statusCode": " String",
"errorDetails": [
{
"key": "string",
"errors": [
{
"errorCode": "string",
"errorDescription": "string"
}
]
}
],
"successDetails": [
{
"key": "String"
}
]
}
Success Scenario - Request
https://<Instance>/SmartInterfaceAPI/api/Contact/Page?PageNo=1&PageSize=1
Success Scenario - Response
{
"data": [
{
"gepContactCode": 0,
"userName": "ana@gep.com",
"contactCode": "ana@gep.com",
"managerCode": [
""
],
"address": {
"addressLine1": null,
"addressLine2": null,
"addressLine3": null,
"city": "",
"stateCode": "",
"stateOther": "",
"countryCode": "US",
"zipCode": "",
"faxNo": "",
"phoneNo": "",
"phoneOther": "",
"phoneExtension": "",
"phoneOtherExtension": "",
"county": ""
},
"firstName": "Ana",
"lastName": "",
"emailAddress": "123@gep.com",
"authorityAmt": 200,
"isActive": true,
"isDeleted": false,
"userActivities": [
{
"activityName": 10100002,
"userActivity": null
}
],
"timeZone": "Dateline Standard Time",
"locationCode": null,
"currencyCode": "",
"designation": "",
"commitmentAmount": 0,
"orgEntities": null,
"categories": [
{
"pasCode": 18951550000952,
"isDefault": false,
"clientPasCode": "DIRECT"
}
],
"regions": [
{
"regionName": "Canada",
"isDefault": false
}
],
"lastLoginDate": "2018-04-06T13:13:32",
"personaAndRoles": {
"personaName": "Sourcing Buyer",
"personaCode": "25",
"activities": [
{
"code": "10100002",
"name": "Home"
}
],
"personaDescription": "Enables User to create an event."
},
"customFields": null,
"ssoType": 1,
"secondaryAuthorizeAmount": 9999999,
"contactManagers": [
{
"managerCode": "",
"managerType": null
}
]
}
],
"statusCode": "200",
"errorDetails": [],
"successDetails": []
}
Get Contacts by Page |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1 |
List of BuyerContact object |
||||
2 |
StatusCode |
String |
|||
3 |
List of ErrorModel object |
||||
4 |
List of SuccessModel object |
CustomFields |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.5.1 |
Key |
String |
Key of the entity |
||
1.5.2 |
Value |
List of String |
Value of the entity |
||
1.5.3 |
List of CustomField object |
Check Data Type Custom fields for details |
|
PersonaAndRoles |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.6.1 |
PersonaName |
String |
Name of the entity |
||
1.6.2 |
PersonaCode |
String |
Persona Code of the entity |
||
1.6.3 |
List of UserActivity object |
Check data type UserActivity for details |
|||
1.6.4 |
PersonaDescription |
String |
Persona Description of entity |
Activities |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.6.3.1 |
Code |
String |
Code of the entity |
||
1.6.3.2 |
Name |
String |
Name of the entity |
||
1.6.3.3 |
Description |
String |
Description of the entity |
Regions |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations / Exceptions |
1.8.1 |
RegionName |
String(100) |
Region name of entity |
||
1.8.2 |
IsDefault |
Boolean |
Status of the entity if this is default or not |
Categories |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.9.1 |
PasCode |
Long |
PAS Code of entity |
||
1.9.2 |
IsDefault |
Boolean |
Status of the entity if this is default or not |
||
1.9.3 |
ClientPasCode |
String |
Client Pas Code of entity |
||
1.9.4 |
IsDeleted |
Boolean |
Status of the entity if they are to be visible or not on the application |
ContactOrgDetails |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.10.1 |
OrgEntity object |
Check Data Type OrgEntity for details |
|||
1.10.2 |
PersonaAndRoles object |
Check Data Type PersonaAndDetails for details |
|
||
1.10.3 |
LOBType |
String |
LOB Type of entity |
||
1.10.4 |
IsDefaultLOB |
Boolean |
Status of the entity if this is default LOB or not |
OrgEntity |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.10.1.1 |
EntityCode |
String |
Entity Code of entity |
||
1.10.1.2 |
IsDefault |
Boolean |
Status of the entity if this is default or not |
||
1.10.1.3 |
EntityType |
String |
Entity Type of entity |
||
1.10.1.4 |
LOBEntityCode |
String |
LOB Entity Code of entity |
Address |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.22.1 |
POBoxNumber |
String |
|||
1.22.2 |
County |
String |
County of the address |
||
1.22.3 |
PhoneOtherExtension |
String |
Phone 2’s extension of the entity |
||
1.22.4 |
PhoneExtension |
String |
Phone extension of the entity |
||
1.22.5 |
PhoneOther |
String |
Phone 2 of the entity |
||
1.22.6 |
PhoneNo |
String |
Phone number of the entity |
||
1.22.7 |
FaxNo |
String |
Fax number of the entity |
||
1.22.8 |
ZipCode |
String |
Zip code of the entity |
||
1.22.9 |
CountryCode |
String |
Country code of the entity |
||
1.22.10 |
StateOther |
String |
State name (in case of others) of the entity |
||
1.22.11 |
StateCode |
String |
State code of the entity |
||
1.22.12 |
City |
String |
City of the entity |
||
1.22.13 |
AddressLine3 |
Sting |
Address line 3 of the entity |
||
1.22.14 |
AddressLine2 |
String |
Address line 2 of the entity |
||
1.22.15 |
AddressLine1 |
String |
Address line 1 of the entity |
UserActivities |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.29.1 |
ActivityName |
|
Activities Enum |
One of the following values will be provided in this field; “NONE”, “ADMINISTRATION”, “HOME”, “VIEW_GEPICENTER etc.
|
|
ContactManagers |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
1.33.1 |
ManagerCode |
String |
|||
1.33.2 |
ManagerType |
String |
ErrorDetails |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
3.1 |
Key |
String |
|||
3.2 |
List of Error object |
Errors |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
3.2.1 |
ErrorCode |
String |
|||
3.2.2 |
ErrorDescription |
String |
SuccessDetails |
|||||
S.No. |
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
4.1 |
Key |
String |