Field: StockCodeToGet
(string[40])
String from 0 to 40 characters
This parameter is Required
List: ErrorQueue
Field: StockCode
Field: StockDescription
Field: StockQuantityAvailable
Field: RestockDetails
The following is a sample SOAP 1.1 request and response. The
placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Host: cpslive.co.uk Accept: application/xml Content-Type: text/xml Content-Length: length SOAPAction: https://cpslive.co.uk /GetLiveStockQuantity <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetLiveStockQuantity> <StockCodeToGet>value </StockCodeToGet> </GetLiveStockQuantity> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetLiveStockQuantity_response> <StockCode>value </StockCode> <StockDescription>value </StockDescription> <StockQuantityAvailable>value </StockQuantityAvailable> <RestockDetails>value </RestockDetails> </GetLiveStockQuantity_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function GetLiveStockQuantity_soap11(host,xmldata,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Content-Type": "text/xml; charset=utf-8", "Accept": "application/xml;", "SOAPAction": host + "/GetLiveStockQuantity", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --header "Content-Type: text/xml; ; charset=utf-8" --header "Accept: application/xml" --header "SOAPAction: cpslive.co.uk /GetLiveStockQuantity" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldataTry it : Soap 1.1 POST result
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Host: cpslive.co.uk Accept: application/xml Content-Type: application/soap+xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <GetLiveStockQuantity> <StockCodeToGet>value </StockCodeToGet> </GetLiveStockQuantity> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetLiveStockQuantity_response> <StockCode>value </StockCode> <StockDescription>value </StockDescription> <StockQuantityAvailable>value </StockQuantityAvailable> <RestockDetails>value </RestockDetails> </GetLiveStockQuantity_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function GetLiveStockQuantity_soap12(host,xmldata,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Content-Type": "application/soap+xml; charset=utf-8", "Accept": "application/xml;", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --header "Content-Type: application/soap+xml; charset=utf-8" --header "Accept: application/xml" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldataTry it : Soap 1.2 POST result
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /GetLiveStockQuantity HTTP/1.1 Host: cpslive.co.uk Accept: application/xml Content-Type: application/x-www-form-urlencoded Content-Length: length StockCodeToGet=value
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <GetLiveStockQuantity_response> <StockCode>value </StockCode> <StockDescription>value </StockDescription> <StockQuantityAvailable>value </StockQuantityAvailable> <RestockDetails>value </RestockDetails> </GetLiveStockQuantity_response>
Example Code - JavaScript
function GetLiveStockQuantity_post(host,postdata,result){ fetch(host + "/GetLiveStockQuantity", { method: "POST", credentials: "include", headers: { "Content-Type": "application/x-www-form-urlencoded", "Accept": "application/xml;", }, body: postdata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --header "Content-Type: application/x-www-form-urlencoded; charset=utf-8" --header "Accept: application/xml" --data "StockCodeToGet=value " https://cpslive.co.uk /GetLiveStockQuantity
Try It - Live
You must be logged in to use this method. Basic Authentication is supported.
Field: FirstStockCodeToGet
(string[40])
String from 0 to 40 characters
This parameter is Optional
Field: LastStockCodeToGet
(string[40])
String from 0 to 40 characters
This parameter is Optional
List: ErrorQueue
List: StockQtyListing
The following is a sample SOAP 1.1 request and response. The
placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: text/xml Content-Length: length SOAPAction: https://cpslive.co.uk /GetLiveMultipleStockQuantity <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetLiveMultipleStockQuantity> <FirstStockCodeToGet>value </FirstStockCodeToGet> <LastStockCodeToGet>value </LastStockCodeToGet> </GetLiveMultipleStockQuantity> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetLiveMultipleStockQuantity_response> <StockQtyListing> <Item> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> </Item> <Item> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> </Item> </StockQtyListing> </GetLiveMultipleStockQuantity_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function GetLiveMultipleStockQuantity_soap11(host,xmldata,username,password,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "text/xml; charset=utf-8", "Accept": "application/xml;", "SOAPAction": host + "/GetLiveMultipleStockQuantity", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: text/xml; ; charset=utf-8" --header "Accept: application/xml" --header "SOAPAction: cpslive.co.uk /GetLiveMultipleStockQuantity" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldata
Try it : Soap 1.1 POST result
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: application/soap+xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <GetLiveMultipleStockQuantity> <FirstStockCodeToGet>value </FirstStockCodeToGet> <LastStockCodeToGet>value </LastStockCodeToGet> </GetLiveMultipleStockQuantity> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetLiveMultipleStockQuantity_response> <StockQtyListing> <Item> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> </Item> <Item> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> </Item> </StockQtyListing> </GetLiveMultipleStockQuantity_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function GetLiveMultipleStockQuantity_soap12(host,xmldata,username,password,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/soap+xml; charset=utf-8", "Accept": "application/xml;", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/soap+xml; charset=utf-8" --header "Accept: application/xml" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldata
Try it : Soap 1.2 POST result
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /GetLiveMultipleStockQuantity HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: application/x-www-form-urlencoded Content-Length: length FirstStockCodeToGet=value &LastStockCodeToGet=value
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <GetLiveMultipleStockQuantity_response> <StockQtyListing> <Item> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> </Item> <Item> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> </Item> </StockQtyListing> </GetLiveMultipleStockQuantity_response>
Example Code - JavaScript
function GetLiveMultipleStockQuantity_post(host,postdata,username,password,result){ fetch(host + "/GetLiveMultipleStockQuantity", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/x-www-form-urlencoded", "Accept": "application/xml;", }, body: postdata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/x-www-form-urlencoded; charset=utf-8" --header "Accept: application/xml" --data "FirstStockCodeToGet=value &LastStockCodeToGet=value " https://cpslive.co.uk /GetLiveMultipleStockQuantity
Try It - Live
You must be logged in to use this method. Basic Authentication is supported.
Field: StockCodeToAdd
(string[40])
String from 0 to 40 characters
This parameter is Required
Field: QuantityToAdd
This parameter is Required
Field: OrderRef
(string[20])
String from 0 to 20 characters
This parameter is Optional
Field: SpecialInstructions
(string[255])
String from 0 to 255 characters
This parameter is Optional
List: ErrorQueue
Field: UpdateStatus
(string[90])
String from 0 to 90 characters
The following is a sample SOAP 1.1 request and response. The
placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: text/xml Content-Length: length SOAPAction: https://cpslive.co.uk /AddStockCodeToLiveOrder <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AddStockCodeToLiveOrder> <StockCodeToAdd>value </StockCodeToAdd> <QuantityToAdd>value </QuantityToAdd> <OrderRef>value </OrderRef> <SpecialInstructions>value </SpecialInstructions> </AddStockCodeToLiveOrder> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AddStockCodeToLiveOrder_response> <UpdateStatus>value </UpdateStatus> </AddStockCodeToLiveOrder_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function AddStockCodeToLiveOrder_soap11(host,xmldata,username,password,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "text/xml; charset=utf-8", "Accept": "application/xml;", "SOAPAction": host + "/AddStockCodeToLiveOrder", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: text/xml; ; charset=utf-8" --header "Accept: application/xml" --header "SOAPAction: cpslive.co.uk /AddStockCodeToLiveOrder" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldata
Try it : Soap 1.1 POST result
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: application/soap+xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <AddStockCodeToLiveOrder> <StockCodeToAdd>value </StockCodeToAdd> <QuantityToAdd>value </QuantityToAdd> <OrderRef>value </OrderRef> <SpecialInstructions>value </SpecialInstructions> </AddStockCodeToLiveOrder> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <AddStockCodeToLiveOrder_response> <UpdateStatus>value </UpdateStatus> </AddStockCodeToLiveOrder_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function AddStockCodeToLiveOrder_soap12(host,xmldata,username,password,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/soap+xml; charset=utf-8", "Accept": "application/xml;", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/soap+xml; charset=utf-8" --header "Accept: application/xml" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldata
Try it : Soap 1.2 POST result
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /AddStockCodeToLiveOrder HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: application/x-www-form-urlencoded Content-Length: length StockCodeToAdd=value &QuantityToAdd=value &OrderRef=value &SpecialInstructions=value
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <AddStockCodeToLiveOrder_response> <UpdateStatus>value </UpdateStatus> </AddStockCodeToLiveOrder_response>
Example Code - JavaScript
function AddStockCodeToLiveOrder_post(host,postdata,username,password,result){ fetch(host + "/AddStockCodeToLiveOrder", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/x-www-form-urlencoded", "Accept": "application/xml;", }, body: postdata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/x-www-form-urlencoded; charset=utf-8" --header "Accept: application/xml" --data "StockCodeToAdd=value &QuantityToAdd=value &OrderRef=value &SpecialInstructions=value " https://cpslive.co.uk /AddStockCodeToLiveOrder
Try It - Live
You must be logged in to use this method. Basic Authentication is supported.
Field: FirstStockCodeToGet
(string[40])
String from 0 to 40 characters
This parameter is Optional
Field: LastStockCodeToGet
(string[40])
String from 0 to 40 characters
This parameter is Optional
Field: BrandFilter
(string[30])
String from 0 to 30 characters
This parameter is Optional
List: ErrorQueue
List: Retailerstocklist
The following is a sample SOAP 1.1 request and response. The
placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: text/xml Content-Length: length SOAPAction: https://cpslive.co.uk /GetRetailerStockList <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetRetailerStockList> <FirstStockCodeToGet>value </FirstStockCodeToGet> <LastStockCodeToGet>value </LastStockCodeToGet> <BrandFilter>value </BrandFilter> </GetRetailerStockList> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetRetailerStockList_response> <Retailerstocklist> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> </Items> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> </Items> </Retailerstocklist> </GetRetailerStockList_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function GetRetailerStockList_soap11(host,xmldata,username,password,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "text/xml; charset=utf-8", "Accept": "application/xml;", "SOAPAction": host + "/GetRetailerStockList", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: text/xml; ; charset=utf-8" --header "Accept: application/xml" --header "SOAPAction: cpslive.co.uk /GetRetailerStockList" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldata
Try it : Soap 1.1 POST result
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: application/soap+xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <GetRetailerStockList> <FirstStockCodeToGet>value </FirstStockCodeToGet> <LastStockCodeToGet>value </LastStockCodeToGet> <BrandFilter>value </BrandFilter> </GetRetailerStockList> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetRetailerStockList_response> <Retailerstocklist> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> </Items> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> </Items> </Retailerstocklist> </GetRetailerStockList_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function GetRetailerStockList_soap12(host,xmldata,username,password,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/soap+xml; charset=utf-8", "Accept": "application/xml;", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/soap+xml; charset=utf-8" --header "Accept: application/xml" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldata
Try it : Soap 1.2 POST result
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /GetRetailerStockList HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: application/x-www-form-urlencoded Content-Length: length FirstStockCodeToGet=value &LastStockCodeToGet=value &BrandFilter=value
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <GetRetailerStockList_response> <Retailerstocklist> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> </Items> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> </Items> </Retailerstocklist> </GetRetailerStockList_response>
Example Code - JavaScript
function GetRetailerStockList_post(host,postdata,username,password,result){ fetch(host + "/GetRetailerStockList", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/x-www-form-urlencoded", "Accept": "application/xml;", }, body: postdata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/x-www-form-urlencoded; charset=utf-8" --header "Accept: application/xml" --data "FirstStockCodeToGet=value &LastStockCodeToGet=value &BrandFilter=value " https://cpslive.co.uk /GetRetailerStockList
Try It - Live
You must be logged in to use this method. Basic Authentication is supported.
Field: FirstStockCodeToGet
(string[40])
String from 0 to 40 characters
This parameter is Optional
Field: LastStockCodeToGet
(string[40])
String from 0 to 40 characters
This parameter is Optional
Field: BrandFilter
(string[30])
String from 0 to 30 characters
This parameter is Optional
List: ErrorQueue
List: NewItemsStockList
The following is a sample SOAP 1.1 request and response. The
placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: text/xml Content-Length: length SOAPAction: https://cpslive.co.uk /GetNewItemsStockList <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetNewItemsStockList> <FirstStockCodeToGet>value </FirstStockCodeToGet> <LastStockCodeToGet>value </LastStockCodeToGet> <BrandFilter>value </BrandFilter> </GetNewItemsStockList> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetNewStockList_response> <NewItemsStockList> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> <VARID>value </VARID> <VARLABEL1>value </VARLABEL1> <VARLABEL2>value </VARLABEL2> <VARLABEL3>value </VARLABEL3> <VARVALUE1>value </VARVALUE1> <VARVALUE2>value </VARVALUE2> <VARVALUE3>value </VARVALUE3> <VARTYPE>value </VARTYPE> </Items> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> <VARID>value </VARID> <VARLABEL1>value </VARLABEL1> <VARLABEL2>value </VARLABEL2> <VARLABEL3>value </VARLABEL3> <VARVALUE1>value </VARVALUE1> <VARVALUE2>value </VARVALUE2> <VARVALUE3>value </VARVALUE3> <VARTYPE>value </VARTYPE> </Items> </NewItemsStockList> </GetNewStockList_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function GetNewItemsStockList_soap11(host,xmldata,username,password,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "text/xml; charset=utf-8", "Accept": "application/xml;", "SOAPAction": host + "/GetNewItemsStockList", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: text/xml; ; charset=utf-8" --header "Accept: application/xml" --header "SOAPAction: cpslive.co.uk /GetNewItemsStockList" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldata
Try it : Soap 1.1 POST result
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /Livesync HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: application/soap+xml Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <GetNewItemsStockList> <FirstStockCodeToGet>value </FirstStockCodeToGet> <LastStockCodeToGet>value </LastStockCodeToGet> <BrandFilter>value </BrandFilter> </GetNewItemsStockList> </soap:Body> </soap:Envelope>
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetNewStockList_response> <NewItemsStockList> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> <VARID>value </VARID> <VARLABEL1>value </VARLABEL1> <VARLABEL2>value </VARLABEL2> <VARLABEL3>value </VARLABEL3> <VARVALUE1>value </VARVALUE1> <VARVALUE2>value </VARVALUE2> <VARVALUE3>value </VARVALUE3> <VARTYPE>value </VARTYPE> </Items> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> <VARID>value </VARID> <VARLABEL1>value </VARLABEL1> <VARLABEL2>value </VARLABEL2> <VARLABEL3>value </VARLABEL3> <VARVALUE1>value </VARVALUE1> <VARVALUE2>value </VARVALUE2> <VARVALUE3>value </VARVALUE3> <VARTYPE>value </VARTYPE> </Items> </NewItemsStockList> </GetNewStockList_response> </soap:Body> </soap:Envelope>
Example Code - JavaScript
function GetNewItemsStockList_soap12(host,xmldata,username,password,result){ fetch(host + "/Livesync", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/soap+xml; charset=utf-8", "Accept": "application/xml;", }, body: xmldata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/soap+xml; charset=utf-8" --header "Accept: application/xml" --data-binary @xmlDataFile.xml https://cpslive.co.uk /Livesync
Try It - Live
xmldata
Try it : Soap 1.2 POST result
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
Example Request
POST /GetNewItemsStockList HTTP/1.1 Authorization: Basic ZGVtbzpkZW1v Host: cpslive.co.uk Accept: application/xml Content-Type: application/x-www-form-urlencoded Content-Length: length FirstStockCodeToGet=value &LastStockCodeToGet=value &BrandFilter=value
Example Response
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <GetNewStockList_response> <NewItemsStockList> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> <VARID>value </VARID> <VARLABEL1>value </VARLABEL1> <VARLABEL2>value </VARLABEL2> <VARLABEL3>value </VARLABEL3> <VARVALUE1>value </VARVALUE1> <VARVALUE2>value </VARVALUE2> <VARVALUE3>value </VARVALUE3> <VARTYPE>value </VARTYPE> </Items> <Items> <STOCKCODE>value </STOCKCODE> <DESCRIPTION>value </DESCRIPTION> <BARCODE>value </BARCODE> <RETAILERCODE>value </RETAILERCODE> <AVAILABLEQUANTITY>value </AVAILABLEQUANTITY> <ACTUALFREESTOCKQUANTITY>value </ACTUALFREESTOCKQUANTITY> <RESTOCKDETAILS>value </RESTOCKDETAILS> <RETAILERPRICE>value </RETAILERPRICE> <TRADEPRICE>value </TRADEPRICE> <RRP>value </RRP> <LARGEIMAGE>value </LARGEIMAGE> <WEIGHTGRAMS>value </WEIGHTGRAMS> <BRAND>value </BRAND> <COMMODITYCODE>value </COMMODITYCODE> <VARID>value </VARID> <VARLABEL1>value </VARLABEL1> <VARLABEL2>value </VARLABEL2> <VARLABEL3>value </VARLABEL3> <VARVALUE1>value </VARVALUE1> <VARVALUE2>value </VARVALUE2> <VARVALUE3>value </VARVALUE3> <VARTYPE>value </VARTYPE> </Items> </NewItemsStockList> </GetNewStockList_response>
Example Code - JavaScript
function GetNewItemsStockList_post(host,postdata,username,password,result){ fetch(host + "/GetNewItemsStockList", { method: "POST", credentials: "include", headers: { "Authorization": "Basic " + btoa(username + ":" + password), "Content-Type": "application/x-www-form-urlencoded", "Accept": "application/xml;", }, body: postdata }).then(function(response){ // get the text out of the reply return response.text() }).then( function(text){ // do something with the text reply textToTextarea(text,result) }) } var host = "https://cpslive.co.uk"
Example Code - CURL
CURL --user Username :Password --header "Content-Type: application/x-www-form-urlencoded; charset=utf-8" --header "Accept: application/xml" --data "FirstStockCodeToGet=value &LastStockCodeToGet=value &BrandFilter=value " https://cpslive.co.uk /GetNewItemsStockList
Try It - Live
You must be logged in to use this method. Basic Authentication is supported.
List: ErrorQueue