GetResponse

Definition

Use this call to get the returned information from the system for the UploadImages and MigrateImages API.

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

Parameters

FieldTypeDescription
ActionstringGetResponse
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

# GetResponse cURL example
# to run, update Timestamp and recompute Signature
#
url = "https://api.sg.ali-lazada.com/"
post
data-urlencode Action=GetResponse
data-urlencode Timestamp=2016-07-18T11:11+0000
data-urlencode [email protected]
data-urlencode Version=1.0
data-urlencode Signature=9ade00fb4b9ab9ed1b8a4d189f1a13e1029edc25dd963235480ec69226fd9f39

Request body

Enter the request ID from the UploadImages or MigrateImages API call in the request body.

<?xml version="1.0" encoding="UTF-8" ?>
<Request>
    <RequestId>0a14301714908715332687334e</RequestId>
</Request>

Result format

A success example is as follows.

<?xml version="1.0" encoding="UTF-8"?>
<SuccessResponse>
     <Head>
          <RequestId/>
          <RequestAction>GetResponse</RequestAction>
          <ResponseType>Images</ResponseType>
          <Timestamp>2016-07-07T20:12:14+0700</Timestamp>
     </Head>
     <Body>
     ...
     <Body/>
</SuccessResponse>
{
    "SuccessResponse": {
        "Head": {
            "RequestId": "",
            "RequestAction": "GetResponse",
            "ResponseType": "Images",
            "Timestamp": "2016-08-26T06:57:26+0000"
        },
        "Body": {
            "Warnings": []
        }
    }
}

Error messages

Error codeMessage
5E005: Invalid Request Format
6E006: Unexpected internal error