Leads

Thi API is used to capture leads from Ecommerce websites

POST
/ecommactivity/lead

REQUEST ELEMENTS

 customer.accountId  String  No Unique ID generated for the customer
 customer.phone  String  No Phone number of the customer
 customer.email  String  No Email ID of the customer
 customer.first  String  No First name of the customer
 customer.last  String  No Last name of the customer
 ecommerce.userAgent  String  No User Agent of the customer
 ecommerce.browserIdentifier  String  No  A unique custom Browser ID 
 ecommerce.time  String  Yes  Time of the request
 ecommerce.sourceUrl  String  No  Url of the request
 ecommerce.custom.fbp  String  No  _fbp value retrieved from browser 
 ecommerce.custom.fbc  String  No  _fbc  value retrieved from browser 

Error messages

Error Code Error Message
1004 The following field is not unique
1006 The following fields are invalid
1002 Fields are empty
SAMPLE JSON PAYLOAD

{
  "customer": {
    "first": "First name",
    "last": "Last name",
    "email": "email",
    "phone": "phone"
  },
  "ecommerce": {
    "ip": "199.199.199.199",
    "userAgent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0",
    "browserIdentifier": "6726e88e-b74a-11ed-afa1-0242ac120002",
    "time": "1677576591785",
    "sourceUrl": "https://www.worldshop.com/products/product1",
    "custom": {
      "fbp": "_fbp cookie value (facebook)",
      "fbc": "_fbc cookie value (facebook)"
    }
  }
}