This POST API allows pushing Invoice Payment Status Update posted in ERP into GEP SMART for further processing.
URL Format: https://<Instance>/SmartInterfaceAPI/api/Invoice/InvoicePaymentStatusUpdate
{
"paymentReferenceNumber": "string",
"paymentRemittanceId": "string",
"remittanceStatus": "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:
{
"paymentReferenceNumber": "PRN13_14132019",
"paymentRemittanceId": "PRN13_1413201902",
"remittanceStatus": "canceled"
}
Success Scenario - Response
{
"data": null,
"statusCode": "200",
"errorDetails": [],
"successDetails": [
{
"key": "PRN13_14132019"
}
]
}
Error Scenario - Request
{
"paymentReferenceNumber": "PRN13_14132019",
"paymentRemittanceId": "PRN13_14132019",
"remittanceStatus": ""
}
Error Scenario - Response
{
"data": null,
"statusCode": "400",
"errorDetails": [
{
"key": "Document",
"errors": [
{
"errorCode": "MandatoryField",
"errorDescription": "Remittance Status is mandatory."
}
]
}
],
"successDetails": []
}
Invoice Payment Status Update Model |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
PaymentReferenceNumber |
Yes |
String |
Payment Reference Number of Invoice entity |
|
PaymentRemittanceId |
Yes |
String |
Payment Remittance Id of Invoice entity |
|
RemittanceStatus |
Yes |
String |
Remittance Status for Invoice |
|