API Load Sales Orders
HTTP | /<service>/<version>/<parameters> |
POST | /salesorders/v4/submit |
Environment | Request URL |
UAT | https://ihubuat.supplystream.com:8081/api/salesorders/v4/submit?api_key=<api_Key> |
Live | https://ihub.supplystream.com:8081/api/salesorders/v4/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> Â <SalesOrder> Â Â <SalesInvoiceNumber>string</SalesInvoiceNumber> Â Â <DocumentIdentifier>string</DocumentIdentifier> Â Â <NIFNumber>string</NIFNumber> Â Â <ShippingVAT>1.1</ShippingVAT> Â Â <ShippingExVAT>1.1</ShippingExVAT> Â Â <CustomsValueTotal>1.1</CustomsValueTotal> Â Â <DiscountPriceTotal>1.1</DiscountPriceTotal> Â Â <GiftWrap>true</GiftWrap> Â Â <GiftMessage>string</GiftMessage> Â Â <ShippingTerm>string</ShippingTerm> Â Â <ShippingTermLocation>string</ShippingTermLocation> Â Â <GiftMessageFrom>string</GiftMessageFrom> Â Â <GiftMessageTo>string</GiftMessageTo> Â Â <CourierShopID>string</CourierShopID> Â Â <PurchaseOrderNumber>string</PurchaseOrderNumber> Â Â <GroupReference>string</GroupReference> Â Â <ShippingTotal>1.1</ShippingTotal> Â Â <TaxTotal>1.1</TaxTotal> Â Â <SubTotal>1.1</SubTotal> Â Â <OrderType>string</OrderType> Â Â <CurrencyCode>string</CurrencyCode> Â Â <CarrierCustomerAccountNo>string</CarrierCustomerAccountNo> Â Â <CourierName>string</CourierName> Â Â <CourierService>string</CourierService> Â Â <DeliveryAddressLocationType>string</DeliveryAddressLocationType> Â Â <DoNotPushToDC>true</DoNotPushToDC> Â Â <GUID>string</GUID> Â Â <LocationType>string</LocationType> Â Â <Notes>string</Notes> Â Â <NotificationMethod>string</NotificationMethod> Â Â <OnHold>true</OnHold> Â Â <SalesOrderDate>1970-01-01T00:00:00.001Z</SalesOrderDate> Â Â <SalesOrderNumber>string</SalesOrderNumber> Â Â <SalesOrderReference>string</SalesOrderReference> Â Â <ScheduledShipDate>1970-01-01T00:00:00.001Z</ScheduledShipDate> Â Â <ShipmentTerms>string</ShipmentTerms> Â Â <SpecialInstructions>string</SpecialInstructions> Â Â <UltimateDestination>string</UltimateDestination> Â </SalesOrder> Â <SalesOrderHeader> Â Â <DCCode>string</DCCode> Â </SalesOrderHeader> Â <ShipToCompany> Â Â <BranchCode>string</BranchCode> Â Â <CompanyCategory>string</CompanyCategory> Â Â <CompanyCode>string</CompanyCode> Â Â <CompanyDescription>string</CompanyDescription> Â Â <LookupDeliveryAddress>true</LookupDeliveryAddress> Â </ShipToCompany> Â <DeliveryDetails> Â Â <DeliveryContactIDNumber>string</DeliveryContactIDNumber> Â Â <City>string</City> Â Â <ContactCode>string</ContactCode> Â Â <CountryCode>string</CountryCode> Â Â <County>string</County> Â Â <EmailAddress>string</EmailAddress> Â Â <FirstName>string</FirstName> Â Â <LastName>string</LastName> Â Â <Line1>string</Line1> Â Â <Line2>string</Line2> Â Â <Line3>string</Line3> Â Â <Line4>string</Line4> Â Â <PhoneNumber>string</PhoneNumber> Â Â <PostcodeZip>string</PostcodeZip> Â Â <Title>string</Title> Â </DeliveryDetails> Â <BillingDetails> Â Â <City>string</City> Â Â <ContactCode>string</ContactCode> Â Â <CountryCode>string</CountryCode> Â Â <County>string</County> Â Â <EmailAddress>string</EmailAddress> Â Â <FirstName>string</FirstName> Â Â <LastName>string</LastName> Â Â <Line1>string</Line1> Â Â <Line2>string</Line2> Â Â <Line3>string</Line3> Â Â <Line4>string</Line4> Â Â <PhoneNumber>string</PhoneNumber> Â Â <PostcodeZip>string</PostcodeZip> Â Â <Title>string</Title> Â </BillingDetails> Â <RetailCompliance> Â Â <Gs1Prefix>string</Gs1Prefix> Â Â <MarkForDcCode>string</MarkForDcCode> Â Â <MarkForDcName>string</MarkForDcName> Â Â <MarkForDcDept>string</MarkForDcDept> Â Â <MarkForDcLine1>string</MarkForDcLine1> Â Â <MarkForDcLine2>string</MarkForDcLine2> Â Â <MarkForDcLine3>string</MarkForDcLine3> Â Â <MarkForDcLine4>string</MarkForDcLine4> Â Â <MarkForDcCity>string</MarkForDcCity> Â Â <MarkForDcCountyState>string</MarkForDcCountyState> Â Â <MarkForDcPostCodeZip>string</MarkForDcPostCodeZip> Â Â <MarkForDcCountryCode>string</MarkForDcCountryCode> Â Â <PoDate>1970-01-01T00:00:00.001Z</PoDate> Â Â <ShipByDate>1970-01-01T00:00:00.001Z</ShipByDate> Â Â <ShipAfterDate>1970-01-01T00:00:00.001Z</ShipAfterDate> Â Â <ArriveByDate>1970-01-01T00:00:00.001Z</ArriveByDate> Â Â <CancelByDate>1970-01-01T00:00:00.001Z</CancelByDate> Â Â <SiteId>string</SiteId> Â Â <StoreId>string</StoreId> Â Â <StoreName>string</StoreName> Â Â <ShipToDcCode>string</ShipToDcCode> Â Â <ShipToDcDeptNo>string</ShipToDcDeptNo> Â </RetailCompliance> Â <List> Â Â <SalesOrderLineItem> Â Â Â <UnitDiscountPrice>1.1</UnitDiscountPrice> Â Â Â <OrderLineMessage>string</OrderLineMessage> Â Â Â <SecondaryCurrencyCode>string</SecondaryCurrencyCode> Â Â Â <SecondaryUnitPrice>1.1</SecondaryUnitPrice> Â Â Â <SecondaryVAT>1.1</SecondaryVAT> Â Â Â <StyleCode>string</StyleCode> Â Â Â <ASNNumber>string</ASNNumber> Â Â Â <CustomsValue>1.1</CustomsValue> Â Â Â <Channel>string</Channel> Â Â Â <CountryCode>string</CountryCode> Â Â Â <CurrencyCode>string</CurrencyCode> Â Â Â <EAN>string</EAN> Â Â Â <ExternalDocumentNo>string</ExternalDocumentNo> Â Â Â <GUID>string</GUID> Â Â Â <LineNumber>1</LineNumber> Â Â Â <LotNo>string</LotNo> Â Â Â <ProductCode>string</ProductCode> Â Â Â <Quantity>1</Quantity> Â Â Â <UnitPrice>1.1</UnitPrice> Â Â Â <VAT>1.1</VAT> Â Â </SalesOrderLineItem> Â </List> Â <TaxItems> Â Â <TaxItem> Â Â Â <Type>string</Type> Â Â Â <Value>string</Value> Â Â </TaxItem> Â </TaxItems> </Request> |
Example success Response Body | <Response> |
Example failure Response Body | <Response> |
JSON Format | |
Body | {  "SalesOrder": {   "SalesInvoiceNumber": "string",   "DocumentIdentifier": "string",   "NIFNumber": "string",   "ShippingVAT": 0,   "ShippingExVAT": 0,   "CustomsValueTotal": 0,   "DiscountPriceTotal": 0,   "GiftWrap": true,   "GiftMessage": "string",   "ShippingTerm": "string",   "ShippingTermLocation": "string",   "GiftMessageFrom": "string",   "GiftMessageTo": "string",   "CourierShopID": "string",   "PurchaseOrderNumber": "string",   "GroupReference": "string",   "ShippingTotal": 0,   "TaxTotal": 0,   "SubTotal": 0,   "OrderType": "string",   "CurrencyCode": "string",   "CarrierCustomerAccountNo": "string",   "CourierName": "string",   "CourierService": "string",   "DeliveryAddressLocationType": "string",   "DoNotPushToDC": true,   "GUID": "string",   "LocationType": "string",   "Notes": "string",   "NotificationMethod": "string",   "OnHold": true,   "SalesOrderDate": "2024-03-13T15:45:33.480Z",   "SalesOrderNumber": "string",   "SalesOrderReference": "string",   "ScheduledShipDate": "2024-03-13T15:45:33.480Z",   "ShipmentTerms": "string",   "SpecialInstructions": "string",   "UltimateDestination": "string"  },  "SalesOrderHeader": {   "DCCode": "string"  },  "ShipToCompany": {   "BranchCode": "string",   "CompanyCategory": "string",   "CompanyCode": "string",   "CompanyDescription": "string",   "LookupDeliveryAddress": true  },  "DeliveryDetails": {   "DeliveryContactIDNumber": "string",   "City": "string",   "ContactCode": "string",   "CountryCode": "string",   "County": "string",   "EmailAddress": "string",   "FirstName": "string",   "LastName": "string",   "Line1": "string",   "Line2": "string",   "Line3": "string",   "Line4": "string",   "PhoneNumber": "string",   "PostcodeZip": "string",   "Title": "string"  },  "BillingDetails": {   "City": "string",   "ContactCode": "string",   "CountryCode": "string",   "County": "string",   "EmailAddress": "string",   "FirstName": "string",   "LastName": "string",   "Line1": "string",   "Line2": "string",   "Line3": "string",   "Line4": "string",   "PhoneNumber": "string",   "PostcodeZip": "string",   "Title": "string"  },  "RetailCompliance": {   "Gs1Prefix": "string",   "MarkForDcCode": "string",   "MarkForDcName": "string",   "MarkForDcDept": "string",   "MarkForDcLine1": "string",   "MarkForDcLine2": "string",   "MarkForDcLine3": "string",   "MarkForDcLine4": "string",   "MarkForDcCity": "string",   "MarkForDcCountyState": "string",   "MarkForDcPostCodeZip": "string",   "MarkForDcCountryCode": "string",   "PoDate": "2024-03-13T15:45:33.480Z",   "ShipByDate": "2024-03-13T15:45:33.480Z",   "ShipAfterDate": "2024-03-13T15:45:33.480Z",   "ArriveByDate": "2024-03-13T15:45:33.480Z",   "CancelByDate": "2024-03-13T15:45:33.480Z",   "SiteId": "string",   "StoreId": "string",   "StoreName": "string",   "ShipToDcCode": "string",   "ShipToDcDeptNo": "string"  },  "List": {   "SalesOrderLineItem": [    {     "UnitDiscountPrice": 0,     "OrderLineMessage": "string",     "SecondaryCurrencyCode": "string",     "SecondaryUnitPrice": 0,     "SecondaryVAT": 0,     "StyleCode": "string",     "ASNNumber": "string",     "CustomsValue": 0,     "Channel": "string",     "CountryCode": "string",     "CurrencyCode": "string",     "EAN": "string",     "ExternalDocumentNo": "string",     "GUID": "string",     "LineNumber": 0,     "LotNo": "string",     "ProductCode": "string",     "Quantity": 0,     "UnitPrice": 0,     "VAT": 0    }   ]  },  "TaxItems": [   {    "Type": "string",    "Value": "string"   }  ] } |
Example success Response Body | { |
Example failure Response Body | { |