Skip to content

Lead fields

This page lists exactly what a lead event carries. The same fields are the columns of the shared sheet. The machine-readable version is in the API reference. In Concour, Developers, then Required fields, lists the 15 fields that every lead.new must carry, with an example and the not-known value of each, and the five optional extras.

Every request body has three members, as Standard Webhooks defines.

Member Meaning
type One of lead.new, lead.update, lead.withdraw, lead.delete
timestamp When the event happened, in ISO 8601 format. It stays the same on every retry
data The lead fields, using the exact field names

data.record_action must match type.

type data.record_action data.request_type When to send
lead.new new absent A first enquiry
lead.update update absent Any later change to the lead
lead.withdraw withdraw withdraw_consent or restriction The customer withdraws consent or asks to restrict processing
lead.delete delete erasure The customer asks for erasure

MarsX ignores extra top-level members of the envelope. An unknown member inside data gets 400 with the pointer /data.

These three events are one lead, in order: lead.new (revision 1), lead.update (revision 2) and lead.withdraw (revision 3). Each event after the first carries a higher source_revision and the time of its own change.

A new lead, revision 1:

lead.new
{
"type": "lead.new",
"timestamp": "2026-10-01T09:15:00+07:00",
"data": {
"partner_lead_id": "SRC-TEST-0001",
"partner_customer_id": "SRC-CUST-TEST-0001",
"source_revision": 1,
"record_action": "new",
"created_at": "2026-10-01T09:15:00+07:00",
"updated_at": "2026-10-01T09:15:00+07:00",
"customer_name": "Contoh Pelanggan",
"phone": "+6280000000001",
"email": "contoh.pelanggan@contoh.example",
"model_interest": "Model A",
"purchase_timeframe": "3 bulan ke depan",
"test_drive_requested": "N",
"enquiry_notes": "Ingin meminta penawaran untuk Model A.",
"customer_province": "Jawa Barat",
"customer_city": "Kota Bandung",
"preferred_dealer_code": "D0001",
"source_channel": "chat",
"campaign": "campaign-test",
"session_id": "SESSION-TEST-0001",
"consent_reference": "CONSENT-TEST-0001",
"contact_consent": "yes",
"consent_time": "2026-10-01T09:14:40+07:00",
"notice_version": "NOTICE-TEST-1",
"consent_purpose": "sales_follow_up",
"ai_intent_label": "ingin_penawaran",
"ai_summary": "Pelanggan meminta penawaran Model A."
}
}

A lead from an advertising lead form says which platform it came from. It can also say that the customer confirmed the phone number:

lead.new from a Meta lead form
{
"type": "lead.new",
"timestamp": "2026-10-01T10:05:00+07:00",
"data": {
"partner_lead_id": "META-TEST-0003",
"source_revision": 1,
"record_action": "new",
"created_at": "2026-10-01T10:04:30+07:00",
"updated_at": "2026-10-01T10:05:00+07:00",
"customer_name": "Contoh Pelanggan Dua",
"phone": "+6280000000002",
"phone_verified": true,
"email": "contoh.pelanggan2@contoh.example",
"model_interest": "Model A",
"purchase_timeframe": "Bulan ini",
"test_drive_requested": "N",
"enquiry_notes": "Ingin tahu harga dan promo.",
"customer_province": "Jawa Barat",
"customer_city": "Kota Bandung",
"preferred_dealer_code": "D0001",
"source_channel": "meta_lead_form",
"campaign": "campaign-test",
"ad_id": "AD-TEST-0001",
"ad_creative_id": "CREATIVE-TEST-0001",
"consent_reference": "CONSENT-TEST-0003",
"contact_consent": "yes",
"consent_time": "2026-10-01T10:04:20+07:00",
"notice_version": "NOTICE-TEST-1",
"consent_purpose": "sales_follow_up"
}
}

A change to that lead is revision 2. It carries the full current state, a higher source_revision and the time of the change:

lead.update
{
"type": "lead.update",
"timestamp": "2026-10-01T11:40:00+07:00",
"data": {
"partner_lead_id": "SRC-TEST-0001",
"source_revision": 2,
"record_action": "update",
"created_at": "2026-10-01T09:15:00+07:00",
"updated_at": "2026-10-01T11:40:00+07:00",
"customer_name": "Contoh Pelanggan",
"phone": "+6280000000001",
"email": "contoh.pelanggan@contoh.example",
"model_interest": "Model B",
"purchase_timeframe": "1 bulan ke depan",
"test_drive_requested": "Y",
"enquiry_notes": "Ingin uji kendaraan akhir pekan ini.",
"campaign": "campaign-test",
"customer_province": "Jawa Barat",
"customer_city": "Kota Bandung",
"preferred_dealer_code": "D0001",
"source_channel": "chat",
"contact_consent": "yes",
"consent_reference": "CONSENT-TEST-0001",
"consent_time": "2026-10-01T09:14:40+07:00",
"notice_version": "NOTICE-TEST-1",
"consent_purpose": "sales_follow_up"
}
}

The withdrawal is revision 3. It carries identity and privacy request fields only, with its own source_revision and updated_at:

lead.withdraw
{
"type": "lead.withdraw",
"timestamp": "2026-10-04T15:00:00+07:00",
"data": {
"partner_lead_id": "SRC-TEST-0001",
"source_revision": 3,
"record_action": "withdraw",
"created_at": "2026-10-01T09:15:00+07:00",
"updated_at": "2026-10-04T15:00:00+07:00",
"request_type": "withdraw_consent",
"request_time": "2026-10-04T14:59:30+07:00",
"request_reference": "PRIV-TEST-0001"
}
}

The smallest valid lead.new carries only the required fields. It leaves out the revision and the time of the change, so MarsX uses revision 1 and created_at:

lead.new, required fields only
{
"type": "lead.new",
"timestamp": "2026-10-01T10:30:00+07:00",
"data": {
"partner_lead_id": "SRC-TEST-0004",
"record_action": "new",
"created_at": "2026-10-01T10:29:30+07:00",
"customer_name": "Contoh Pelanggan Tiga",
"phone": "+6280000000003",
"email": "contoh.pelanggan3@contoh.example",
"model_interest": "Model A",
"customer_city": "Kota Bandung",
"preferred_dealer_code": "D0001",
"test_drive_requested": "N",
"enquiry_notes": "Ingin meminta penawaran.",
"campaign": "campaign-test",
"source_channel": "website_form",
"contact_consent": "yes",
"consent_time": "2026-10-01T10:29:20+07:00"
}
}

The table names all 41 fields of the API: 6 identity fields, 32 fields for the lead and 3 privacy request fields. 36 of them are the columns of the Leads sheet of the shared sheet, with the same names. The other 5 are the optional extras of API version 1.5, which sit in the sheet’s extra columns. On the sheet, each name is the key in row 2, and the columns are in the order a person fills them. The order below follows the contract. In JSON, leave out a field that is empty: see Empty fields. For lead.update, a missing field means the field is now empty, because data holds the full current state and not a difference.

Every date-time carries an explicit offset from UTC, for example +07:00. MarsX stores the instant and shows it in WIB. The exact formats are in Field rules.

Key: R required. O optional. D may be left out on lead.new, where MarsX applies a default, and is required on the other events. no must be absent.

Section Field Format new or update withdraw or delete
A. Identity partner_lead_id Matches ^[A-Za-z0-9._-]{1,64}$. Never reused. For ad lead forms, the platform’s own lead ID R R
partner_customer_id Text. Your own customer ID O O
source_revision Whole number. Goes up with every change. On lead.new, a missing value means 1 D (R on update) R
record_action new, update, withdraw, delete R R
created_at ISO 8601 date-time with offset. When the customer made the enquiry R R
updated_at ISO 8601 date-time with offset. When this revision was made. On lead.new, a missing value means created_at D (R on update) R
B. Customer customer_name Text R no
phone Text starting +628 R no
email An email address (RFC 5322 mailbox), at most 254 characters, or not_provided when you have none R no
phone_verified true if the customer confirmed phone, for example by a one-time code from the ad platform, and false if not. Leave it out, or send null, when unknown. On the shared sheet, a blank cell means unknown O no
C. Interest model_interest An official model name: see Allowed values. Other text is accepted and stored as sent. not_specified is refused with 400 from version 1.4 R no
purchase_timeframe Bulan ini, 1 bulan ke depan, 3 bulan ke depan, Belum tahu O no
test_drive_requested Y, N or unknown R no
enquiry_notes Text, 1 to 500 characters, or none when there are no notes. The customer’s own request only R no
D. Location customer_province An official province name, one of 38: see Allowed values. Other text is accepted and stored as sent O no
customer_city Text. A real Kota or Kabupaten. No not-known value. One of the two location values: a real dealer code instead is enough R no
preferred_dealer_code One of the two location values: a real city instead is enough. A dealer code such as D0001, never the dealer name: see Allowed values. MarsX ignores a code that is not on the list and still accepts the lead, routing it to triage as if no code was sent. Send not_specified when the customer has no preferred dealer R no
E. Source source_channel One of 10 values: see Allowed values R no
campaign Text. Your campaign name or label, or not_specified when there is no ad (chat, walk-in, referral) R from version 1.4 no
utm_source The platform or site the lead came from. Send it in lower case, for example google, facebook, instagram, tiktok or youtube. MarsX stores it as sent O no
utm_medium The paid and organic split. Send one of these values, in lower case: paid_social (Meta or TikTok ads), cpc (paid search), video (YouTube), display, native for paid traffic, organic for unpaid search and social, or (none) when the visit had no referrer. Any other value is accepted and stored as sent O no
utm_campaign The utm_campaign of the ad link, copied exactly O no
ad_click_id The ad platform’s click ID. For attribution only, never the lead ID O no
ad_id, ad_creative_id The platform’s ad and creative IDs O no
session_id Your own session reference O no
F. Consent contact_consent The customer agreed to be contacted. The only accepted value is yes. Any other value, or none, gets 400 and nothing is stored R no
consent_time ISO 8601 date-time with offset. When the customer agreed to be contacted R no
consent_reference A reference to your record of the actual consent, if you have one. Not a yes or no value O no
notice_version The privacy notice wording the customer saw, if you have it O no
consent_purpose For example sales_follow_up. Recorded for each purpose O no
G. AI values ai_intent_label Your derived label. Never decides access or routing O no
ai_summary Short. Stored apart from customer facts O no
I. Optional extras customer_address Text, 1 to 500 characters. Customer data O no
customer_gps Text latitude, longitude, for example -6.9175, 107.6191. Latitude -90 to 90, longitude -180 to 180. Customer data O no
lead_score Whole number 0 to 100, a JSON number O no
creative_label Text, 1 to 100 characters, for example Test Drive or Promotion O no
staff_notes Text, 1 to 500 characters: your staff’s own notes about the lead. Customer data O no
H. Privacy request request_type withdraw_consent, erasure, restriction no R
request_time ISO 8601 date-time with offset no R
request_reference Matches ^[A-Za-z0-9._-]{1,64}$. Your reference for the request no R

What blocks a lead. A lead.new or lead.update that lacks partner_lead_id, record_action, created_at, customer_name, phone, email, model_interest, the location (customer_city or preferred_dealer_code, one of the pair from version 1.9), campaign, test_drive_requested, enquiry_notes, source_channel, contact_consent with the value yes, or consent_time gets 400 when you push it, and nothing is stored. On the shared sheet, MarsX writes Rejected or Set aside in the status column. A lead.update also needs source_revision and updated_at. A lead.withdraw or lead.delete needs its own source_revision and updated_at, and the privacy request fields. MarsX still applies a withdrawal or deletion whose revision is older than the stored one.

Defaults, for lead.new only. A missing source_revision means 1. A missing updated_at means the value of created_at. For a change, always send a higher source_revision and the time of the change in updated_at.

Required since 8 October 2026 (contract version 1.3). phone, email, model_interest, test_drive_requested and enquiry_notes are required on lead.new and lead.update, on every route. From version 1.9 the location is one requirement, satisfied by a real customer_city or an actual preferred_dealer_code: send one, and omit the other rather than sending a blank. model_interest must be a real model (from version 1.4, not_specified is refused). A preferred_dealer_code that is not on the list is still accepted: MarsX ignores it and routes the lead to triage. A lead that lacks one of these fields is refused with 400 and the pointer of the field.

From 8 October 2026 (contract version 1.4, a breaking change). campaign is now required, and model_interest no longer accepts not_specified. Every field above stays required. Where you genuinely lack the data for the five fields below, send the not-known value instead of inventing one. A field left out is still refused with 400 and its pointer.

Field Send MarsX stores Effect
email not_provided no email The lead shows no email
preferred_dealer_code not_specified as sent Routed as no preference, with no dealer_code_ignored warning. From version 1.9 it does not satisfy the location requirement on its own, so a real customer_city is needed beside it. An unknown real code keeps its warning
test_drive_requested unknown no value No test-drive request is implied
enquiry_notes none no notes No notes are shown
campaign not_specified no campaign No campaign is attributed. Use it when there is no ad (chat, walk-in, referral)

Values are exact, case-sensitive strings, each valid only for its own field: not_provided for email, not_specified for preferred_dealer_code and campaign, none for enquiry_notes and unknown for test_drive_requested. No not-known value exists for partner_lead_id, record_action, created_at, customer_name, phone, source_channel, contact_consent (yes), consent_time, model_interest (a real model) and customer_city (a real city), nor, on an update, for source_revision and updated_at. A dealer cannot act without a name, a phone number, consent, a model and a location, which from version 1.9 is a city or a dealer code. You host nothing to go live: the four read-only endpoints that MarsX can read are optional.

Optional extras (contract version 1.5, 9 October 2026). customer_address, customer_gps, lead_score, creative_label and staff_notes are optional on lead.new and lead.update. Provide them when you can, and leave one out when you do not know it: there is no not-known value. An invalid value is refused with 400 and its pointer, and they are refused on lead.withdraw and lead.delete. Address, GPS and notes are customer data, like the phone number and email. See Allowed values.

Optional, send them if you have them. consent_reference, notice_version and consent_purpose, and every other field marked O.

A 400 lists each problem with a pointer but not the rule, so use this table. Each missing required field is flagged with its own pointer.

Field Rule
partner_lead_id, request_reference 1 to 64 characters from A-Z a-z 0-9 . _ -
phone +628 then digits only, at most 16 characters in all (a + and 15 digits, the international maximum). Convert 0812... (drop the 0, add +62) and 62812... (add +). Any other number (landline, foreign) gets 400, and phone is required, so a lead with no Indonesian mobile number cannot be sent
email Required. name@domain.tld, at most 254 characters, or not_provided when you have no email
customer_name, model_interest Required. Real text, within the limits in Text length and characters. The not-known values are refused on these two
customer_city, preferred_dealer_code Required as one of the two location values from version 1.9: either one alone is enough, and both together are accepted. Real text, no not-known value for the city, and not_specified for the dealer counts only beside a real city
enquiry_notes Required. 1 to 500 characters, or none when there are no notes
purchase_timeframe Bulan ini, 1 bulan ke depan, 3 bulan ke depan or Belum tahu
test_drive_requested Required. Y, N or unknown
contact_consent yes only
phone_verified JSON true, false or null (unknown)
source_revision Whole number from 0 to 9007199254740991 (2^53-1)
Date-times ISO 8601 with a capital T and seconds, then a capital Z or an offset with a colon such as +07:00. Fractions of a second are accepted. +0700 or no offset gets 400

For the closed lists, see Allowed values.

From contract version 1.7.0 every text field has a maximum length, counted in characters: Unicode code points, for email and enquiry_notes too. A simple emoji such as 😀 counts as one. An emoji built from several code points, such as a family, a flag or one with a skin tone, counts as each of them. A value over its limit is refused as a whole, never cut. Nothing is stored and the 400 names the field.

Limit Fields
1000 characters ai_summary
500 characters enquiry_notes, customer_address, staff_notes
255 characters ad_click_id
254 characters email
200 characters customer_name, campaign, utm_source, utm_medium, utm_campaign, consent_reference, ai_intent_label
128 characters ad_id, ad_creative_id, session_id, partner_customer_id
120 characters model_interest, customer_city, customer_province
100 characters creative_label
64 characters preferred_dealer_code, notice_version, customer_gps, partner_lead_id, request_reference
16 characters phone

customer_gps is the text latitude, longitude, at most 64 characters. A value of exactly the limit is accepted.

No text may hold a control character: any character below U+0020 except tab (U+0009), line feed (U+000A) and carriage return (U+000D). NUL (U+0000) is one. A value with a control character gets 400 with the field’s pointer, the same as a value over its limit. A line break inside enquiry_notes, ai_summary or customer_address is fine.

A lead.withdraw or lead.delete is never refused for its partner_customer_id: the length and control character rules for that field apply to lead.new and lead.update only.

The limits are many times the longest values in use, so a real lead does not meet them. In the shared sheet, a row that breaks a limit is set aside as invalid_record and the other rows load. An AI agent gets the same error as a signed push, with the field’s pointer.

  • Send nothing for an optional field you have no value for. For the five fields in Not-known values, send the not-known value, never an invented one.
  • null gets 400 everywhere except phone_verified.
  • Never send "". A required field then counts as missing (400), and an optional one may be refused.
  • An unknown member inside data, or one not meant for the event (a contact field on lead.withdraw), gets 400 with the pointer /data, which does not name it.
  • Unknown members outside data are ignored.
  • In a lead.update, a field you leave out is read as empty.

Your own consent flow decides what counts as consent, and it must be explicit. Send contact_consent yes and a consent_time that records when it was given. A lead without consent is not sent: it gets 400 and nothing is stored. consent_reference, notice_version and consent_purpose are optional.

  • MarsX maintains the model, province, source channel, consent purpose and preferred dealer lists, and changes them by written notice with 30 days lead time.
  • A removal event carries no customer contact, interest or profile fields.
  • source_revision decides the order of events. Arrival order, webhook-id and webhook-timestamp do not. It must go up with every change to a lead and must never be reused for different content. With no version counter, keep one per lead: 1, then add 1 for every event, privacy events included.
  • KTP or family-card numbers, income, financing documents, full chat transcripts, or AI guesses about affordability or location.
  • Status, assignment, follow-up, test drives, sales or SPK numbers. Dealers record these in Concour.