Skip to content
On this page

Leads

On this page, you can see all endpoints related to the Seller's leads

Dataset

FieldDescription
idThe unique identifier of the lead.
phoneThe customer's phone number
callsThe number of calls.
statusThe current status of the lead, it can be: new, confirmed, call_later,call_later_scheduled, no_reply, cancelled, wrong, expired, processing, delayed, cancelled_price
feesThe lead call center fees.
created_atThe lead creation datetime.
pay_modeThe lead pay mode, it can be : Cod, Pre paid.
lead_inputsThe lead inputs data
items[].quantityThe quantity of lead's product.
items[].product_skuThe unique code of lead's product.
items[].skuThe sku of lead's product.
items[].product_nameThe name of lead's product.
historyThe history of lead status.

Get All leads

Retrieve a list of all leads.

Endpoint

/seller/leads
1

Method GET

Query Parameters

  • sku : Filter leads by their sku items.
  • phone : Filter leads by phone.

Request Example

/seller/leads?sku=ABC123&...
1

Response

json
{
  "status": "success",
  "data": [
    {
      "id": "...",
      "items": [
        {
          "product_sku": "...",
          "sku": "...",
          "product_name": "...",
          "quantity": "..."
        },
        ...
      ],
      "phone": "...",
      "status": "...",
      "calls": "...",
      "fees": {
        "entered" : ...,
        "confirmed" : ...,
        "delivered" : ...,
        "up_down_cross_sell" : ...
      },
      "created_at": "...",
      "lead_inputs": [
        {...}
      ],
      "pay_mode":"...",
      "history" : [
        {
          "id": ...,
          "status": "...",
          "comment": "...",
          "created_at": ...
        },
        ...
      ]
    },
    ...
  ],
  "meta": {
    "pagination": {...}
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

Show lead

Retrieve a lead.

Endpoint

/seller/leads/{id}
1

Method GET

Parameters

NameTypeDescriptionRequired
idstringThe unique identifier of the lead to retrieve.Yes

Response

json
{
  "status": "success",
  "data": {
    "id": "...",
    "items": [
      {
        "product_sku": "...",
        "sku": "...",
        "product_name": "...",
        "quantity": "..."
      },
      ...
    ],
    "phone": "...",
    "status": "...",
    "calls": "...",
    "fees": {
      "entered" : ...,
      "confirmed" : ...,
      "delivered" : ...,
      "up_down_cross_sell" : ...
    },
    "created_at": "...",
    "lead_inputs": [
      {...}
    ],
    "pay_mode":"...",
    "history" : [
      {
        "id": ...,
        "status": "...",
        "comment":  "...",
        "created_at": ...
      },
      ...
    ]
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

Create lead

Create one lead.

Endpoint

/seller/leads
1

Method POST

Parameters

NameTypeDescriptionRequired
phonestringThe customer's phone numberYes
items[].skustringThe unique code of lead's product.Yes
items[].pricefloatThe product priceNo
items[].quantityintegerThe quantity of productYes
namestringThe customer's nameNo
countrystringThe country ISO code 2 of customerNo
addressstringThe customer's addressNo

Response

201 Created

json
{
  "status": "success",
  "data": {
    "id": "...",
    "items": [
      {
        "product_sku": "...",
        "sku": "...",
        "product_name": "...",
        "quantity": "..."
      },
      ...
    ],
    "phone": "...",
    "status": "...",
    "calls": "...",
    "fees": {
      "entered" : ...,
      "confirmed" : ...,
      "delivered" : ...,
      "up_down_cross_sell" : ...
    },
    "created_at": "...",
    "lead_inputs": [
      {...}
    ],
    "pay_mode":"...",
    "history" : [
      {
        "id": ...,
        "status": "...",
        "comment":  "...",
        "created_at": ...
      },
      ...
    ]
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

Get notified on a lead status update

To obtain the latest lead status update, kindly navigate to your account settings, access the API developer section, and input your designated webhook callback URL. Ensure that the action is executed using the POST method. Should you encounter any issues or require further assistance, please don't hesitate to reach out to us at [email protected].

Json format

json
{
  "id": "...",
  "items": [
    {
      "product_sku": "...",
      "quantity": "..."
    },
    ...
  ],
  "phone": "...",
  "status": "...",
  "calls": "...",
  "created_at": "...",
  "lead_inputs": [
    {...}
  ],
  "pay_mode":"..." ,
  "history" : [
    {
      "id": ...,
      "status": "...",
      "comment":  "...",
      "created_at": ...
    },
    ...
  ]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27