OrderService


Click here for a complete list of operations.

GetNewOrders

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 /public/orderservice.asmx HTTP/1.1
Host: test-api.mypropago.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://api.mypropago.com/Public/OrderService/GetNewOrders"

<?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>
    <GetNewOrders xmlns="https://api.mypropago.com/Public/OrderService">
      <credentials>
        <CustomerName>string</CustomerName>
        <ApiKey>string</ApiKey>
      </credentials>
      <maxOrders>int</maxOrders>
    </GetNewOrders>
  </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>
    <GetNewOrdersResponse xmlns="https://api.mypropago.com/Public/OrderService">
      <GetNewOrdersResult>
        <ReturnCode>Undefined or Success or OrderRetrievedSuccessfully or ShipmentCreatedSuccessfuly or InvalidLoginNameKeyCombination or UnAuthorizedAccess or InvalidOrderNumber or InvalidCarrierName or ShipmentHasAlreadyBeenSubmittedForThisOrder or UnexpectedErrorOnServer or ServiceTypeNotEnabled or OrderProcessIncomplete or OrderPlacementError or NoShipmentsFoundForOrder or SkuCreationError or SkuNotFound or SearchError or CompanyCredentialsRequired or InvalidShipmentQuantity or InvalidOrderLineId or ShipmentError or ShipmentNotFound or InvalidOrderOperation or PaymentProcessingError or NoShipmentData or NoData or PriceListNotFound or InvalidInventoryQuantity or SeeDataForDetails or InvalidOrderLineStatus or OrderCannotShip or Error</ReturnCode>
        <Data>
          <Order>
            <OrderUser xsi:nil="true" />
            <OrderNumber>string</OrderNumber>
            <OrderTag>string</OrderTag>
            <PoNumber>string</PoNumber>
            <Comments>string</Comments>
            <CompanyName>string</CompanyName>
            <CompanyGuid>string</CompanyGuid>
            <Status>string</Status>
            <EmailAddress>string</EmailAddress>
            <ShippingAndHandling>double</ShippingAndHandling>
            <Tax>double</Tax>
            <Discount>decimal</Discount>
            <OrderDate>dateTime</OrderDate>
            <DesiredShipDate>dateTime</DesiredShipDate>
            <Carrier>string</Carrier>
            <ShippingAddress xsi:nil="true" />
            <BillingAddress xsi:nil="true" />
            <Lines xsi:nil="true" />
            <OrderField1>string</OrderField1>
            <OrderField2>string</OrderField2>
            <OrderField3>string</OrderField3>
            <OrderField4>string</OrderField4>
            <OrderField5>string</OrderField5>
            <CompanyExternalId1>string</CompanyExternalId1>
            <CompanyExternalId2>string</CompanyExternalId2>
            <CurrencyCode>string</CurrencyCode>
            <IsResidential>boolean</IsResidential>
            <Expedited>boolean</Expedited>
            <IsSignatureRequired>boolean</IsSignatureRequired>
            <CustomFields xsi:nil="true" />
          </Order>
          <Order>
            <OrderUser xsi:nil="true" />
            <OrderNumber>string</OrderNumber>
            <OrderTag>string</OrderTag>
            <PoNumber>string</PoNumber>
            <Comments>string</Comments>
            <CompanyName>string</CompanyName>
            <CompanyGuid>string</CompanyGuid>
            <Status>string</Status>
            <EmailAddress>string</EmailAddress>
            <ShippingAndHandling>double</ShippingAndHandling>
            <Tax>double</Tax>
            <Discount>decimal</Discount>
            <OrderDate>dateTime</OrderDate>
            <DesiredShipDate>dateTime</DesiredShipDate>
            <Carrier>string</Carrier>
            <ShippingAddress xsi:nil="true" />
            <BillingAddress xsi:nil="true" />
            <Lines xsi:nil="true" />
            <OrderField1>string</OrderField1>
            <OrderField2>string</OrderField2>
            <OrderField3>string</OrderField3>
            <OrderField4>string</OrderField4>
            <OrderField5>string</OrderField5>
            <CompanyExternalId1>string</CompanyExternalId1>
            <CompanyExternalId2>string</CompanyExternalId2>
            <CurrencyCode>string</CurrencyCode>
            <IsResidential>boolean</IsResidential>
            <Expedited>boolean</Expedited>
            <IsSignatureRequired>boolean</IsSignatureRequired>
            <CustomFields xsi:nil="true" />
          </Order>
        </Data>
        <Message>string</Message>
        <ErrorGuid>string</ErrorGuid>
      </GetNewOrdersResult>
    </GetNewOrdersResponse>
  </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 /public/orderservice.asmx HTTP/1.1
Host: test-api.mypropago.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>
    <GetNewOrders xmlns="https://api.mypropago.com/Public/OrderService">
      <credentials>
        <CustomerName>string</CustomerName>
        <ApiKey>string</ApiKey>
      </credentials>
      <maxOrders>int</maxOrders>
    </GetNewOrders>
  </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>
    <GetNewOrdersResponse xmlns="https://api.mypropago.com/Public/OrderService">
      <GetNewOrdersResult>
        <ReturnCode>Undefined or Success or OrderRetrievedSuccessfully or ShipmentCreatedSuccessfuly or InvalidLoginNameKeyCombination or UnAuthorizedAccess or InvalidOrderNumber or InvalidCarrierName or ShipmentHasAlreadyBeenSubmittedForThisOrder or UnexpectedErrorOnServer or ServiceTypeNotEnabled or OrderProcessIncomplete or OrderPlacementError or NoShipmentsFoundForOrder or SkuCreationError or SkuNotFound or SearchError or CompanyCredentialsRequired or InvalidShipmentQuantity or InvalidOrderLineId or ShipmentError or ShipmentNotFound or InvalidOrderOperation or PaymentProcessingError or NoShipmentData or NoData or PriceListNotFound or InvalidInventoryQuantity or SeeDataForDetails or InvalidOrderLineStatus or OrderCannotShip or Error</ReturnCode>
        <Data>
          <Order>
            <OrderUser xsi:nil="true" />
            <OrderNumber>string</OrderNumber>
            <OrderTag>string</OrderTag>
            <PoNumber>string</PoNumber>
            <Comments>string</Comments>
            <CompanyName>string</CompanyName>
            <CompanyGuid>string</CompanyGuid>
            <Status>string</Status>
            <EmailAddress>string</EmailAddress>
            <ShippingAndHandling>double</ShippingAndHandling>
            <Tax>double</Tax>
            <Discount>decimal</Discount>
            <OrderDate>dateTime</OrderDate>
            <DesiredShipDate>dateTime</DesiredShipDate>
            <Carrier>string</Carrier>
            <ShippingAddress xsi:nil="true" />
            <BillingAddress xsi:nil="true" />
            <Lines xsi:nil="true" />
            <OrderField1>string</OrderField1>
            <OrderField2>string</OrderField2>
            <OrderField3>string</OrderField3>
            <OrderField4>string</OrderField4>
            <OrderField5>string</OrderField5>
            <CompanyExternalId1>string</CompanyExternalId1>
            <CompanyExternalId2>string</CompanyExternalId2>
            <CurrencyCode>string</CurrencyCode>
            <IsResidential>boolean</IsResidential>
            <Expedited>boolean</Expedited>
            <IsSignatureRequired>boolean</IsSignatureRequired>
            <CustomFields xsi:nil="true" />
          </Order>
          <Order>
            <OrderUser xsi:nil="true" />
            <OrderNumber>string</OrderNumber>
            <OrderTag>string</OrderTag>
            <PoNumber>string</PoNumber>
            <Comments>string</Comments>
            <CompanyName>string</CompanyName>
            <CompanyGuid>string</CompanyGuid>
            <Status>string</Status>
            <EmailAddress>string</EmailAddress>
            <ShippingAndHandling>double</ShippingAndHandling>
            <Tax>double</Tax>
            <Discount>decimal</Discount>
            <OrderDate>dateTime</OrderDate>
            <DesiredShipDate>dateTime</DesiredShipDate>
            <Carrier>string</Carrier>
            <ShippingAddress xsi:nil="true" />
            <BillingAddress xsi:nil="true" />
            <Lines xsi:nil="true" />
            <OrderField1>string</OrderField1>
            <OrderField2>string</OrderField2>
            <OrderField3>string</OrderField3>
            <OrderField4>string</OrderField4>
            <OrderField5>string</OrderField5>
            <CompanyExternalId1>string</CompanyExternalId1>
            <CompanyExternalId2>string</CompanyExternalId2>
            <CurrencyCode>string</CurrencyCode>
            <IsResidential>boolean</IsResidential>
            <Expedited>boolean</Expedited>
            <IsSignatureRequired>boolean</IsSignatureRequired>
            <CustomFields xsi:nil="true" />
          </Order>
        </Data>
        <Message>string</Message>
        <ErrorGuid>string</ErrorGuid>
      </GetNewOrdersResult>
    </GetNewOrdersResponse>
  </soap12:Body>
</soap12:Envelope>