This Acknowledgment API allows us to capture back the ERP processing status in the processed Requisition in GEP SMART.
URL Format: https://<Instance>/SmartInterfaceAPI/api/Requisition/UpdateProcessedRequisitionStatus
{
"model": [
{
"key": "string",
"description": "string",
"status": "string",
"sourceSystemName": "string",
"sourceSystemValue": "string",
"lob": "string",
"errorCode": "string"
}
]
}
{
"data": {},
"statusCode": "String",
"errorDetails": [
{
"key": "string",
"errors": [
{
"errorCode": "string",
"errorDescription": "string"
}
]
}
],
"successDetails": [
{
"key": "String"
}
]
}
Examples
Success Scenario - Request
{
"model": [
{
"Key": "REQ-2020.001420",
"Description": "SUCCESS"
}
]
}
Success Scenario - Response
{
"data": null,
"statusCode": "400",
"errorDetails": [],
"successDetails": [
{
"key": " REQ-2020.001420"
}
]
}
Error Scenario - Request
{
"model": [
{
"Key": " REQ-2020.002080",
"Description": "SUCCESS"
}
]
}
Error Scenario - Response
{
"data": null,
"statusCode": "400",
"errorDetails": [
{
"key": "REQ-2020.002080",
"errors": [
{
"errorCode": "SystemException",
"errorDescription": "Validation: Requisition number does not exist"
}
]
}
],
"successDetails": []
}
UpdateProcessedRequisitionStatus |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
Model |
|
List of UpdateProcessedDocumentStatusModel object |
|
|
Model |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
Key |
Yes |
String |
Key of the entity |
· Key is mandatory · Invalid Requisition Number |
Description |
No |
String |
Description of the entity |
|
Status |
No |
String |
|
|
SourceSystemName |
No |
String |
Name of the entity |
|
SourceSystemValue |
No |
String |
Value of the entity |
|
LOB |
No |
String |
Line-of-business |
|
ErrorCode |
No |
String |
|
|