LettrLabs Public API Documentation.
LettrLabs Public API Documentation (1.0.0)
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/
https://app.lettrlabs.com/api/
Provide conversion events and values for matchback and attribution. The more personal information that can be provided, the better the matchback quality. Must provide atleast 1 piece of personal information, and a conversion value. If no date is provided, the event is assumed to occur at the time of the call.
Converted Order ID. Providing an Order ID is recommended to avoid duplication of conversions.
Converted Store ID. Providing a Store ID is recommended to help classify conversions.
Provide a Unique ID as a pass through field. This allows you to tie data back when exporting to your CRM.
Provide a CRM ID as a pass through field. This allows you to tie data back when exporting to your CRM.
Provide a unique Customer ID to help tie data back to a specific customer.
Date and time of the conversion event (UTC). This is the date the conversion occurred. Providing no date will default to the current date and time. Please use standard IDO datetime formats.
- Mock server
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/conversions
https://app.lettrlabs.com/api/v1/conversions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/conversions \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '[
{
"firstName": "string",
"lastName": "string",
"fullName": "string",
"businessName": "string",
"primaryAddress": {
"fullAddress": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string"
},
"secondaryAddress": {
"fullAddress": "string",
"address1": "string",
"address2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string"
},
"couponCode": "string",
"primaryPhoneNumber": "string",
"secondaryPhoneNumber": "string",
"primaryEmail": "user@example.com",
"secondaryEmail": "user@example.com",
"revenue": 7.922816251426434e+28,
"orderId": "string",
"storeId": "string",
"uniqueId": "string",
"crmId": "string",
"customerId": "string",
"eventDate": "2019-08-24T14:15:22Z"
}
]'Returns processed conversions with validation statistics in Metadata. The Metadata includes TotalRecords, ValidRecords, InvalidRecords, PrimaryEmails, SecondaryEmails, PrimaryAddresses, SecondaryAddresses, PrimaryPhones, SecondaryPhones, CouponCodes, and may include DetailedErrors and DetailedWarnings with specific validation data.
{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": [ { … } ], "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
- Mock server
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/conversions
https://app.lettrlabs.com/api/v1/conversions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/conversions \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": [ { … } ], "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
- Mock server
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/conversions/{id}
https://app.lettrlabs.com/api/v1/conversions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/conversions/{id}' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": "string", "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }
- Mock server
https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/conversions/{id}/status
https://app.lettrlabs.com/api/v1/conversions/{id}/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.lettrlabs.com/_mock/lettrlabs_api_reference/v1/conversions/{id}/status' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'{ "profile": { "id": 0, "aadId": "1cbad290-069a-4527-be23-a0c144b5302d", "email": "string", "firstName": "string", "lastName": "string", "company": "string", "created": "2019-08-24T14:15:22Z", "shouldProcessQrCodes": true }, "payload": { "id": 0, "fileName": "string", "dataSourceType": "string", "status": "string", "uploadDate": "2019-08-24T14:15:22Z" }, "errors": [ "string" ], "hasErrors": true, "warnings": [ "string" ], "hasWarnings": true, "metadata": { "property1": {}, "property2": {} } }