Skip to content

Instantly share code, notes, and snippets.

View d2kagw's full-sized avatar

Aaron Wallis d2kagw

View GitHub Profile
@d2kagw
d2kagw / lexer_docs_batch_marketing_sms_click.ndjson
Last active September 20, 2023 01:02
batch_marketing_sms_click.ndjson - Via automated deployment - Visit https://learn.lexer.io for more information.
{"link": {"mobile": "+0123456789"}, "action_at": "2023-03-06T12:26:47Z", "campaign_id": "Black friday Menswear Teaser Aug 2020", "list": {"id": "7bff7a...", "name": "All Customers List"}, "from": {"name": "My Brand", "number": "+0123456789"}, "to": {"name": "My Brand", "number": "+61400000000"}}
@d2kagw
d2kagw / lexer_docs_batch_marketing_email_open.ndjson
Last active September 20, 2023 01:02
batch_marketing_email_open.ndjson - Via automated deployment - Visit https://learn.lexer.io for more information.
{"link": {"email": "jane@fake.com"}, "action_at": "2023-03-06T12:26:47Z", "campaign_id": "Black friday Menswear Teaser Aug 2020", "list": {"id": "7bff7a...", "name": "All Customers List"}, "from": {"name": "Jane Doe", "email": "jane@fake.com"}, "to": {"name": "Jane Doe", "email": "jane@fake.com"}}
@d2kagw
d2kagw / lexer_docs_batch_profile_unify.ndjson
Last active September 20, 2023 01:02
batch_profile_unify.ndjson - Via automated deployment - Visit https://learn.lexer.io for more information.
{"records": [{"email": "jane@fake.com"}, {"customer_id": "b6ef3b..."}]}
@d2kagw
d2kagw / lexer_docs_batch_commerce_returns.ndjson
Last active September 20, 2023 01:02
batch_commerce_returns.ndjson - Via automated deployment - Visit https://learn.lexer.io for more information.
{ "link": { "email": "jane@fake.com" }, "action_at": "2023-03-06T12:26:47Z", "return_id": "53059a...", "type": "ecommerce", "currency": "USD", "products": [ { "product_reference": { "id": "7ede97...", "id_type": "sku", "dataset_id": "0e2187..." }, "price_paid": -50, "quantity": -2 } ], "custom_fields": { "is_damaged": true, "customer_reason": "glass broken on delivery" } }
@d2kagw
d2kagw / lexer_docs_batch_marketing_sms_subscribe.ndjson
Last active September 20, 2023 01:02
batch_marketing_sms_subscribe.ndjson - Via automated deployment - Visit https://learn.lexer.io for more information.
{"link": {"mobile": "+0123456789"}, "action_at": "2023-03-06T12:26:47Z", "list": {"id": "7bff7a...", "name": "All Customers List"}, "status": "subscribed"}
@d2kagw
d2kagw / lexer_docs_batch_marketing_sms_send.ndjson
Last active September 20, 2023 01:02
batch_marketing_sms_send.ndjson - Via automated deployment - Visit https://learn.lexer.io for more information.
{"link": {"mobile": "+0123456789"}, "action_at": "2023-03-06T12:26:47Z", "campaign_id": "Black friday Menswear Teaser Aug 2020", "list": {"id": "7bff7a...", "name": "All Customers List"}, "body": "Lorem ipsum do in mollit consectetur dolore magna irure exercitation.", "from": {"name": "My Brand", "number": "+61400000000"}, "to": {"name": "My Brand", "number": "+0123456789"}}
@d2kagw
d2kagw / lexer_docs_schema_commerce_products.json
Last active September 20, 2023 01:02
schema_commerce_products.json - Via automated deployment - Visit https://learn.lexer.io for more information.
{
"type": "object",
"properties": {
"records": {
"type": "array",
"items": {
"title": "Product",
"type": "object",
"description": "A product object. The field referenced in product_reference_type should be unique and used in purchase and return events.",
"required": [
@d2kagw
d2kagw / lexer_docs_schema_marketing_email_bounce.json
Last active September 20, 2023 01:02
schema_marketing_email_bounce.json - Via automated deployment - Visit https://learn.lexer.io for more information.
{
"type": "object",
"properties": {
"records": {
"type": "array",
"items": {
"title": "Email Bounce Event",
"type": "object",
"description": "An Email Bounce Event object.",
"required": [
@d2kagw
d2kagw / lexer_docs_schema_profile_customer.json
Last active September 20, 2023 01:02
schema_profile_customer.json - Via automated deployment - Visit https://learn.lexer.io for more information.
{
"type": "object",
"properties": {
"records": {
"type": "array",
"items": {
"title": "Customer",
"type": "object",
"description": "A customer object. Must have at only one linkable field of email, email_sha256, email_md5, mobile, customer_id or external_id. A dataset may be configured to require a particular one of these.",
"required": [
@d2kagw
d2kagw / lexer_docs_schema_commerce_purchases.json
Last active September 20, 2023 01:02
schema_commerce_purchases.json - Via automated deployment - Visit https://learn.lexer.io for more information.
{
"type": "object",
"properties": {
"records": {
"type": "array",
"items": {
"title": "Purchase",
"type": "object",
"description": "A purchase event object.",
"required": [