This POST API allows pushing Receipt posted in ERP into GEP SMART for further processing.
URL Format: https://<Instance>/smartInterfaceAPI/api/receipt/ReceiptDetails
{
"basicDetails": {
"documentName": "string",
"documentNumber": "string",
"documentStatus": "string",
"documentCreator": "string",
"createdOn": "string",
"documentLobDetails": [
{
"entityCode": "string",
"entityType": "string"
}
],
"operationName": "string"
},
"receiptType": "string",
"returnNoteNumber": "string",
"receiverId": "string",
"headerEntities": [
{
"entityCode": "string",
"entityType": "string"
}
],
"sourceSystemName": "string",
"orderNumber": "string",
"currency": "string",
"comments": [
{
"commentText": "string",
"accessType": "string"
}
],
"totalAmount": 0,
"matchType": "string",
"customAttributes": [
{
"questionnaireTitle": "string",
"questionnaireResponseValues": [
{
"childQuestionSets": [
null
],
"columnText": "string",
"responseValue": "string",
"rowId": "string"
}
]
}
],
"requisitionNumber": "string",
"partnerRmaNumber": "string",
"orderDate": "2020-05-28T13:31:47.946Z",
"additionalFieldAttributes": [
{
"additionalFieldValue": "string",
"additionalFieldCode": "string",
"additionalFieldName": "string"
}
],
"receiptItems": [
{
"itemLineNumber": 0,
"poLineItemNumber": 0,
"receivedQuantity": 0,
"returnedQuantity": 0,
"cancelledQuantity": 0,
"acceptedQuantity": 0,
"remainingQuantity": 0,
"unitPrice": 0,
"itemTotalAmount": 0,
"receivedAmount": 0,
"uom": "string",
"matchType": "string",
"itemNumber": "string",
"receivedDate": "2020-05-28T13:31:47.947Z",
"reasonForReturnCode": "string",
"reasonForReturn": "string",
"isClosedForReceiving": "string",
"description": "string",
"manufacturerName": "string",
"manufacturerPartNumber": "string",
"itemType": "string",
"itemExtendedType": "string",
"comments": [
{
"commentText": "string",
"accessType": "string"
}
],
"supplierPartId": "string",
"supplierPartAuxiliaryId": "string",
"categoryName": "string",
"clientCategoryId": "string",
"unspsc": 0,
"requisitionNumber": "string",
"additionalFieldAttributes": [
{
"additionalFieldValue": "string",
"additionalFieldCode": "string",
"additionalFieldName": "string"
}
],
"assetTag": [
{
"assetKey": "string",
"assetLocationCode": "string",
"serialNumber": "string"
}
],
"customAttributes": [
{
"questionnaireTitle": "string",
"questionnaireResponseValues": [
{
"childQuestionSets": [
null
],
"columnText": "string",
"responseValue": "string",
"rowId": "string"
}
]
}
],
"itemSplitsDetail": [
{
"documentSplitItemEntities": [
{
"entityType": "string",
"entityCode": "string",
"entityDisplayName": "string"
}
],
"requestorEmailAddress": "string",
"splitItemTotal": 0,
"customAttributes": [
{
"questionnaireTitle": "string",
"questionnaireResponseValues": [
{
"childQuestionSets": [
null
],
"columnText": "string",
"responseValue": "string",
"rowId": "string"
}
]
}
],
"splitType": "string",
"quantity": 0,
"percentage": 0
}
]
}
]
}
{
"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:
{
"basicDetails": {
"documentNumber": "Receipt_Ketan_20052020_001",
"createdOn": "2020-04-03T07:02:25.734Z",
"documentCreator": "Santosh.Reddy.ChevronProd",
"documentLobDetails": [
{
"entityCode": "PC2"
}
],
"operationName": "new"
},
"Comments": [
{
"CommentText": "AA"
}
],
"receiptType": "receipt",
"ReceiverId": "Santosh.Reddy.ChevronProd",
"sourceSystemName": "SAP",
"orderNumber": "0060200708",
"currency": "USD",
"totalAmount": 0.09,
"CustomAttributes": [
{
"QuestionnaireTitle": "Delivery Note",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Delivery Note"
}
]
},
{
"QuestionnaireTitle": "Source",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Source"
}
]
},
{
"QuestionnaireTitle": "Outage-TA/Project Number",
"QuestionnaireResponseValues": [
{
"ResponseValue": "TA/Project Number1234"
}
]
},
{
"QuestionnaireTitle": "Outage-TA/Project Description",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Outage-TA/Project Description"
}
]
}
],
"orderDate": "2020-04-29 23:00:17.623",
"receiptItems": [
{
"itemLineNumber": 1,
"poLineItemNumber": 1,
"receivedQuantity": 10,
"cancelledQuantity": 0,
"IsClosedForReceiving": true,
"returnedQuantity": 0,
"unitPrice": 0.02,
"itemTotalAmount": 0.09,
"receivedAmount": 0.09,
"ReasonForReturnCode": "",
"Comments": [
{
"CommentText": "AA"
}
],
"CustomAttributes": [
{
"QuestionnaireTitle": "Delivery Note",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Delivery Note"
}
]
},
{
"QuestionnaireTitle": "Source",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Source"
}
]
},
{
"QuestionnaireTitle": "Outage-TA/Project Number",
"QuestionnaireResponseValues": [
{
"ResponseValue": "TA/Project Number1234"
}
]
},
{
"QuestionnaireTitle": "Outage-TA/Project Description",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Outage-TA/Project Description"
}
]
}
],
"ReasonForReturn": "",
"uom": "EA",
"receivedDate": "2020-05-18"
}
]
}
Success Scenario - Response
{
"data": null,
"statusCode": "200",
"errorDetails": [],
"successDetails": [
{
"key": " Receipt_Ketan_20052020_001"
}
]
}
Error Scenario – Request
{
"basicDetails": {
"documentNumber": "Receipt_Ketan_20052020_001",
"createdOn": "2020-04-03T07:02:25.734Z",
"documentCreator": "Santosh.Reddy.ChevronProd",
"documentLobDetails": [
{
"entityCode": "PC2"
}
],
"operationName": "new"
},
"Comments": [
{
"CommentText": "AA"
}
],
"receiptType": "receipt",
"ReceiverId": "Santosh.Reddy.ChevronProd",
"sourceSystemName": "SAP",
"orderNumber": "0060200708",
"currency": "USD",
"totalAmount": 0.09,
"CustomAttributes": [
{
"QuestionnaireTitle": "Delivery Note",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Delivery Note"
}
]
},
{
"QuestionnaireTitle": "Source",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Source"
}
]
},
{
"QuestionnaireTitle": "Outage-TA/Project Number",
"QuestionnaireResponseValues": [
{
"ResponseValue": "TA/Project Number1234"
}
]
},
{
"QuestionnaireTitle": "Outage-TA/Project Description",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Outage-TA/Project Description"
}
]
}
],
"orderDate": "2020-04-29 23:00:17.623",
"receiptItems": [
{
"itemLineNumber": 1,
"poLineItemNumber": 1,
"receivedQuantity": 10,
"cancelledQuantity": 0,
"IsClosedForReceiving": true,
"returnedQuantity": 0,
"unitPrice": 0.02,
"itemTotalAmount": 0.09,
"receivedAmount": 0.09,
"ReasonForReturnCode": "",
"Comments": [
{
"CommentText": "AA"
}
],
"CustomAttributes": [
{
"QuestionnaireTitle": "Delivery Note",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Delivery Note"
}
]
},
{
"QuestionnaireTitle": "Source",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Source"
}
]
},
{
"QuestionnaireTitle": "Outage-TA/Project Number",
"QuestionnaireResponseValues": [
{
"ResponseValue": "TA/Project Number1234"
}
]
},
{
"QuestionnaireTitle": "Outage-TA/Project Description",
"QuestionnaireResponseValues": [
{
"ResponseValue": "Test Outage-TA/Project Description"
}
]
}
],
"ReasonForReturn": "",
"uom": "EA",
"receivedDate": "2020-05-18"
}
]
}
Error Scenario - Response
{
"data": null,
"statusCode": "400",
"errorDetails": [
{
"key": " Receipt_Ketan_20052020_001",
"errors": [
{
"errorCode": "DataValidation",
"errorDescription": "Invalid Receipt number"
}
]
}
],
"successDetails": []
}
InterfaceReceipt |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
Yes |
Document Object |
|
|
|
ReceiptDate |
|
DateTime |
Receipt date |
|
ReturnNoteNumber |
|
String |
Return note number |
|
Yes |
List Of HeaderEntities |
|
|
|
ReceiverId |
|
String |
Receiver Id |
|
MatchType |
|
String |
Match Type |
|
OrderNumber |
|
String |
Order number |
|
OrderDate |
|
DateTime |
OrderDate |
|
|
List of receiptItems object |
Receipt items |
|
|
RequisitionNumber |
|
String |
Requisition number |
|
PartnerRMANumber |
|
String |
Partner RMA (return merchandise authorization) Number |
|
ReceiptType |
|
String |
Receipt Type |
|
SourceSystemName |
|
String |
Source System Name |
|
Currency |
|
String |
Currency |
|
TotalAmount |
|
Int |
Total Amount |
|
|
List of Interfacecomments object |
|
|
|
No |
List of InterfaceP2PAdditionalFieldAtrribute object |
Check data type InterfaceP2PAdditionalFieldAtrribute for details |
|
|
|
List of customAttributes object |
|
|
HeaderEntities |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
entityCode |
|
string |
Entity code |
|
entityType |
|
true |
Entity Type |
|
BasicDetails |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
DocumentName |
|
String |
Document Name of the entity |
|
DocumentNumber |
Yes |
String |
Document Number of the entity |
|
DocumentStatus |
|
String |
Document Status of the entity |
|
DocumentCreator |
|
String |
Document Creator of the entity |
|
CreatedOn |
Yes |
String |
CreatedOn of the entity |
|
Yes |
List of OrgEntity object |
Check data type OrgEntity for details |
|
|
OperationName |
Yes |
String |
Operation Name of the entity |
|
AdditionalFieldAtrribute |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
AdditionalFieldValue |
No |
String |
Additional Field Value of the entity |
|
AdditionalFieldCode |
No |
String |
Additional Field Code of the entity |
|
AdditionalFieldName |
No |
String |
Additional Field Name of the entity |
|
ReceiptItems |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
|
List of assetTag object |
Asset Tag |
|
|
ReceivedQuantity |
Yes |
Int |
Received Quantity |
|
AcceptedQuantity |
|
Int |
Accepted Quantity |
|
ReturnedQuantity |
Yes |
Int |
Returned Quantity |
|
PoLineItemNumber |
Yes |
Int |
Po Line Item Number |
|
RequisitionNumber |
|
String |
Requisition Number |
|
RemainingQuantity |
|
Int |
Remaining Quantity |
|
ReceivedDate |
|
DateTime |
Received Date |
|
ReceivedAmount |
|
Int |
Received Amount |
|
ReasonForReturn |
Yes |
String |
reasonForReturnCode |
|
isClosedForReceiving |
|
String |
isClosedForReceiving |
|
IsInternal |
|
Boolean |
Is Internal |
|
PoLineItemId |
|
Int |
Po Line Item Id |
|
ItemSplitsDetail |
|
List of InterfaceOrderSplitItems object |
Item Splits Detail |
|
CancelledQuantity |
Yes |
Int |
Cancelled Quantity |
|
ItemLineNumber |
Yes |
Int |
Item Line Number |
|
Description |
|
String |
Description |
|
UnitPrice |
Yes |
Decimal |
Unit Price |
|
Uom |
Yes |
String |
Uom(unit of measure) |
|
ManufacturerName |
|
String |
Manufacturer Name |
|
ManufacturerPartNumber |
|
String |
Manufacturer Part Number |
|
ItemType |
|
String |
Item Type |
|
ItemExtendedType |
|
String |
Item Extended Type |
|
CategoryName |
|
String |
Category Name |
|
ItemTotalAmount |
|
Decimal |
Item Total Amount |
|
ItemNumber |
|
String |
Item Number |
|
Unspsc |
|
Int |
Unspsc |
|
SupplierPartId |
|
String |
Supplier Part Id |
|
SupplierPartAuxiliaryId |
|
String |
Supplier Part Auxiliary Id |
|
Comments |
|
List of InterfaceComments object |
comments |
|
ClientCategoryId |
|
String |
Client Category Id |
|
CapitalCode |
|
String |
Capital Code |
|
MatchType |
|
String |
Match Type |
|
RecoupmentPercentage |
|
Int |
Recoupment Percentage |
|
ManufacturerSupplierCode |
|
String |
Manufacturer Supplier Code |
|
ManufacturerModel |
|
String |
Manufacturer Model |
|
|
List of customAttributes object |
Custom Attributes |
|
|
|
List of Interfacecomments object |
|
|
|
No |
List of InterfaceP2PAdditionalFieldAtrribute object |
Check data type InterfaceP2PAdditionalFieldAtrribute for details |
|
|
No |
List of ItemSplitsDetails |
|
|
ItemSplitsDetails |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
DocumentSplitItemEntities
|
No |
List of InterfaceDocumentSplit ItemEntity object |
DocumentSplitItemEntities |
|
SplitItemTotal |
Yes |
Decimal |
SplitItemTotal |
|
Tax |
No |
Decimal |
Tax |
|
ShippingCharges |
yes |
Decimal |
ShippingCharges |
|
AdditionalCharges |
Yes |
Decimal |
AdditionalCharges |
|
No |
List of CustomAttribute object |
CustomAttributes |
|
|
SplitType |
No |
String |
SplitType |
|
Quantity |
No |
Decimal |
Quantity |
|
Percentage |
No |
Decimal |
Percentage |
|
Comments |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
commentText |
|
string |
|
|
accessType |
|
string |
|
|
AssetTag |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
SerialNumber |
|
String |
Serial Number |
|
AssetKey |
|
String |
AssetKey |
|
AssetLocationCode |
|
String |
Asset Location Code |
|
InterfaceOrderSplitItems |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
DocumentSplitItemEntities |
Yes |
List of InterfaceDocumentSplitItemEntity object |
Document Split Item Entities |
|
SplitItemTotal |
|
Int |
Split Item Total |
|
|
List of customAttributes object |
|
|
|
SplitType |
|
String |
Split Type |
|
Name |
|
String |
Name |
|
Quantity |
|
Int |
Quantity |
|
Percentage |
|
Decimal |
Percentage |
|
CreatedOn |
|
DateTime |
Created On |
|
InterfaceDocumentSplitItemEntity |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
EntityType |
|
String |
Entity Type |
|
EntityCode |
Yes |
String |
Entity Code |
|
EntityDisplayName |
|
String |
Entity Display Name |
|
CreatedOn |
|
DateTime |
Created On |
|
InterfaceComment |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
CommentText |
|
String |
Comment Text |
|
|
List of commentAttachment object |
Comment Attachment |
|
|
AccessType |
|
String |
Access type of the entity |
|
CommentAttachment |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
Filename |
|
String |
File Name |
|
FileUri |
|
String |
File Uri |
|
CustomAttributes |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
QuestionnaireTitle |
Yes |
String |
Questionnaire Title |
|
Yes |
List of questionnaireResponseValues object |
Questionnaire Response Values |
|
QuestionnaireResponseValues |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
ChildQuestionSets |
|
List of CustomAttributes object |
Child Question Sets |
|
ColumnText |
|
String |
Column Text |
|
ResponseValue |
Yes |
String |
Response Value |
|
Row Id |
|
String |
Row Id |
|
DocumentLobDetails |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
entityCode |
|
string |
Entity code |
|
entityType |
|
string |
EntityType |
|
OrgEntity |
||||
Property |
Required? |
Data type |
Description |
Validations/Exceptions |
EntityCode |
Yes |
String |
Entity Code of the entity |
|
IsDefault |
|
Boolean |
Created On of the entity |
|
EntityType |
|
String |
EntityType |
|
LobEntityCode |
|
String |
LobEntityCode of the entity |
|