GetPayoutStatus

Definition

Use this call to get the payout status for a specified period.

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

Parameters

FieldTypeDescription
ActionstringGetPayoutStatus
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.
CreatedAfterdatetimeFilter statements created after the provided date. Mandatory.

Code sample

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

Response

The response contains the following fields.

NameTypeDescription
StatementNumberstringStatement identifier
CreatedAtdatetimeWhen the statement was created
UpdatedAtdatetimeWhen the statement was last updated
OpeningBalancedecimalThe opening balance
ItemRevenuedecimalThe revenue generated by the item
ShipmentFeedecimalCosts of shipping
ShipmentFeeCreditdecimalShipping fee credit, if any
OtherRevenueTotaldecimalOther total revenue
FeesTotaldecimalSum of payment fee and return to seller fee
Subtotal1decimalSum of item revenue and other revenue
RefundsdecimalSum of all refunds, if any
FeesOnRefundsTotaldecimalAccumulated fees on refunds issued
Subtotal2decimal(Sum of Subtotal1) - Refunds
ClosingBalancedecimalClosing balance
GuaranteeDepositdecimalGuarantee deposit
PayoutdecimalAmount to be paid out to seller for statement
PaidbooleanPayout status of statement. 1 is paid, and 0 is not paid

Result sample

<?xml version="1.0" encoding="UTF-8"?>
<SuccessResponse>
  <Head>
    <RequestId/>
    <RequestAction>GetPayoutStatus</RequestAction>
    <ResponseType>Statement</ResponseType>
    <Timestamp>2015-06-16T13:57:59+0000</Timestamp>
  </Head>
  <Body>
    <PayoutStatus>
      <Statement>
        <StatementNumber>EG100RT-20141228</StatementNumber>
        <CreatedAt>2014-01-04 00:23:04</CreatedAt>
        <UpdatedAt>2014-01-04 00:23:04</UpdatedAt>
        <OpeningBalance>0.00</OpeningBalance>
        <ItemRevenue>0</ItemRevenue>
        <ShipmentFee>51.20</ShipmentFee>
        <ShipmentFeeCredit>51.20</ShipmentFeeCredit>
        <OtherRevenueTotal>0</OtherRevenueTotal>
        <FeesTotal>51.20</FeesTotal>
        <Subtotal1>-51.20</Subtotal1>
        <Refunds>0</Refunds>
        <FeesOnRefundsTotal>0</FeesOnRefundsTotal>
        <Subtotal2>-51.20</Subtotal2>
        <ClosingBalance>3962.41</ClosingBalance>
        <GuaranteeDeposit>0</GuaranteeDeposit>
        <Payout>3962.41 EUR</Payout>
        <Paid>0</Paid>
      </Statement>
      <Statement>
        <StatementNumber>EG100RT-20141229</StatementNumber>
        <CreatedAt>2015-01-04 00:23:04</CreatedAt>
        <UpdatedAt>2015-01-04 00:23:04</UpdatedAt>
        <OpeningBalance>10.00</OpeningBalance>
        <ItemRevenue>0</ItemRevenue>
        <ShipmentFee>1.50</ShipmentFee>
        <ShipmentFeeCredit>1.50</ShipmentFeeCredit>
        <OtherRevenueTotal>0</OtherRevenueTotal>
        <FeesTotal>1.50</FeesTotal>
        <Subtotal1>-1.50</Subtotal1>
        <Refunds>0</Refunds>
        <FeesOnRefundsTotal>0</FeesOnRefundsTotal>
        <Subtotal2>-1.50</Subtotal2>
        <ClosingBalance>777.77</ClosingBalance>
        <GuaranteeDeposit>0</GuaranteeDeposit>
        <Payout>666.66 EUR</Payout>
        <Paid>0</Paid>
      </Statement>
    </PayoutStatus>
  </Body>
</SuccessResponse>

Error messages

Error codeMessage
4E004: Invalid Timestamp format
62E062 No seller was found by e-mail %s