PurchaseOrder
Click here for a complete list of operations.
sendPO
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/PurchaseOrder.asmx HTTP/1.1 Host: api.cbcorporate.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "sendPO" <?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> <SendPORequest xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/"> <wsVersion xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</wsVersion> <id xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</id> <password xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</password> <PO> <orderType>Blank or Sample or Simple or Configured</orderType> <orderNumber>string</orderNumber> <orderDate>dateTime</orderDate> <lastModified>dateTime</lastModified> <totalAmount>double</totalAmount> <paymentTerms>string</paymentTerms> <rush>boolean</rush> <currency xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</currency> <OrderContactArray> <Contact xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <accountName>string</accountName> <accountNumber>string</accountNumber> <contactType>Art or Bill or Expeditor or Order or Sales or Ship or Sold</contactType> <ContactDetails xsi:nil="true" /> </Contact> <Contact xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <accountName>string</accountName> <accountNumber>string</accountNumber> <contactType>Art or Bill or Expeditor or Order or Sales or Ship or Sold</contactType> <ContactDetails xsi:nil="true" /> </Contact> </OrderContactArray> <ShipmentArray> <Shipment xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <shipReferences>string</shipReferences> <shipReferences>string</shipReferences> <comments>string</comments> <ThirdPartyAccount xsi:nil="true" /> <allowConsolidation>boolean</allowConsolidation> <blindShip>boolean</blindShip> <packingListRequired>boolean</packingListRequired> <FreightDetails xsi:nil="true" /> <ShipTo xsi:nil="true" /> </Shipment> <Shipment xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <shipReferences>string</shipReferences> <shipReferences>string</shipReferences> <comments>string</comments> <ThirdPartyAccount xsi:nil="true" /> <allowConsolidation>boolean</allowConsolidation> <blindShip>boolean</blindShip> <packingListRequired>boolean</packingListRequired> <FreightDetails xsi:nil="true" /> <ShipTo xsi:nil="true" /> </Shipment> </ShipmentArray> <LineItemArray> <LineItem> <lineNumber>string</lineNumber> <description xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</description> <lineType>New or Repeat or Reference</lineType> <Quantity xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <fobId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</fobId> <ToleranceDetails xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <allowPartialShipments>boolean</allowPartialShipments> <unitPrice xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">double</unitPrice> <lineItemTotal>double</lineItemTotal> <requestedShipDate>dateTime</requestedShipDate> <requestedInHandsDate>dateTime</requestedInHandsDate> <referenceSalesQuote>string</referenceSalesQuote> <Program xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <endCustomerSalesOrder>string</endCustomerSalesOrder> <productId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</productId> <customerProductId>string</customerProductId> <lineItemGroupingId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">int</lineItemGroupingId> <PartArray xsi:nil="true" /> <Configuration xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> </LineItem> <LineItem> <lineNumber>string</lineNumber> <description xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</description> <lineType>New or Repeat or Reference</lineType> <Quantity xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <fobId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</fobId> <ToleranceDetails xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <allowPartialShipments>boolean</allowPartialShipments> <unitPrice xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">double</unitPrice> <lineItemTotal>double</lineItemTotal> <requestedShipDate>dateTime</requestedShipDate> <requestedInHandsDate>dateTime</requestedInHandsDate> <referenceSalesQuote>string</referenceSalesQuote> <Program xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <endCustomerSalesOrder>string</endCustomerSalesOrder> <productId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</productId> <customerProductId>string</customerProductId> <lineItemGroupingId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">int</lineItemGroupingId> <PartArray xsi:nil="true" /> <Configuration xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> </LineItem> </LineItemArray> <termsAndConditions>string</termsAndConditions> <salesChannel>string</salesChannel> <promoCode>string</promoCode> </PO> </SendPORequest> </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> <SendPOResponse xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/"> <transactionId>string</transactionId> <ServiceMessageArray xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <ServiceMessage> <code>int</code> <description>string</description> <severity>Error or Information or Warning</severity> <stacktrace>string</stacktrace> </ServiceMessage> <ServiceMessage> <code>int</code> <description>string</description> <severity>Error or Information or Warning</severity> <stacktrace>string</stacktrace> </ServiceMessage> </ServiceMessageArray> </SendPOResponse> </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/PurchaseOrder.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> <SendPORequest xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/"> <wsVersion xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</wsVersion> <id xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</id> <password xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</password> <PO> <orderType>Blank or Sample or Simple or Configured</orderType> <orderNumber>string</orderNumber> <orderDate>dateTime</orderDate> <lastModified>dateTime</lastModified> <totalAmount>double</totalAmount> <paymentTerms>string</paymentTerms> <rush>boolean</rush> <currency xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</currency> <OrderContactArray> <Contact xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <accountName>string</accountName> <accountNumber>string</accountNumber> <contactType>Art or Bill or Expeditor or Order or Sales or Ship or Sold</contactType> <ContactDetails xsi:nil="true" /> </Contact> <Contact xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <accountName>string</accountName> <accountNumber>string</accountNumber> <contactType>Art or Bill or Expeditor or Order or Sales or Ship or Sold</contactType> <ContactDetails xsi:nil="true" /> </Contact> </OrderContactArray> <ShipmentArray> <Shipment xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <shipReferences>string</shipReferences> <shipReferences>string</shipReferences> <comments>string</comments> <ThirdPartyAccount xsi:nil="true" /> <allowConsolidation>boolean</allowConsolidation> <blindShip>boolean</blindShip> <packingListRequired>boolean</packingListRequired> <FreightDetails xsi:nil="true" /> <ShipTo xsi:nil="true" /> </Shipment> <Shipment xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <shipReferences>string</shipReferences> <shipReferences>string</shipReferences> <comments>string</comments> <ThirdPartyAccount xsi:nil="true" /> <allowConsolidation>boolean</allowConsolidation> <blindShip>boolean</blindShip> <packingListRequired>boolean</packingListRequired> <FreightDetails xsi:nil="true" /> <ShipTo xsi:nil="true" /> </Shipment> </ShipmentArray> <LineItemArray> <LineItem> <lineNumber>string</lineNumber> <description xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</description> <lineType>New or Repeat or Reference</lineType> <Quantity xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <fobId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</fobId> <ToleranceDetails xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <allowPartialShipments>boolean</allowPartialShipments> <unitPrice xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">double</unitPrice> <lineItemTotal>double</lineItemTotal> <requestedShipDate>dateTime</requestedShipDate> <requestedInHandsDate>dateTime</requestedInHandsDate> <referenceSalesQuote>string</referenceSalesQuote> <Program xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <endCustomerSalesOrder>string</endCustomerSalesOrder> <productId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</productId> <customerProductId>string</customerProductId> <lineItemGroupingId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">int</lineItemGroupingId> <PartArray xsi:nil="true" /> <Configuration xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> </LineItem> <LineItem> <lineNumber>string</lineNumber> <description xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</description> <lineType>New or Repeat or Reference</lineType> <Quantity xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <fobId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</fobId> <ToleranceDetails xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <allowPartialShipments>boolean</allowPartialShipments> <unitPrice xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">double</unitPrice> <lineItemTotal>double</lineItemTotal> <requestedShipDate>dateTime</requestedShipDate> <requestedInHandsDate>dateTime</requestedInHandsDate> <referenceSalesQuote>string</referenceSalesQuote> <Program xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> <endCustomerSalesOrder>string</endCustomerSalesOrder> <productId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">string</productId> <customerProductId>string</customerProductId> <lineItemGroupingId xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/">int</lineItemGroupingId> <PartArray xsi:nil="true" /> <Configuration xsi:nil="true" xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/" /> </LineItem> </LineItemArray> <termsAndConditions>string</termsAndConditions> <salesChannel>string</salesChannel> <promoCode>string</promoCode> </PO> </SendPORequest> </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> <SendPOResponse xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/"> <transactionId>string</transactionId> <ServiceMessageArray xmlns="http://www.promostandards.org/WSDL/PO/1.0.0/SharedObjects/"> <ServiceMessage> <code>int</code> <description>string</description> <severity>Error or Information or Warning</severity> <stacktrace>string</stacktrace> </ServiceMessage> <ServiceMessage> <code>int</code> <description>string</description> <severity>Error or Information or Warning</severity> <stacktrace>string</stacktrace> </ServiceMessage> </ServiceMessageArray> </SendPOResponse> </soap12:Body> </soap12:Envelope>