Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents

7.1.    Echo – echo/v1

This service is available in order for clients to test that their API tokens are working and that they can connect to the Integration Hub. Any value in ‘parameter’ is echo’d back to the caller.

...

https://hubuat1.supplystream.com/hub/api/echo/v1/hello.json?token=yc9omovynxl61949x n616inpkqy2db931cgov9

        

7.2.    Products – products/v1

HTTP

Method

Parameters

Description

X

M

L

J

S

O

N

C

S

V

H

T

M

L

POST

/submit

Load product master

Y

Y

N


N

POST

/update

Update product master

Y

Y

N


N

POST

/submit/{guid}/ean/{ean}

Load Product Master EAN

Y

Y

Y


Y

GET 

/{product}/status

Get status for product

Y

Y

Y


Y

GET 

/{product}/eans

Get EAN for product

Y

Y

Y


Y


7.2.1.       /submit – Load Product Master

This call creates new products (WCF 3.1). 

...

Call

Load Product Master in JSON format (POST)

URL

https://hubuat1.supplystream.com/hub/api/products/v1/submit.json?token=< token>

SAMPLE BODY

https://hubuat1.supplystream.com/hub/api/products/v1/sample.json?token=< token>

BODY

{

    "Request": {

        "List": [

            {

                "SupplierMapping": [

                    {

                        "SupplierCode": "Supplier Code",

                        "SupplierDescription": "Supplier Description",

                        "UOM": "UOM"

                    },

                    {

                        "SupplierCode": "Supplier Code",

                        "SupplierDescription": "Supplier Description",

                        "UOM": "UOM"

                    },

                    {

                        "SupplierCode": "Supplier Code",

                        "SupplierDescription": "Supplier Description",

                        "UOM": "UOM"

                    }

                ]

            },

            {

                "ShipToCompanyMapping": [

                    {

                        "BranchCode": "Branch Code (Optional)",

                        "CompanyCode": "Company Code (Optional)",

                        "MappedCode": "Mapped Code (Optional)"

                    },

                    {

                        "BranchCode": "Branch Code (Optional)",

                        "CompanyCode": "Company Code (Optional)",

                        "MappedCode": "Mapped Code (Optional)"                     },

                    {

                        "BranchCode": "Branch Code (Optional)",

                        "CompanyCode": "Company Code (Optional)",


                        "MappedCode": "Mapped Code (Optional)"

                    }

                ]

            },

            {

                "ProductIdentifier": [

                    {

                        "Name": "Name (Optional)",

                        "SortOrder": "Sort Order (Optional)",

                        "Value": "Value (Optional)"

                    },

                    {

                        "Name": "Name (Optional)",

                        "SortOrder": "Sort Order (Optional)",

                        "Value": "Value (Optional)"

                    },

                    {

                        "Name": "Name (Optional)",

                        "SortOrder": "Sort Order (Optional)",

                        "Value": "Value (Optional)"

                    }

                ]

            }

        ],

        "ProductMaster": {

            "EAN": "EAN (Optional)",

            "HTSCode": "HTS Code (Optional)",

            "ProductCode": "Product Code",

            "ProductDescription": "Product Description (Optional)",

            "ProductLongDescription": "Product Long Description (Optional)"

        }

    } }

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "GUID": "3ea9eb61-7f49-4c03-986a-9340da72c6d4" }}  


7.2.2.       /update – update product master

This call can be used to update product information for the products you created (WCF 3.17)

...

Call

Update Product Master in JSON format (POST)

URL

https://hubuat1.supplystream.com/hub/api/products/v1/update.json?token=< token>

SAMPLE BODY

https://hubuat1.supplystream.com/hub/api/products/v1/updatesample.json?t oken=<token>

BODY

{

    "Request": {

        "List": [

            {

                "SupplierMapping": [

                    {

                        "SupplierCode": "Supplier Code (Optional)",

                        "SupplierDescription": "Supplier Description (Optional)",

                        "UOM": "UOM (Optional)"                     },


                    {

                        "SupplierCode": "Supplier Code (Optional)",

                        "SupplierDescription": "Supplier Description (Optional)",

                        "UOM": "UOM (Optional)"

                    },

                    {

                        "SupplierCode": "Supplier Code (Optional)",

                        "SupplierDescription": "Supplier Description (Optional)",

                        "UOM": "UOM (Optional)"

                    }

                ]

            },

            {

                "ShipToCompanyMapping": [

                    {

                        "BranchCode": "Branch Code (Optional)",

                        "CompanyCode": "Company Code (Optional)",

                        "MappedCode": "Mapped Code (Optional)"

                    },

                    {

                        "BranchCode": "Branch Code (Optional)",

                        "CompanyCode": "Company Code (Optional)",

                        "MappedCode": "Mapped Code (Optional)"

                    },

                    {

                        "BranchCode": "Branch Code (Optional)",

                        "CompanyCode": "Company Code (Optional)",

                        "MappedCode": "Mapped Code (Optional)"

                    }

                ]

            },

            {

                "ProductIdentifier": [

                    {

                        "Name": "Name (Optional)",

                        "SortOrder": "Sort Order (Optional)",

                        "Value": "Value (Optional)"

                    },

                    {

                        "Name": "Name (Optional)",

                        "SortOrder": "Sort Order (Optional)",

                        "Value": "Value (Optional)"

                    },

                    {

                        "Name": "Name (Optional)",

                        "SortOrder": "Sort Order (Optional)",

                        "Value": "Value (Optional)"

                    }

                ]

            }

        ],

        "ProductMaster": {

            "EAN": "EAN (Optional)",

            "HTSCode": "HTS Code (Optional)",

            "ProductCode": "Product Code",

            "ProductDescription": "Product Description (Optional)",

            "ProductLongDescription": "Product Long Description (Optional)"

        }

    } }

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "GUID": "3ea9eb61-7f49-4c03-986a-9340da72c6d4" }}  


7.2.3.       /submit/{productCode}/ean/{ean}

This call should be used if you need to update an EAN value based on the System EAN for a product (WCF 3.6)

Call

Load EAN <ean> for product <guid> in JSON format (POST)

URL

https://hubuat1.supplystream.com/hub/api/products/v1/submit/3ab874f5d59f-4bf0-9859-ee513bd5f1cf/ean/ABCDEF.json?token=<token>

RESULT

 


7.2.4.        /status – retrieve product status for a specific product

This call can be used to check the current status of a product. The status can be “In Development” or “In Production”. (WCF 3.4)

Call

Return product status for product 100083 in JSON format (GET)

URL

https://hubuat1.supplystream.com/hub/api/products/v1/100083/status.json?

token=<token>

RESULT

{

    "Response": {

        "CallStatus": {

            "Code": 0,

            "Message": {},

            "Success": true

        },

        "ProductCode": 100083,

        "Status": "In Production"

    }

}


7.2.5.        /eans – retrieve EANs for a specific product

This call should only be used if you need to return a list of internal System EAN’s for a product. (WCF 3.5) 

Call

Return EAN for product 100083 in JSON format (GET)

URL

https://hubuat1.supplystream.com/hub/api/products/v1/100083/eans.json?to ken=<token>

RESULT

{

"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "List": {"ProductMasterEANLineItem": {

        "IdentifiersValue": {},

        "SystemEANId": "c1595008-2cc9-e211-a0b9-000c29da324d"

    }},

    "ProductCode": 100083 }}




        

7.3.    Receipt – receipts/v1

HTTP

Method

Parameters

Description

X

M

L

J

S

O

N

C

S

V

HT

M

L

POST 

/submit

Load receipts

Y

Y

N

N


7.3.1.       /submit - Load Receipt s

This call creates a new receipt. This will create an advance ship notice of pending deliveries in the DC. (WCF 3.3)

...

Call

Load Receipts in JSON format (POST)

URL

https://hubuat1.supplystream.com/hub/api/receipts/v1/submit.json?token=< token>

SAMPLE BODY

https://hubuat1.supplystream.com/hub/api/receipts/v1/sample.json?token=< token>

BODY

{

    "Request": {

        "List": {

            "ReceiptLineItem": [

                {

                    "EAN": "EAN (Optional)",

                    "GUID": "GUID (Optional)",

                    "LineNumber": "Line Number",

                    "ProductCode": "Product Code (Optional)",

                    "Quantity": "Quantity",

                    "SupplierCompanyCode": "Supplier Company Code"

                },

                {

                    "EAN": "EAN (Optional)",

                    "GUID": "GUID (Optional)",

                    "LineNumber": "Line Number",

                    "ProductCode": "Product Code (Optional)",

                    "Quantity": "Quantity",

                    "SupplierCompanyCode": "Supplier Company Code"

                },

                {

                    "EAN": "EAN (Optional)",

                    "GUID": "GUID (Optional)",

                    "LineNumber": "Line Number",

                    "ProductCode": "Product Code (Optional)",

                    "Quantity": "Quantity",

                    "SupplierCompanyCode": "Supplier Company Code"

                }

            ]

        },

        "Receipt": {

            "ASNNumber": "ASN Number",

            "GUID": "GUID (Optional)",

            "HBReference": "HB Reference (Optional)",

            "IsReturn": "Is Return (Optional)",

            "Notes": "Notes (Optional)",

            "WarehouseETA": "Warehouse ETA (Optional)"

        },

        "ReceiptHeader": {

            "DCCode": "DC Code (Optional)"

        }

    } }

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "GUID": "3ea9eb61-7f49-4c03-986a-9340da72c6d4" }}  

 

        

7.4.    Company – companies/v1

HTTP

Method

Parameters

Description

X

M

L

J

S

O

N

C

S

V

HT

M

L

POST 

/submit

Load company information

Y

Y

N

N


7.4.1.       /submit – Load Companies

This call can be used to create a new company. This includes new suppliers and ship to companies. The Company Type field is used to specify the type of company you are creating. (WCF 3.10)

...

Call

Load Companies in JSON format (POST)

URL

https://hubuat1.supplystream.com/hub/api/companies/v1/submit.json?token= <token>

SAMPLE BODY

https://hubuat1.supplystream.com/hub/api/companies/v1/sample.json?token= <token>

BODY

{

    "Request": {

        "Company": {

            "BranchCode": "Branch Code (Optional)",

            "CompanyCategory": "Company Category (Optional)",

            "CompanyCode": "Company Code",

            "CompanyDescription": "Company Description",

            "CompanyType": "Company Type",

            "Notes": "Notes (Optional)",

            "SpecialInstructions": "Special Instructions (Optional)"         },

        "List": {

            "Address": [

                {

                    "AddressLine1": "Address Line 1",

                    "AddressLine2": "Address Line 2 (Optional)",

                    "AddressLine3": "Address Line 3 (Optional)",

                    "AddressLine4": "Address Line 4 (Optional)",

                    "AddressLocationType": "Address Location Type (Optional)",

                    "AddressType": "Address Type",                     "City": "City",

                    "CountryCode": "Country Code",

                    "County": "County (Optional)",

                    "PostcodeZip": "Postcode Zip"

                },

                {

                    "AddressLine1": "Address Line 1",

                    "AddressLine2": "Address Line 2 (Optional)",

                    "AddressLine3": "Address Line 3 (Optional)",

                    "AddressLine4": "Address Line 4 (Optional)",

                    "AddressLocationType": "Address Location Type (Optional)",

                    "AddressType": "Address Type",                     "City": "City",

                    "CountryCode": "Country Code",

                    "County": "County (Optional)",

                    "PostcodeZip": "Postcode Zip"

                },

                {

                    "AddressLine1": "Address Line 1",

                    "AddressLine2": "Address Line 2 (Optional)",

                    "AddressLine3": "Address Line 3 (Optional)",

                    "AddressLine4": "Address Line 4 (Optional)",

                    "AddressLocationType": "Address Location Type (Optional)",

                    "AddressType": "Address Type",

                    "City": "City",

                    "CountryCode": "Country Code",

                    "County": "County (Optional)",

                    "PostcodeZip": "Postcode Zip"


                }

            ]

        }

    } }

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "GUID": "3ea9eb61-7f49-4c03-986a-9340da72c6d4" }}  

 

        

7.5.    Sales Order – salesorders/v1

This service is for submitting and managing Sales Orders.

HTTP

Method

Parameters

Description

X

M

L

J

S

O

N

C

S

V

HT

M

L

POST

/submit

Submits an order

Y

Y

N

N

POST

/websubmit

Submits a web order

Y

Y

N

N

POST

/{guid}/cancel/reasoncode/{reason}

Sales Order cancel for reasoncode [{eason}

Y

Y

N

N

POST

/{SONum}/releasefromhold

Release sales order from hold {SONum} from hold

Y

Y

N

N

POST

/{SONum}/cancelfromhold

Cancel from hold for sales order {SONum}

Y

Y

N

N

GET

/{guid}/status

Returns status of order with {guid}

Y

Y

Y

Y

GET

/{guid}/tracking

Returns tracking information of order with id {guid}

Y

Y

Y

Y

 

7.5.1.        /submit - Submit order 

This call can be called to create new sales orders. The products within the order must have sufficient available stock for the order to be created if “PushToDC” is set to true. (WCF 3.18)

...


        "FirstName": "First Name (Optional)",

        "LastName": "Last Name (Optional)",

        "Line1": "Line 1",

        "Line2": "Line 2 (Optional)",

        "Line3": "Line 3 (Optional)",

        "Line4": "Line 4 (Optional)",

        "PhoneNumber": "Phone Number (Optional)",

        "PostcodeZip": "Postcode Zip",

        "Title": "Title (Optional)"

    },

    "ForwardingAgent": {

        "City": "City (Optional)",

        "CompanyCode": "Company Code (Optional)",

        "CompanyDescription": "Company Description (Optional)",

        "ContactCode": "Contact Code (Optional)",

        "CountryCode": "Country Code (Optional)",

        "County": "County (Optional)",

        "EmailAddress": "Email Address (Optional)",

        "FirstName": "First Name (Optional)",

        "LastName": "Last Name (Optional)",

        "Line1": "Line 1 (Optional)",

        "Line2": "Line 2 (Optional)",

        "Line3": "Line 3 (Optional)",

        "Line4": "Line 4 (Optional)",

        "PhoneNumber": "Phone Number (Optional)",

        "PostcodeZip": "Postcode Zip (Optional)",

        "Title": "Title (Optional)"

    },

    "List": {"SalesOrderLineItem": [

        {

            "CountryCode": "Country Code (Optional)",

            "CurrencyCode": "Currency Code (Optional)",

            "EAN": "EAN (Optional)",

            "ExternalDocumentNo": "External Document No (Optional)",

            "GUID": "GUID (Optional)",

            "LineNumber": "Line Number",

            "ProductCode": "Product Code (Optional)",

            "Quantity": "Quantity",

            "UnitPrice": "Unit Price (Optional)",

            "VAT": "VAT (Optional)"

        },

        {

            "CountryCode": "Country Code (Optional)",

            "CurrencyCode": "Currency Code (Optional)",

            "EAN": "EAN (Optional)",

            "ExternalDocumentNo": "External Document No (Optional)",

            "GUID": "GUID (Optional)",

            "LineNumber": "Line Number",

            "ProductCode": "Product Code (Optional)",

            "Quantity": "Quantity",

            "UnitPrice": "Unit Price (Optional)",

            "VAT": "VAT (Optional)"

        },

        {

            "CountryCode": "Country Code (Optional)",

            "CurrencyCode": "Currency Code (Optional)",

            "EAN": "EAN (Optional)",

            "ExternalDocumentNo": "External Document No (Optional)",

            "GUID": "GUID (Optional)",

            "LineNumber": "Line Number",

            "ProductCode": "Product Code (Optional)",

            "Quantity": "Quantity",

            "UnitPrice": "Unit Price (Optional)",

            "VAT": "VAT (Optional)"

        }

    ]},

    "SalesOrder": {

        "CourierName": "Courier Name (Optional)",

        "CourierService": "Courier Service (Optional)",

        "DoNotPushToDC": "Do Not Push To DC (Optional)",

        "GUID": "GUID (Optional)",

        "Notes": "Notes (Optional)",

        "NotificationMethod": "Notification Method (Optional)",

        "SalesOrderDate": "Sales Order Date",

        "SalesOrderNumber": "Sales Order Number",

        "SalesOrderReference": "Sales Order Reference (Optional)",


         "ScheduledShipDate": "Scheduled Ship Date (Optional)",

        "ShipmentTerms": "Shipment Terms (Optional)",

        "SpecialInstructions": "Special Instructions (Optional)",

        "UltimateDestination": "Ultimate Destination (Optional)"     },

    "SalesOrderHeader": {"DCCode": "DC Code (Optional)"},

    "ShipToCompany": {

        "BranchCode": "Branch Code (Optional)",

        "CompanyCategory": "Company Category (Optional)",

        "CompanyCode": "Company Code",

        "CompanyDescription": "Company Description",

        "LookupDeliveryAddress": "Lookup Delivery Address (Optional)"

    } }}

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "GUID": "3ea9eb61-7f49-4c03-986a-9340da72c6d4" }}  


7.5.2.       /websubmit – Submit Web Order 

This call can be called to create new Web sales orders. The products within the order must have sufficient available stock for the order to be created. (WCF 3.18)

...

BODY

oken=<token>

BODY

{"Request": {

    "BillingDetails": {

        "City": "City (Optional)",

        "ContactCode": "Contact Code (Optional)",

        "CountryCode": "Country Code (Optional)",

        "County": "County (Optional)",

        "EmailAddress": "Email Address (Optional)",

        "FirstName": "First Name (Optional)",

        "LastName": "Last Name (Optional)",

        "Line1": "Line 1 (Optional)",

        "Line2": "Line 2 (Optional)",

        "Line3": "Line 3 (Optional)",

        "Line4": "Line 4 (Optional)",

        "PhoneNumber": "Phone Number (Optional)",

        "PostcodeZip": "Postcode Zip (Optional)",

        "Title": "Title (Optional)"

    },

    "DeliveryDetails": {

        "City": "City",

        "ContactCode": "Contact Code (Optional)",

        "CountryCode": "Country Code",

        "County": "County (Optional)",

        "EmailAddress": "Email Address (Optional)",

        "FirstName": "First Name (Optional)",

        "LastName": "Last Name (Optional)",

        "Line1": "Line 1",

        "Line2": "Line 2 (Optional)",

        "Line3": "Line 3 (Optional)",

        "Line4": "Line 4 (Optional)",

        "PhoneNumber": "Phone Number (Optional)",

        "PostcodeZip": "Postcode Zip",

        "Title": "Title (Optional)"

    },

    "ForwardingAgent": {

        "City": "City (Optional)",

        "CompanyCode": "Company Code (Optional)",

        "CompanyDescription": "Company Description (Optional)",

        "ContactCode": "Contact Code (Optional)",

        "CountryCode": "Country Code (Optional)",

        "County": "County (Optional)",

        "EmailAddress": "Email Address (Optional)",

        "FirstName": "First Name (Optional)",

        "LastName": "Last Name (Optional)",

        "Line1": "Line 1 (Optional)",

        "Line2": "Line 2 (Optional)",

        "Line3": "Line 3 (Optional)",

        "Line4": "Line 4 (Optional)",

        "PhoneNumber": "Phone Number (Optional)",

        "PostcodeZip": "Postcode Zip (Optional)",

        "Title": "Title (Optional)"

    },

    "List": {"SalesOrderLineItem": [

        {

            "CountryCode": "Country Code (Optional)",

            "CurrencyCode": "Currency Code (Optional)",

            "EAN": "EAN (Optional)",

            "ExternalDocumentNo": "External Document No (Optional)",

            "GUID": "GUID (Optional)",

            "LineNumber": "Line Number",

            "ProductCode": "Product Code (Optional)",

            "Quantity": "Quantity",

            "UnitPrice": "Unit Price (Optional)",

            "VAT": "VAT (Optional)"

        },

        {

            "CountryCode": "Country Code (Optional)",

            "CurrencyCode": "Currency Code (Optional)",

            "EAN": "EAN (Optional)",

            "ExternalDocumentNo": "External Document No (Optional)",

            "GUID": "GUID (Optional)",

            "LineNumber": "Line Number",

            "ProductCode": "Product Code (Optional)",

            "Quantity": "Quantity",

            "UnitPrice": "Unit Price (Optional)",


            "VAT": "VAT (Optional)"

        },

        {

            "CountryCode": "Country Code (Optional)",

            "CurrencyCode": "Currency Code (Optional)",

            "EAN": "EAN (Optional)",

            "ExternalDocumentNo": "External Document No (Optional)",

            "GUID": "GUID (Optional)",

            "LineNumber": "Line Number",

            "ProductCode": "Product Code (Optional)",

            "Quantity": "Quantity",

            "UnitPrice": "Unit Price (Optional)",

            "VAT": "VAT (Optional)"

        }

    ]},

    "SalesOrderHeader": {"DCCode": "DC Code (Optional)"},

    "WebSalesOrder": {

        "CourierName": "Courier Name (Optional)",

        "CourierService": "Courier Service (Optional)",

        "DoNotPushToDC": "Do Not Push To DC (Optional)",

        "GUID": "GUID (Optional)",

        "Notes": "Notes (Optional)",

        "NotificationMethod": "Notification Method (Optional)",

        "SalesOrderDate": "Sales Order Date (Optional)",

        "SalesOrderNumber": "Sales Order Number",

        "SalesOrderReference": "Sales Order Reference (Optional)",

         "ScheduledShipDate": "Scheduled Ship Date (Optional)",

        "ShipmentTerms": "Shipment Terms (Optional)",

        "SpecialInstructions": "Special Instructions (Optional)",

        "UltimateDestination": "Ultimate Destination (Optional)"

    }

}}

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "GUID": "2bb64d28-ff38-49bf-a055-1372d83739cf"

}}


7.5.3.        /cancel/reasoncode – Cancel a sales order with a reason code

This call can be used to cancel an order. Please note once an order has a status of “To Dispatch” it cannot be cancelled (WCF 3.12).

Call

Cancel the Sales Order with Reason Code (POST)

Note:The GUID generated by the Integration Hub (or provided using the GUID parameter) is used to identify the order.

URL

https://hubuat1.supplystream.com/hub/api/salesorders/v1/<guid>/ cancel/reasoncode/001.json?&token=<token>

Available Reason Codes:

  • 001 - Customer Request
  • 002 - Order Delayed
  • 003 - Duplicate
  • 004 - Item not available
  • 005 - Cannot ship to address
  • 006 - Other

RESULT

 


7.5.4.        /releasefromhold – Release the Sales Order from Hold 

This method can be used to release an order from hold when the fraud check was successful (WCF 2.1).

...

Call

Release the Sales Order from Hold (POST)

URL

https://hubuat1.supplystream.com/hub/api/salesorders/v1/<salesOrderNumbe r>/ releasefromhold.json?&token=<token>

RESULT

 


7.5.5.       /cancelfromhold

This call can be used to cancel an order when the fraud check fails (WCF 2.2).

Call

Cancel the Sales Order from Hold (POST)

URL

https://hubuat1.supplystream.com/hub/api/salesorders/v1/< salesOrderNumber>/ cancelfromhold.json?&token=<token>

RESULT

 


7.5.6.       /status – Check status of order 

This call can be used to check the current status of the sales order. The status can be: To Be Picked, Being Picked, Pick Complete, To Dispatch, Dispatched, and Cancelled (WCF 3.7). 

Call

Check the status of an order (GET)

Note:The GUID generated by the Integration Hub (or provided using the GUID parameter) is used to identify the order.

URL

https://hubuat1.supplystream.com/hub/api/salesorders/v1/<guid>/status.js on?&token=<token>

RESULT

<Response>

  <CallStatus>

    <Success>true</Success>

    <Code>0</Code>

    <Message/>

  </CallStatus>

  <Status>To Be Picked</Status>

  <GUID>f269cbf9-b2c8-4b6c-85e4-1e21eb833a47</GUID> </Response>

The available statuses are:

  • To Be Picked
  • Being Picked
  • Pick Complete
  • To Dispatch
  • Dispatched
  • Cancelled

 

7.5.7.        /tracking – Check tracking details of a sales order 

This call can be used to get the courier and tracking number for a sales order (WCF 3.8). 

Call

Check the tracking status of an order (GET)

Note:The GUID generated by the Integration Hub (or provided using the GUID parameter) is used to identify the order.

URL

https://hubuat1.supplystream.com/hub/api/salesorders/v1/<guid>/tracking.

json?&token=<token>

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "Courier": "DHL",

    "GUID": "468DF821564618DD7113734544443021",

    "TrackingNumber": "12345699000838L" }}


        

7.6.    Stock – stock/v1

This service is to check that stock quantities in the system.

HTTP

Method

Parameters

Description

X

M

L

J

S

O

N

C

S

V

HT

M

L

POST

/submit/adjustments

Loads stock adjustments

Y

Y

N

N

GET

/all

Returns all product stock levels in all DC’s

Y

Y

Y

Y

GET

/product/{product}   or

/product/{product}?cod e={code}&location={loc ation}  


Returns stock levels for the product with code {product}

These services also accept the following optional query parameters:

  • code – type of product code supplied:
    • productcode (the default)  
    • ean If identified using EAN
  • location – By default all location types are returned. This can be restricted by setting this to one of:o      Web+Stock o         Available+Stock o       Cross+Dock

Y

Y

Y

Y

GET

/dc/{dc}

Returns stock levels for the DC with code {dc}

Y

Y

Y

Y

GET

/dc/{dc}/product/{prod uct} or  

/dc/{dc}/product/{prod uct}?code={code}&locat ion={location}

Returns stock levels for the product with code {product} in DC with code {dc}

  • code – type of product code supplied:
    • productcode (the default)  
    • ean If identified using EAN
  • location – By default all location types are returned. This can be restricted by setting this to one of:o      Web+Stock o       Available+Stock o       Cross+Dock

Y

Y

Y

Y

GET

/adjustments/{fromDate

}/{toDate}?dc={dc}

Get stock adjustments for range {fromDate} to {toDate}

Note: The parameters {fromDate} and {toDate} are timestamps and must be supplied in ISO 8601 format. e.g. 2013-10-31T00:00:00

Optionally the DC can be specified if more than one DC exists

Y

Y

Y

Y

GET

/movements/{fromDate}/

{toDate}?dc={dc}

Returns stock adjustments for range {fromDate} to {toDate}

Optionally the DC can be specified if more than one DC exists

Y

Y

Y

Y

 

7.6.1.        /submit/adjustment – Load Stock Adjustments

This call can be used to create stock adjustments for Cartons within the DC (WCF

...

Call

Submit Stock Adjustment using JSON (POST)

URL

https://hubuat1.supplystream.com/hub/api/stock/v1/submit/adjustment.json ?token=<token>

SAMPLE BODY

https://hubuat1.supplystream.com/hub/api/stock/v1/adjustmentsample.json?

token=<token>

BODY

{

    "Request": {

        "List": {

            "StockAdjustmentLineItem": [

                {

                    "CartonNumber": "Carton Number",

                    "GUID": "GUID (Optional)",

                    "LineNumber": "Line Number",

                    "Quantity": "Quantity",

                    "ReasonCode": "Reason Code (Optional)"                 },


                {

                    "CartonNumber": "Carton Number",

                    "GUID": "GUID (Optional)",

                    "LineNumber": "Line Number",

                    "Quantity": "Quantity",

                    "ReasonCode": "Reason Code (Optional)"

                },

                {

                    "CartonNumber": "Carton Number",

                    "GUID": "GUID (Optional)",

                    "LineNumber": "Line Number",

                    "Quantity": "Quantity",

                    "ReasonCode": "Reason Code (Optional)"

                }

            ]

        },

        "StockAdjustment": {

            "GUID": "GUID (Optional)",

            "StockAdjustmentId": "Stock Adjustment Id (Optional)",

            "StockAdjustmentType": "Stock Adjustment Type"

        }

    } }

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "GUID": "2bb64d28-ff38-49bf-a055-1372d83739cf"

}}

 

7.6.2.        /all - Retrieve All Stock

This call can be used to check all your products and how much stock is available for each product (WCF 3.11).

...

Call

Return all stock in CSV format (GET)

URL

https://hubuat1.supplystream.com/hub/api/stock/v1/all.csv?token=<token>

RESULT

 


7.6.3.        /dc – Retrieve Stock for a specific Distribution Centre

This call can be used to check all your products and how much stock is available for each product per DC. (WCF 3.15)

Call

Return stock for DC CRLAN001 in JSON format (GET)

This call can be used to check all your products and how much stock is available for each product per DC.

URL

https://hubuat1.supplystream.com/hub/api/stock/v1/dc/CRLAN001.json?token =<token>

RESULT

 


7.6.4.        /product – Retrieve stock for a specific product

This method can be used to check the available stock for a product. You can pass in a single product or a collection of products. (WCF 3.9)

...

Call

Return stock for EAN 1234567890123 and LocationType “Available Stock” where in JSON format (GET)

URL

https://hubuat1.supplystream.com/hub/api/stock/v1/product/1234567890123. json?location=Available+Stock&token=<token>

Location:

  • Web+Stock
  • Available+Stock
  • Cross+Dock

RESULT

{

    "Response": {

        "CallStatus": {

            "Code": 0,

            "Message": {},

            "Success": true

        },

        "List": {

            "StockQuantityLineItem": {

                "DCCode": {},

                "EAN": 1234567890123,

                "FreeQuantity": 0,

                "LocationType": "Available Stock",

                "ProductCode": {}

            }

        }

    } }


7.6.5.        /adjustment – Retrieve stock adjustments 

This call can be used to export stock adjustment information based on a date range. The type of adjustment (Increase or Decrease) will be returned as well as all the line items with the product code and quantity adjusted (WCF 5.5)

...

Call

Return stock adjustments for time range 1st October to 2013to 10th October 2013 where the Data Centre is “DCCL01 in XML format (GET)

URL

https://hubuat1.supplystream.com/hub/api/stock/v1/adjustment/2013-1001T00:00:00Z/2013-10-10T00:00:00Z.xml?dc=DCCL01&token=<token>

RESULT

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Response>

      <CallStatus>

             <Success>false</Success>

             <Code>100</Code>

            <Message>No results found for search criteria</Message>

      </CallStatus>

</Response>

 

7.6.6.       /movements – Retrieve stock movements

This call can be used to export stock movement information based on a date range (WCF 5.6)

...

Call

Return stock movements for time range 1st October to 2013to 10th October 2013 where the Data Centre is “DCCL01 in JSON format (GET)

URL

https://hubuat1.supplystream.com/hub/api/stock/v1/movement/2013-1001T00:00:00Z/2013-10-10T00:00:00Z.json?dc=DCCL01&token=<token>

RESULT

{

    "status": {

        "message": "No results found for search criteria",

        "code": 100,

        "success": false

    } }


             

7.7.    Dispatches – dispatches/v1

This service is to check order dispatches.

HTTP

Method

Parameters

Description

X

M

L

J

S

O

N

C

S

V

H

T

M

L

GET

/{id}

Returns details of a dispatched order with supplied id

Y

Y

Y

Y

GET

/status/{from}/{to}


 Returns dispatch status for all orders within the given range.

This service also accepts the following query parameters:

  • dc – This identifies the specific DC to query
  • status – Specific dispatch status that you are interested in. This parameter can be repeated multiple times to check for multiple statuses. Valid values are:

o         To+Be+Picked o         Being+Picked o         Pick+Complete o         To+Dispatch o            Dispatched o            Cancelled

The parameters {from} and {to} are timestamps and must be supplied in ISO 8601 format e.g. 2013-10-31T00:00:00Z

Y

Y

Y

Y


7.7.1.        Dispatches- Retrieve specific sales order id 

This call can be used to export dispatch information relating to the sales order you created. The current dispatch status, courier name, courier reference, being picked date, to be packed date, to dispatch date and dispatch date will be returned as well as all the line items with the dispatch quantity. (WCF 5.2)

Call

Retrieve details of a Dispatched Sales Order (GET)

Note:The GUID generated by the Integration Hub (or provided using the GUID parameter) is used to identify the order.

URL

https://hubuat1.supplystream.com/hub/api/dispatches/v1/<guid>.json?&toke n=<token>

RESULT

{"Response": {

    "BeingPickedDate": "2013-07-10T12:44:26+01:00",

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "CourierName": "DPD",

    "CourierRef": "15501999000838L",

    "CurrentStatus": "Dispatched",

    "DispatchDate": "2013-07-10T13:07:18+01:00",

    "GUID": "468DF821564618DD7113734544443021",

    "List": {"DispatchLineItem": {

        "DispatchQuantity": 1,


        "GUID": "468DF821564618DD7113734544443022",

        "LineItemNumber": 1

    }},

    "ToBePackedDate": "2013-07-10T12:45:27+01:00",

    "ToDispatchDate": "2013-07-10T12:56:00+01:00"

}}


7.7.2.       Dispatches - Retrieve status of order between dates, DC and dispatch statuses

This call can be used to export dispatch status changes based on a date range. If the Dispatch status was changed between the start and end dates it will be returned. If statuses are provided then it will only return the dispatch if that status change occurred between the start and end dates specified (WCF 5.4).

...

Call

Retrieve Changed Dispatch Status for time range 1st October to

2013to 10th October 2013 in JSON format where Order has been ‘Dispatched’ or ‘Being Picked’ (GET)

URL

https://hubuat1.supplystream.com/hub/api/dispatches/v1/status/2013-1001T00:00:00Z/2013-10-

10T00:00:00Z.json?status=Dispatched&status=Being+Picked&token=<token>or include a DC if more than one DC associated


https://hubuat1.supplystream.com/hub/api/dispatches/v1/status/2013-10-

01T00:00:00Z/2013-10-

10T00:00:00Z.json?dc=CRLAN001&status=Dispatched&status=Being+Picked&toke n=<token>

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "List": {"DispatchLineItem": [

        {

            "DCCode": "DCCL01",

            "GUID": "9eb9662e-79b5-43c9-af2c-4068237a2bc7"

        },

        {

            "DCCode": "DCCL01",

            "GUID": "929eb178-8844-4c10-bd7b-139083d750e2"

        },

        {

            "DCCode": "DCCL01",

            "GUID": "77e60e4c-95ea-4842-b245-5ce147bc411a"

        },

        {

            "DCCode": "DCCL01",

            "GUID": "15b55632-b2f4-42b0-b840-5b29d48a4ef2"

        },

        {

            "DCCode": "DCCL01",

            "GUID": "a2523663-dfe2-45f9-8383-b04c64246445"

        },

        {

            "DCCode": "DCCL01",

            "GUID": "f269cbf9-b2c8-4b6c-85e4-1e21eb833a47"

        }     ]} }}

             

7.8.    GRN – GRN/v1

HTTP

Method

Parameters

Description

X

M

L

J

S

O

N

C

S

V

HT

M

L

GET

/{guid}

Get GRN details

Y

Y

Y

Y

GET 

/{fromDate}/{toDate}? dc={dc}&type={type}

Get GRNs for date range

The parameters {startDate} and {endDate} are timestamps and must be supplied in ISO 8601 format 

e.g. 2013-10-31T00:00:00Z option: {dc} if more than one DC option: {type}  type =All / Standard / Return

Y

Y

Y

Y


7.8.1.       Retrieve GRN details

This call can be used to export GRN information relating to the receipt you created. The current GRN status, arrived date, receiving start date and confirmed date will be returned as well as all the line items with the GRN quantity (WCF 5.1).

Call

Retrieve GRN details in JSON format (GET)

URL

https://hubuat1.supplystream.com/hub/api/grns/v1/730483d1-de0e-440aa6f8-1885d84eec35.json?token=<token>

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "List": {"GRNResponseItem": {

        "ArrivalTimestamp": "2013-08-07T11:04:00Z",

        "ConfirmedTimestamp": "2013-08-16T09:28:57Z",

        "CurrentStatus": "Confirmed",

        "DCCode": {},

        "GRNQuantity": 10,

        "GRNType": {},

        "GUID": "fa262243-019e-46e9-aa1a-5c7e56b4655c",

        "HBRef": {},

        "InternalId": {},

        "LineInternalId": {},

        "LineItemGUID": "9f112a6f-7a41-4d90-890c-05aa68d3079f",

        "LineItemNumber": 1,

        "ProductCode": {},

        "ReceivingStartTimestamp": "2013-08-16T09:23:38Z"

    }} }}


7.8.2.       Retrieve GRN for specific date range, DC and optional Type

This call can be used to export GRN information based on a date range. The current GRN status, arrived date, receiving start date and confirmed date will be returned as well as all the line items with the GRN quantity. (WCF 5.3)

...

Call

Retrieve GRNs from 1st October 2013 to 1st November 2013 in JSON format (GET)

URL

https://hubuat1.supplystream.com/hub/api/grns/v1/2013-10-

01T00:00:00Z/2013-11-01T00:00:00Z.json?dc=CRLAN001&type=Standard& token=<token>

Optionally the DC and/or the type can be specified. 

Available types are All / Standard / Return

RESULT

{"Response": {

    "CallStatus": {

        "Code": 0,

        "Message": {},

        "Success": true

    },

    "List": {"GRNResponseItem": {

        "ArrivalTimestamp": "2013-10-25T16:09:55Z",

        "ConfirmedTimestamp": "2013-10-25T16:15:59Z",

        "CurrentStatus": "Confirmed",

        "DCCode": "DCCL01",

        "GRNQuantity": 10,

        "GRNType": "STANDARD",

        "GUID": "730483d1-de0e-440a-a6f8-1885d84eec35",

        "HBRef": 12345,

        "InternalId": "13FA3CD2-863D-E311-A770-000C29DA324D",

        "LineInternalId": "17FA3CD2-863D-E311-A770-000C29DA324D",

        "LineItemGUID": "86b81421-33be-469f-a048-3b27291d2bb4",

        "LineItemNumber": 1,

        "ProductCode": 100083,

        "ReceivingStartTimestamp": "2013-10-25T16:11:30Z"

    }} }}







             

7.9.   Purchase Orders – purchaseorders/v1

HTTP

Method

Parameters

Description

X

M

L

J

S

O

N

C

S

V

HT

M

L

POST 

/submit

Load purchase orders

Y

Y

N

N


7.9.1.       Load Purchase Order

This call creates a new purchase order. (WCF 3.16) 

...