InventoryService200
Click here for a complete list of operations.
getInventoryLevels
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /promostandards/InventoryService200.asmx HTTP/1.1 Host: api.cbcorporate.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "getInventoryLevels" <?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> <GetInventoryLevelsRequest xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/"> <wsVersion xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/">string</wsVersion> <id xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/">string</id> <password xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/">string</password> <productId xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/">string</productId> <Filter xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/"> <partIdArray> <partId>string</partId> <partId>string</partId> </partIdArray> <LabelSizeArray> <labelSize>L or M or S or XL or 2XL or 3XL or XS or 4XL or 5XL or OSFA or 4XS or 3XS or 2XS or CUSTOM</labelSize> <labelSize>L or M or S or XL or 2XL or 3XL or XS or 4XL or 5XL or OSFA or 4XS or 3XS or 2XS or CUSTOM</labelSize> </LabelSizeArray> <PartColorArray> <partColor>string</partColor> <partColor>string</partColor> </PartColorArray> </Filter> </GetInventoryLevelsRequest> </soap:Body> </soap:Envelope>
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> <GetInventoryLevelsResponse xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/"> <Inventory xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/"> <productId>string</productId> <PartInventoryArray> <PartInventory> <partId>string</partId> <mainPart>boolean</mainPart> <partColor>string</partColor> <labelSize>string</labelSize> <partDescription>string</partDescription> <quantityAvailable>string</quantityAvailable> <manufacturedItem>boolean</manufacturedItem> <buyToOrder>boolean</buyToOrder> <replenishmentLeadTime>int</replenishmentLeadTime> <attributeSelection>string</attributeSelection> <InventoryLocationArray xsi:nil="true" /> <lastModified>dateTime</lastModified> </PartInventory> <PartInventory> <partId>string</partId> <mainPart>boolean</mainPart> <partColor>string</partColor> <labelSize>string</labelSize> <partDescription>string</partDescription> <quantityAvailable>string</quantityAvailable> <manufacturedItem>boolean</manufacturedItem> <buyToOrder>boolean</buyToOrder> <replenishmentLeadTime>int</replenishmentLeadTime> <attributeSelection>string</attributeSelection> <InventoryLocationArray xsi:nil="true" /> <lastModified>dateTime</lastModified> </PartInventory> </PartInventoryArray> </Inventory> <ServiceMessageArray> <ServiceMessage xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/"> <code>int</code> <description>string</description> <severity>Error or Information or Warning</severity> <stacktrace>string</stacktrace> </ServiceMessage> <ServiceMessage xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/"> <code>int</code> <description>string</description> <severity>Error or Information or Warning</severity> <stacktrace>string</stacktrace> </ServiceMessage> </ServiceMessageArray> </GetInventoryLevelsResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /promostandards/InventoryService200.asmx HTTP/1.1 Host: api.cbcorporate.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetInventoryLevelsRequest xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/"> <wsVersion xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/">string</wsVersion> <id xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/">string</id> <password xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/">string</password> <productId xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/">string</productId> <Filter xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/"> <partIdArray> <partId>string</partId> <partId>string</partId> </partIdArray> <LabelSizeArray> <labelSize>L or M or S or XL or 2XL or 3XL or XS or 4XL or 5XL or OSFA or 4XS or 3XS or 2XS or CUSTOM</labelSize> <labelSize>L or M or S or XL or 2XL or 3XL or XS or 4XL or 5XL or OSFA or 4XS or 3XS or 2XS or CUSTOM</labelSize> </LabelSizeArray> <PartColorArray> <partColor>string</partColor> <partColor>string</partColor> </PartColorArray> </Filter> </GetInventoryLevelsRequest> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetInventoryLevelsResponse xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/"> <Inventory xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/"> <productId>string</productId> <PartInventoryArray> <PartInventory> <partId>string</partId> <mainPart>boolean</mainPart> <partColor>string</partColor> <labelSize>string</labelSize> <partDescription>string</partDescription> <quantityAvailable>string</quantityAvailable> <manufacturedItem>boolean</manufacturedItem> <buyToOrder>boolean</buyToOrder> <replenishmentLeadTime>int</replenishmentLeadTime> <attributeSelection>string</attributeSelection> <InventoryLocationArray xsi:nil="true" /> <lastModified>dateTime</lastModified> </PartInventory> <PartInventory> <partId>string</partId> <mainPart>boolean</mainPart> <partColor>string</partColor> <labelSize>string</labelSize> <partDescription>string</partDescription> <quantityAvailable>string</quantityAvailable> <manufacturedItem>boolean</manufacturedItem> <buyToOrder>boolean</buyToOrder> <replenishmentLeadTime>int</replenishmentLeadTime> <attributeSelection>string</attributeSelection> <InventoryLocationArray xsi:nil="true" /> <lastModified>dateTime</lastModified> </PartInventory> </PartInventoryArray> </Inventory> <ServiceMessageArray> <ServiceMessage xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/"> <code>int</code> <description>string</description> <severity>Error or Information or Warning</severity> <stacktrace>string</stacktrace> </ServiceMessage> <ServiceMessage xmlns="http://www.promostandards.org/WSDL/Inventory/2.0.0/SharedObjects/"> <code>int</code> <description>string</description> <severity>Error or Information or Warning</severity> <stacktrace>string</stacktrace> </ServiceMessage> </ServiceMessageArray> </GetInventoryLevelsResponse> </soap12:Body> </soap12:Envelope>