This POST API allows pushing Invoice posted in ERP into GEP SMART for further processing.
URL Format: https://<Instance>/SmartInterfaceAPI/api/Invoice/InvoiceStatusdetails
{
"models": [
{
"sourceSytemName": "string",
"documentNumber": "string",
"documentstatusInfo": "string",
"comments": {
"commentText": "string",
"accessType": "string",
"commentAttachment": [
{
"fileName": "string",
"fileUri": "string"
}
]
},
"lob": "string",
"clientPartnerCode": "string",
"invoiceDate": "2020-01-22T12:24:52.146Z",
"exceptionType": "string"
}
]
}
{
"data": {},
"statusCode": "string",
"errorDetails": [
{
"key": "string",
"errors": [
{
"errorCode": "string",
"errorDescription": "string"
}
]
}
],
"successDetails": [
{
"key": "string"
}
]
}
Success Scenario - Request
Request below describes that this contains only the mandatory attributes:
{
"models": [
{
"SourceSytemName": "",
"DocumentNumber": "DEV_Inv070918A",
"documentstatusInfo": "SentForPayment",
"LOB": "",
"ClientPartnerCode": "PC-1530698055599",
"InvoiceDate": "2019-12-14T11:47:24.534Z",
"ExceptionType": ""
}
]
}
Success Scenario - Response
{
"data": null,
"statusCode": "200",
"errorDetails": [],
"successDetails": [
{
"key": "DEV_Inv070918A"
}
]
}
Error Scenario - Request
{
"models": [
{
"SourceSytemName": "",
"DocumentNumber": "DEV_Inv070918A",
"documentstatusInfo": "",
"LOB": "",
"ClientPartnerCode": "PC-1530698055599",
"InvoiceDate": "2019-12-14T11:47:24.534Z",
"ExceptionType": ""
}
]
}
Error Scenario - Response
{
"data": null,
"statusCode": "400",
"errorDetails": [
{
"key": "DEV_Inv070918A",
"errors": [
{
"errorCode": "MandatoryField",
"errorDescription": "There was an error in processing the Invoice Status as Type is mandatory"
}
]
}
],
"successDetails": []
}
Post Invoice Status Model |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
Yes |
List of UpdateInvoiceStatusModel object |
|
Models |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
SourceSytemName |
No |
String |
|
|
DocumentNumber |
Yes |
String |
|
|
DocumentStatusInfo |
Yes |
String |
|
|
No |
List of InterfaceComment object |
|||
Lob |
No |
String |
||
ClientPartnerCode |
Yes |
String |
|
|
InvoiceDate |
Yes |
Date Time |
|
|
ExceptionType |
No |
String |
|
Comments |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
CommentText |
No |
String |
||
AccessType |
No |
String |
||
No |
List of InterfaceCommentAttachment object |
CommentAttachment |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
FileName |
No |
String |
||
FileUri |
No |
String |