Tradera Developer Program

OrderService

Documentation Version 3 > OrderService > GetOrders

GetOrders |WebMethod|

Get one or more orders by their order id. Will only return orders for the authorized user.

Returns

The GetOrderResponse that contains zero or more of the requested orders.

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 /v3/orderservice.asmx HTTP/1.1
Host: api.tradera.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://api.tradera.com/GetOrders"

<?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:Header>
    <AuthenticationHeader xmlns="http://api.tradera.com">
      <AppId>int</AppId>
      <AppKey>string</AppKey>
    </AuthenticationHeader>
    <AuthorizationHeader xmlns="http://api.tradera.com">
      <UserId>int</UserId>
      <Token>string</Token>
    </AuthorizationHeader>
    <ConfigurationHeader xmlns="http://api.tradera.com">
      <Sandbox>int</Sandbox>
      <MaxResultAge>int</MaxResultAge>
    </ConfigurationHeader>
  </soap:Header>
  <soap:Body>
    <GetOrders xmlns="http://api.tradera.com">
      <request>
        <OrderIds>
          <int>int</int>
          <int>int</int>
        </OrderIds>
      </request>
    </GetOrders>
  </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>
    <GetOrdersResponse xmlns="http://api.tradera.com">
      <GetOrdersResult>
        <SellerOrders>
          <SellerOrder>
            <OrderId>int</OrderId>
            <CreatedDate>dateTime</CreatedDate>
            <ExpiresDate>dateTime</ExpiresDate>
            <LastUpdatedDate>dateTime</LastUpdatedDate>
            <SubTotal>int</SubTotal>
            <Seller>
              <UserId>int</UserId>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
              <Email>string</Email>
              <Phone>string</Phone>
              <Alias>string</Alias>
            </Seller>
            <Buyer>
              <UserId>int</UserId>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
              <Email>string</Email>
              <Phone>string</Phone>
              <Alias>string</Alias>
            </Buyer>
            <ShipTo>
              <Name>string</Name>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
            </ShipTo>
            <Items>
              <SellerOrderItem>
                <ItemId>int</ItemId>
                <Type>Auction or PureBuyItNow or ShopItem</Type>
                <Title>string</Title>
                <Quantity>int</Quantity>
                <UnitPrice>int</UnitPrice>
                <VatRate>int</VatRate>
                <OwnReferences xsi:nil="true" />
                <MerchantPartNumber>string</MerchantPartNumber>
              </SellerOrderItem>
              <SellerOrderItem>
                <ItemId>int</ItemId>
                <Type>Auction or PureBuyItNow or ShopItem</Type>
                <Title>string</Title>
                <Quantity>int</Quantity>
                <UnitPrice>int</UnitPrice>
                <VatRate>int</VatRate>
                <OwnReferences xsi:nil="true" />
                <MerchantPartNumber>string</MerchantPartNumber>
              </SellerOrderItem>
            </Items>
            <SellerOrderPayments>
              <SellerOrderPayment>
                <PaymentType>string</PaymentType>
                <Reference>string</Reference>
                <AdditionalInfo xsi:nil="true" />
                <Amount>int</Amount>
                <PaidDate>dateTime</PaidDate>
                <PaymentCost>int</PaymentCost>
              </SellerOrderPayment>
              <SellerOrderPayment>
                <PaymentType>string</PaymentType>
                <Reference>string</Reference>
                <AdditionalInfo xsi:nil="true" />
                <Amount>int</Amount>
                <PaidDate>dateTime</PaidDate>
                <PaymentCost>int</PaymentCost>
              </SellerOrderPayment>
            </SellerOrderPayments>
            <ShippingType>string</ShippingType>
            <ShippingCost>int</ShippingCost>
            <PurchaseOrderId>guid</PurchaseOrderId>
          </SellerOrder>
          <SellerOrder>
            <OrderId>int</OrderId>
            <CreatedDate>dateTime</CreatedDate>
            <ExpiresDate>dateTime</ExpiresDate>
            <LastUpdatedDate>dateTime</LastUpdatedDate>
            <SubTotal>int</SubTotal>
            <Seller>
              <UserId>int</UserId>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
              <Email>string</Email>
              <Phone>string</Phone>
              <Alias>string</Alias>
            </Seller>
            <Buyer>
              <UserId>int</UserId>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
              <Email>string</Email>
              <Phone>string</Phone>
              <Alias>string</Alias>
            </Buyer>
            <ShipTo>
              <Name>string</Name>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
            </ShipTo>
            <Items>
              <SellerOrderItem>
                <ItemId>int</ItemId>
                <Type>Auction or PureBuyItNow or ShopItem</Type>
                <Title>string</Title>
                <Quantity>int</Quantity>
                <UnitPrice>int</UnitPrice>
                <VatRate>int</VatRate>
                <OwnReferences xsi:nil="true" />
                <MerchantPartNumber>string</MerchantPartNumber>
              </SellerOrderItem>
              <SellerOrderItem>
                <ItemId>int</ItemId>
                <Type>Auction or PureBuyItNow or ShopItem</Type>
                <Title>string</Title>
                <Quantity>int</Quantity>
                <UnitPrice>int</UnitPrice>
                <VatRate>int</VatRate>
                <OwnReferences xsi:nil="true" />
                <MerchantPartNumber>string</MerchantPartNumber>
              </SellerOrderItem>
            </Items>
            <SellerOrderPayments>
              <SellerOrderPayment>
                <PaymentType>string</PaymentType>
                <Reference>string</Reference>
                <AdditionalInfo xsi:nil="true" />
                <Amount>int</Amount>
                <PaidDate>dateTime</PaidDate>
                <PaymentCost>int</PaymentCost>
              </SellerOrderPayment>
              <SellerOrderPayment>
                <PaymentType>string</PaymentType>
                <Reference>string</Reference>
                <AdditionalInfo xsi:nil="true" />
                <Amount>int</Amount>
                <PaidDate>dateTime</PaidDate>
                <PaymentCost>int</PaymentCost>
              </SellerOrderPayment>
            </SellerOrderPayments>
            <ShippingType>string</ShippingType>
            <ShippingCost>int</ShippingCost>
            <PurchaseOrderId>guid</PurchaseOrderId>
          </SellerOrder>
        </SellerOrders>
      </GetOrdersResult>
    </GetOrdersResponse>
  </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 /v3/orderservice.asmx HTTP/1.1
Host: api.tradera.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:Header>
    <AuthenticationHeader xmlns="http://api.tradera.com">
      <AppId>int</AppId>
      <AppKey>string</AppKey>
    </AuthenticationHeader>
    <AuthorizationHeader xmlns="http://api.tradera.com">
      <UserId>int</UserId>
      <Token>string</Token>
    </AuthorizationHeader>
    <ConfigurationHeader xmlns="http://api.tradera.com">
      <Sandbox>int</Sandbox>
      <MaxResultAge>int</MaxResultAge>
    </ConfigurationHeader>
  </soap12:Header>
  <soap12:Body>
    <GetOrders xmlns="http://api.tradera.com">
      <request>
        <OrderIds>
          <int>int</int>
          <int>int</int>
        </OrderIds>
      </request>
    </GetOrders>
  </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>
    <GetOrdersResponse xmlns="http://api.tradera.com">
      <GetOrdersResult>
        <SellerOrders>
          <SellerOrder>
            <OrderId>int</OrderId>
            <CreatedDate>dateTime</CreatedDate>
            <ExpiresDate>dateTime</ExpiresDate>
            <LastUpdatedDate>dateTime</LastUpdatedDate>
            <SubTotal>int</SubTotal>
            <Seller>
              <UserId>int</UserId>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
              <Email>string</Email>
              <Phone>string</Phone>
              <Alias>string</Alias>
            </Seller>
            <Buyer>
              <UserId>int</UserId>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
              <Email>string</Email>
              <Phone>string</Phone>
              <Alias>string</Alias>
            </Buyer>
            <ShipTo>
              <Name>string</Name>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
            </ShipTo>
            <Items>
              <SellerOrderItem>
                <ItemId>int</ItemId>
                <Type>Auction or PureBuyItNow or ShopItem</Type>
                <Title>string</Title>
                <Quantity>int</Quantity>
                <UnitPrice>int</UnitPrice>
                <VatRate>int</VatRate>
                <OwnReferences xsi:nil="true" />
                <MerchantPartNumber>string</MerchantPartNumber>
              </SellerOrderItem>
              <SellerOrderItem>
                <ItemId>int</ItemId>
                <Type>Auction or PureBuyItNow or ShopItem</Type>
                <Title>string</Title>
                <Quantity>int</Quantity>
                <UnitPrice>int</UnitPrice>
                <VatRate>int</VatRate>
                <OwnReferences xsi:nil="true" />
                <MerchantPartNumber>string</MerchantPartNumber>
              </SellerOrderItem>
            </Items>
            <SellerOrderPayments>
              <SellerOrderPayment>
                <PaymentType>string</PaymentType>
                <Reference>string</Reference>
                <AdditionalInfo xsi:nil="true" />
                <Amount>int</Amount>
                <PaidDate>dateTime</PaidDate>
                <PaymentCost>int</PaymentCost>
              </SellerOrderPayment>
              <SellerOrderPayment>
                <PaymentType>string</PaymentType>
                <Reference>string</Reference>
                <AdditionalInfo xsi:nil="true" />
                <Amount>int</Amount>
                <PaidDate>dateTime</PaidDate>
                <PaymentCost>int</PaymentCost>
              </SellerOrderPayment>
            </SellerOrderPayments>
            <ShippingType>string</ShippingType>
            <ShippingCost>int</ShippingCost>
            <PurchaseOrderId>guid</PurchaseOrderId>
          </SellerOrder>
          <SellerOrder>
            <OrderId>int</OrderId>
            <CreatedDate>dateTime</CreatedDate>
            <ExpiresDate>dateTime</ExpiresDate>
            <LastUpdatedDate>dateTime</LastUpdatedDate>
            <SubTotal>int</SubTotal>
            <Seller>
              <UserId>int</UserId>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
              <Email>string</Email>
              <Phone>string</Phone>
              <Alias>string</Alias>
            </Seller>
            <Buyer>
              <UserId>int</UserId>
              <FirstName>string</FirstName>
              <LastName>string</LastName>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
              <Email>string</Email>
              <Phone>string</Phone>
              <Alias>string</Alias>
            </Buyer>
            <ShipTo>
              <Name>string</Name>
              <AddressLine1>string</AddressLine1>
              <AddressLine2>string</AddressLine2>
              <ZipCode>string</ZipCode>
              <City>string</City>
              <CountryName>string</CountryName>
            </ShipTo>
            <Items>
              <SellerOrderItem>
                <ItemId>int</ItemId>
                <Type>Auction or PureBuyItNow or ShopItem</Type>
                <Title>string</Title>
                <Quantity>int</Quantity>
                <UnitPrice>int</UnitPrice>
                <VatRate>int</VatRate>
                <OwnReferences xsi:nil="true" />
                <MerchantPartNumber>string</MerchantPartNumber>
              </SellerOrderItem>
              <SellerOrderItem>
                <ItemId>int</ItemId>
                <Type>Auction or PureBuyItNow or ShopItem</Type>
                <Title>string</Title>
                <Quantity>int</Quantity>
                <UnitPrice>int</UnitPrice>
                <VatRate>int</VatRate>
                <OwnReferences xsi:nil="true" />
                <MerchantPartNumber>string</MerchantPartNumber>
              </SellerOrderItem>
            </Items>
            <SellerOrderPayments>
              <SellerOrderPayment>
                <PaymentType>string</PaymentType>
                <Reference>string</Reference>
                <AdditionalInfo xsi:nil="true" />
                <Amount>int</Amount>
                <PaidDate>dateTime</PaidDate>
                <PaymentCost>int</PaymentCost>
              </SellerOrderPayment>
              <SellerOrderPayment>
                <PaymentType>string</PaymentType>
                <Reference>string</Reference>
                <AdditionalInfo xsi:nil="true" />
                <Amount>int</Amount>
                <PaidDate>dateTime</PaidDate>
                <PaymentCost>int</PaymentCost>
              </SellerOrderPayment>
            </SellerOrderPayments>
            <ShippingType>string</ShippingType>
            <ShippingCost>int</ShippingCost>
            <PurchaseOrderId>guid</PurchaseOrderId>
          </SellerOrder>
        </SellerOrders>
      </GetOrdersResult>
    </GetOrdersResponse>
  </soap12:Body>
</soap12:Envelope>

XHTML CSS