# Lazada

### Snapshot

| Features                        | Details                                                                         |
| ------------------------------- | ------------------------------------------------------------------------------- |
| Release Status                  | Released                                                                        |
| Source API Version              | v2                                                                              |
| Table Selection                 | Yes                                                                             |
| Column Selection                | Yes                                                                             |
| Edit Integration                | Yes                                                                             |
| Replication Type Selection      | No                                                                              |
| Authentication Parameters       | <p>Lazada App Id <br> Lazada App secret <br>Lazada Email<br>Lazada password</p> |
| Replication Type                | Key based Replication                                                           |
| Replication Key                 | DATE                                                                            |
| Suggested Replication Frequency | 24 hrs                                                                          |

| Tables/APIs Supported |                    |
| --------------------- | ------------------ |
| Orders                | MultipleOrderItems |

### Integrate Lazada with Daton

1. Signin to Daton
2. Select Lazada from Integrations page
3. Provide Integration Name, Replication,Frequency and History. Integration name would be used in creating tables for the integration and cannot be changed later
4. Provide your Lazada client Id and client Secret (if you don't provide,Daton will use it's keys)
5. After providing the keys, select the seller country , provide seller Email and Password to authorize Daton to periodically extract data from Lazada.
6. Post successful authentication you will be prompted to choose from the list of available tables
7. Then select all required fields for each table
8. Submit the integration.

### Workflow

1. Integrations would be in Pending state initially and will be moved to Active state as soon as the first job loads data successfully on to the configured warehouse
2. Users would be able to edit/pause/re-activate/delete integration anytime
3. Users can view job status and process logs from the integration details page by clicking on the integration name from the active list

### Lazada Data

**Orders**

Purpose: Use this API to get all the orders available. This API has list of items for a range of orders.

Source API Documentation  <https://open.lazada.com/doc/api.htm?spm=a2o9m.11193487.0.0.3ac413fe5Pix7F#/api?cid=8&path=/orders/get>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                              | Target Datatype |
| --------------------------------- | --------------- |
| voucher\_platform                 | NUMERIC         |
| warehouse\_code                   | STRING          |
| voucher                           | NUMERIC         |
| order\_number                     | NUMERIC         |
| voucher\_seller                   | NUMERIC         |
| created\_at                       | TIMESTAMP       |
| voucher\_code                     | NUMERIC         |
| gift\_option                      | BOOLEAN         |
| shipping\_fee\_discount\_platform | NUMERIC         |
| customer\_last\_name              | STRING          |
| updated\_at                       | TIMESTAMP       |
| promised\_shipping\_times         | STRING          |
| price                             | STRING          |
| national\_registration\_number    | NUMERIC         |
| shipping\_fee\_original           | NUMERIC         |
| payment\_method                   | STRING          |
| customer\_first\_name             | STRING          |
| shipping\_fee\_discount\_seller   | NUMERIC         |
| shipping\_fee                     | NUMERIC         |
| branch\_number                    | STRING          |
| tax\_code                         | STRING          |
| items\_count                      | NUMERIC         |
| delivery\_info                    | STRING          |
| statuses                          | STRING          |
| address\_billing                  | RECORD          |
| extra\_attributes                 | STRING          |
| order\_id                         | NUMERIC         |
| gift\_message                     | STRING          |
| remarks                           | STRING          |
| address\_shipping                 | RECORD          |

**MultipleOrderItems**

Purpose:Use this API to get the item information of all the orders.

Source API Documentation: <https://open.lazada.com/doc/api.htm?spm=a2o9m.11193487.0.0.3ac413fe5Pix7F#/api?cid=8&path=/orders/items/get>

Replication: Key-Based Replication

Replication Key: lastRunDate

**Fields**

| Name                      | Target Datatype |
| ------------------------- | --------------- |
| tax\_amount               | NUMERIC         |
| reason                    | STRING          |
| sla\_time\_stamp          | STRING          |
| purchase\_order\_id       | STRING          |
| voucher\_seller           | NUMERIC         |
| voucher\_code\_seller     | NUMERIC         |
| voucher\_code             | STRING          |
| package\_id               | STRING          |
| variation                 | STRING          |
| voucher\_code\_platform   | STRING          |
| purchase\_order\_number   | STRING          |
| sku                       | STRING          |
| invoice\_number           | STRING          |
| order\_type               | STRING          |
| cancel\_return\_initiator | STRING          |
| shop\_sku                 | STRING          |
| stage\_pay\_status        | STRING          |
| tracking\_code\_pre       | STRING          |
| order\_item\_id           | NUMERIC         |
| shop\_id                  | STRING          |
| order\_flag               | STRING          |
| name                      | STRING          |
| order\_id                 | NUMERIC         |
| status                    | STRING          |
| paid\_price               | NUMERIC         |
| product\_main\_image      | STRING          |
| voucher\_platform         | NUMERIC         |
| product\_detail\_url      | STRING          |
| promised\_shipping\_time  | STRING          |
| warehouse\_code           | STRING          |
| shipping\_type            | STRING          |
| created\_at               | STRING          |
| updated\_at               | STRING          |
| currency                  | STRING          |
| shipping\_provider\_type  | STRING          |
| shipping\_fee\_original   | NUMERIC         |
| is\_digital               | NUMERIC         |
| item\_price               | NUMERIC         |
| shipping\_service\_cost   | NUMERIC         |
| tracking\_code            | STRING          |
| shipping\_amount          | NUMERIC         |
| reason\_detail            | STRING          |
| return\_status            | STRING          |
| shipment\_provider        | STRING          |
| voucher\_amount           | NUMERIC         |
| digital\_delivery\_info   | STRING          |
| extra\_attributes         | STRING          |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/ecommerce/lazada.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
