API Load Receipts
HTTP | /<service>/<version>/<parameters> |
POST | /receipts/v3/submit |
Environment | Request URL |
UAT | https://ihubuat.supplystream.com:8081/api/receipts/v3/submit?api_key=<api_Key> |
Live | https://ihub.supplystream.com:8081/api/receipts/v3/submit?api_key=<api_Key> |
Header | Requirement | JSON | XML |
Content-Type | Required | Content-Type: application/json | Content-Type: application/xml |
Accept | Optional. Returns Content-Type format if undefined | Accept: application/json | Accept: application/xml |
API call formatting
XML Format | |
Body | <Request> Â <Receipt> Â Â <ReceiptReasonCode>string</ReceiptReasonCode> Â Â <UpdateReceipt>true</UpdateReceipt> Â Â <ReceiptType>string</ReceiptType> Â Â <ASNNumber>string</ASNNumber> Â Â <GUID>string</GUID> Â Â <HBReference>string</HBReference> Â Â <IsReturn>true</IsReturn> Â Â <Notes>string</Notes> Â Â <WarehouseETA>1970-01-01T00:00:00.001Z</WarehouseETA> Â </Receipt> Â <ReceiptHeader> Â Â <DCCode>string</DCCode> Â </ReceiptHeader> Â <List> Â Â <ReceiptLineItem> Â Â Â <LotNumber>string</LotNumber> Â Â Â <CaseCount>1</CaseCount> Â Â Â <BestBeforeDate>1970-01-01T00:00:00.001Z</BestBeforeDate> Â Â Â <SupplierName>string</SupplierName> Â Â Â <CountryOfOrigin>string</CountryOfOrigin> Â Â Â <MIDCode>string</MIDCode> Â Â Â <Channel>string</Channel> Â Â Â <EAN>string</EAN> Â Â Â <GUID>string</GUID> Â Â Â <LineNumber>1</LineNumber> Â Â Â <ProductCode>string</ProductCode> Â Â Â <Quantity>1</Quantity> Â Â Â <ReturnReason>string</ReturnReason> Â Â Â <SupplierCompanyCode>string</SupplierCompanyCode> Â Â </ReceiptLineItem> Â </List> </Request> |
Example success Response Body | <Response> |
Example failure Response Body | <Response> |
JSON Format | |
Body | { Â "Receipt": { Â Â "ReceiptReasonCode": "string", Â Â "UpdateReceipt": true, Â Â "ReceiptType": "string", Â Â "ASNNumber": "string", Â Â "GUID": "string", Â Â "HBReference": "string", Â Â "IsReturn": true, Â Â "Notes": "string", Â Â "WarehouseETA": "2024-03-13T14:55:31.788Z" Â }, Â "ReceiptHeader": { Â Â "DCCode": "string" Â }, Â "List": { Â Â "ReceiptLineItem": [ Â Â Â { Â Â Â Â "LotNumber": "string", Â Â Â Â "CaseCount": 0, Â Â Â Â "BestBeforeDate": "2024-03-13T14:55:31.788Z", Â Â Â Â "SupplierName": "string", Â Â Â Â "CountryOfOrigin": "string", Â Â Â Â "MIDCode": "string", Â Â Â Â "Channel": "string", Â Â Â Â "EAN": "string", Â Â Â Â "GUID": "string", Â Â Â Â "LineNumber": 0, Â Â Â Â "ProductCode": "string", Â Â Â Â "Quantity": 0, Â Â Â Â "ReturnReason": "string", Â Â Â Â "SupplierCompanyCode": "string" Â Â Â } Â Â ] Â } } |
Example success Response Body | { |
Example failure Response Body | { |