GetStatistics (to be deprecated)

Definition

Use this call to get product and order statistics for a specified period.

Request URI: https://api.sellercenter.lazada.sg?Action=GetStatistics

Parameters

FieldTypeDescription
ActionstringGetStatistics
Name of the API that is to be called. Mandatory.
FormatstringThe response format, with XML as the default. Can be XML or JSON. Optional.
TimestampdatetimeThe current time in ISO8601 format (e.g., Timestamp=2016-04-01T10:00:00+02:00 for Berlin). Mandatory.
UserIDstringThe ID of the user making the call. Mandatory.
VersionstringThe API version against which this call is to be executed. The current version is "1.0". Mandatory.
SignaturestringThe cryptographic signature, authenticating the request. You must create this value by computing the SHA256 hash of the request, using the API key of the user specified in the UserID parameter. Mandatory.

Code sample

# GetStatistics cURL example
# to run, update Timestamp and recompute Signature
#
url = "https://api.sg.ali-lazada.com/"
get
data-urlencode Action=GetStatistics
data-urlencode Timestamp=2015-07-01T11:11+0000
data-urlencode [email protected]
data-urlencode Version=1.0
data-urlencode Signature=d4ff93cccb165295ed8357fe42082208b781a3b576bbb7d3fe7a624270b047b9
GetStatistics request = new GetStatistics();
try {
  GetStatisticsResponse response = request.execute();
  SellerStatics statics = response.getBody();
  System.out.println(statics);
} catch (LazadaException e) {
  System.out.println(e.getResponseStr());
}

Response

The statistics are returned in the response as follows.

NameTypeDescription
PRODUCTS
ActiveintegerNumber of active products
AllintegerNumber of all products
DeletedintegerNumber of deleted products
ImageMissingintegerNumber of products with image missing
InactiveintegerNumber of inactive products
LiveintegerNumber of live products
PendingintegerNumber of product pending
PoorQualityintegerNumber of products with poor quality
SoldOutintegerNumber of sold out products
TotalintegerTotal number of products
ORDERS
CanceledintegerNumber of canceled orders
DeliveredintegerNumber of delivered orders
EconomyintegerNumber of orders with Economy shipping type status
ExpressintegerNumber of orders with Express shipping type status
FailedintegerNumber of failed orders
NoExtInvoiceKeyintegerNumber of orders with no external invoice key
NotPrintedPendingintegerNumber of not printed pending orders
NotPrintedReadyToShipintegerNumber of not printed ready to ship orders
PendingintegerNumber of pending orders
ProcessingintegerNumber of orders in processing
ReadyToShipintegerNumber of ready to ship orders
ReturnRejectedintegerNumber of orders with return rejected
ReturnShippedByCustomerintegerNumber of orders shipped by the customer
ReturnWaitingForApprovalintegerNumber of orders with return waiting for approval status
ReturnedintegerNumber of returned orders
ShippedintegerNumber of shipped orders
StandardintegerNumber of orders with Standard shipping type
TotalintegerTotal number of orders
ORDER ITEMS PENDING
TodayintegerNumber of order items pending in the last 24 hours
YesterdayintegerNumber of order items pending in the last 48 hours
OlderintegerNumber of order items pending for more than 48 hours
ACCOUNT HEALTH *Statistics grouped by Day, Week, Month and Alltime*Gives the values for:
TwoDaysShippedPercentage
- Percent of orders shipped within 48 hours
ReturnPercentage
- Percent of orders returned
CancellationPercentage - Percent of orders canceled*
PercentagedecimalPercentage for the statistic
TextstringA text label for the percentage grade

Result sample

<SuccessResponse>
     <Head>
          <RequestId/>
          <RequestAction>GetStatistics</RequestAction>
          <ResponseType/>
          <Timestamp>2015-08-03T13:39:34+0000</Timestamp>
     </Head>
     <Body>
          <Products>
               <Status>
                    <Active>10</Active>
                    <All>20</All>
                    <Deleted>5</Deleted>
                    <ImageMissing>0</ImageMissing>
                    <Inactive>5</Inactive>
                    <Live>10</Live>
                    <Pending>0</Pending>
                    <PoorQuality>0</PoorQuality>
                    <SoldOut>0</SoldOut>
               </Status>
               <Total>20</Total>
          </Products>
          <Orders>
               <Status>
                    <Canceled>5</Canceled>
                    <Delivered>2</Delivered>
                    <Economy>0</Economy>
                    <Express>2</Express>
                    <Failed>0</Failed>
                    <NoExtInvoiceKey>0</NoExtInvoiceKey>
                    <NotPrintedPending>0</NotPrintedPending>
                    <NotPrintedReadyToShip>0</NotPrintedReadyToShip>
                    <Pending>0</Pending>
                    <Processing>0</Processing>
                    <ReadyToShip>0</ReadyToShip>
                    <ReturnRejected>0</ReturnRejected>
                    <ReturnShippedByCustomer>0</ReturnShippedByCustomer>
                    <ReturnWaitingForApproval>0</ReturnWaitingForApproval>
                    <Returned>0</Returned>
                    <Shipped>0</Shipped>
                    <Standard>0</Standard>
               </Status>
               <Total>9</Total>
          </Orders>
          <OrdersItemsPending>
               <Today>0</Today>
               <Yesterday>0</Yesterday>
               <Older>12</Older>
          </OrdersItemsPending>
          <AccountHealth>
               <Day>
                    <TwoDaysShippedPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>bad</Text>
                    </TwoDaysShippedPercentage>
                    <ReturnPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>excellent</Text>
                    </ReturnPercentage>
                    <CancellationPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>excellent</Text>
                    </CancellationPercentage>
               </Day>
               <Week>
                    <TwoDaysShippedPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>bad</Text>
                    </TwoDaysShippedPercentage>
                    <ReturnPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>excellent</Text>
                    </ReturnPercentage>
                    <CancellationPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>excellent</Text>
                    </CancellationPercentage>
               </Week>
               <Month>
                    <TwoDaysShippedPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>bad</Text>
                    </TwoDaysShippedPercentage>
                    <ReturnPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>excellent</Text>
                    </ReturnPercentage>
                    <CancellationPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>excellent</Text>
                    </CancellationPercentage>
               </Month>
               <Alltime>
                    <TwoDaysShippedPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>bad</Text>
                    </TwoDaysShippedPercentage>
                    <ReturnPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>excellent</Text>
                    </ReturnPercentage>
                    <CancellationPercentage>
                         <Percentage>0.00</Percentage>
                         <Text>excellent</Text>
                    </CancellationPercentage>
               </Alltime>
          </AccountHealth>
     </Body>
</SuccessResponse>

Error messages

No specific errors.