Skip to content

Allowed values

Send each value exactly as shown in the first column, with the same spelling and capital letters. MarsX holds these lists as of 6 October 2026. It changes them by written notice with 30 days lead time, not by contract version.

The API uses no numeric IDs for dealers, provinces or cities. Send these values:

Field What to send Lookup
preferred_dealer_code The MarsX dealer code, for example D0001, or not_specified when the customer has no preferred dealer. Required on lead.new and lead.update as one of the location pair: from version 1.9 either this or customer_city is required The dealer table in your onboarding pack (allowed-values.md), with each dealer’s name, city or regency, province and time zone
customer_province The official province name as text, for example Jawa Barat The 38 names under customer_province below
customer_city The city or regency name as text, for example Kota Bandung. A real city: no not-known value. Required on lead.new and lead.update as one of the two location values: an actual dealer code instead is enough (version 1.9) None. It is free text, and there is no city table or city ID
campaign Your campaign name or label, or not_specified when there is no ad. Required on lead.new and lead.update from version 1.4 None. It is free text
model_interest The official model name as text. not_specified is refused from version 1.4. Required on lead.new and lead.update The names in your onboarding pack, see model_interest

If your system holds its own IDs, map them to these values before you send. MarsX stores what you send and does not translate IDs.

What happens to a value that is not on a list

Section titled “What happens to a value that is not on a list”
Field If the value is not on the list
source_channel 400, pointer /data/source_channel. Nothing is stored. Send it again with one of the 10 values
consent_purpose, purchase_timeframe, test_drive_requested (Y, N or unknown) 400 with the pointer of the field. Nothing is stored
model_interest Accepted and stored as sent. MarsX does not map or correct it. not_specified is refused with 400 from version 1.4. The field itself is required
customer_province Accepted and stored as sent
customer_city Free text. Accepted as sent. The field is required only as one of the two location values, so a real dealer code instead is enough. not_specified gets 400, and an empty or blank value gets 400
preferred_dealer_code The lead is accepted. MarsX ignores the code, routes the lead to its own triage queue, and the status read shows warnings with dealer_code_ignored. The same happens to a code of an outlet that takes no car sales lead. A missing or empty preferred_dealer_code gets 400 unless a real customer_city is sent. An AI agent connected through the MCP route can look up a code with the find_dealer tool. not_specified is the exception: the lead is routed as if no preference was given, with no warning

A 400 lists the pointer of each problem field. It does not list the allowed values, so keep this page open while you map your data.

Pick the one value that describes how the lead reached you. The list is closed: there are exactly 10 values.

Code Use it for
meta_lead_form Facebook or Instagram instant form
tiktok_lead_form TikTok instant form
google_lead_form Google Ads lead form asset (Search, YouTube, Discover)
other_ad_lead_form Lead form inside another ad network (programmatic native, display, partner network)
chat Chat widget or AI assistant on the website
website_form A visitor fills in a form on the website after an ad or another link
marketplace A visitor taps “Minta penawaran” on a listing page of an online marketplace
whatsapp WhatsApp conversation
instagram_dm Instagram direct message
other Offline or direct: event booth, phone call, walk-in, referral, or anything not above

Optional. Any other value gets 400.

Code Meaning
sales_follow_up Sales follow-up
marketing Marketing messages

Every field below stays required, except the location: from version 1.9 customer_city and preferred_dealer_code are one requirement met by either. Where you genuinely lack the data, send the not-known value instead of inventing one. A field left out is still refused with 400 and its pointer. 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. Version 1.4, 8 October 2026.

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)

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.

Five optional fields, from contract version 1.5 (9 October 2026). Provide them when you can, and leave them out when you cannot: there is no not-known value. An invalid value is refused with 400 and its pointer.

Field Sheet column Rule
customer_address Address Text, 1 to 500 characters
customer_gps GPS (latitude, longitude) Text latitude, longitude, for example -6.9175, 107.6191. Latitude -90 to 90, longitude -180 to 180
lead_score Lead score (0 to 100) Whole number 0 to 100. A JSON number on the API and in MCP
creative_label Creative Text, 1 to 100 characters, for example Test Drive or Promotion
staff_notes Notes Text, 1 to 500 characters: your staff’s own notes about the lead

Address, GPS and notes are customer data, like the phone number and email. They are refused on lead.withdraw and lead.delete.

Field Values
contact_consent yes only
purchase_timeframe Bulan ini (this month), 1 bulan ke depan (within the next month), 3 bulan ke depan (within the next 3 months), Belum tahu (not decided yet)
test_drive_requested Y, N or unknown. Required on lead.new and lead.update. unknown is the not-known value
phone_verified true, false or null (JSON). null or leaving it out means unknown
request_type withdraw_consent or restriction on lead.withdraw. erasure on lead.delete

Send the official name, spelled as below. There are 38. A name that is not on the list is accepted and stored as sent.

Official name Official name
Aceh Kalimantan Barat
Sumatera Utara Kalimantan Tengah
Sumatera Barat Kalimantan Selatan
Riau Kalimantan Timur
Kepulauan Riau Kalimantan Utara
Jambi Sulawesi Utara
Sumatera Selatan Gorontalo
Kepulauan Bangka Belitung Sulawesi Tengah
Bengkulu Sulawesi Barat
Lampung Sulawesi Selatan
DKI Jakarta Sulawesi Tenggara
Jawa Barat Maluku
Banten Maluku Utara
Jawa Tengah Papua
DI Yogyakarta Papua Barat
Jawa Timur Papua Selatan
Bali Papua Tengah
Nusa Tenggara Barat Papua Pegunungan
Nusa Tenggara Timur Papua Barat Daya

The list has 14 official model names. From version 1.4 not_specified is no longer accepted, so send the model the customer asked about. MarsX stores the text as sent. It never maps or corrects it, so a misspelt name is stored misspelt and is not matched to a model.

The exact names are in your onboarding pack (allowed-values.md). The examples on this site use Model A.

Required. Send the code, such as D0001, not the dealer name. A code is D plus four digits.

  • The pack holds 177 active dealers that take a car sales lead. The numbers are not continuous: an outlet that takes no car sales lead has no code on the list.
  • A code is case-sensitive. A code that is not on the list is ignored. MarsX still accepts the lead and routes it to MarsX triage, and the status read shows a dealer_code_ignored warning with the reason unknown or not_active.
  • Send not_specified when you do not know the dealer. The lead goes to city routing or MarsX triage, with no warning. Never leave the field out: it is required.
  • The full list, with dealer names, city, province and time zone, is in your onboarding pack.
  • source_channel is one of the 10 codes above, in lower case.
  • contact_consent is yes, and consent_time records when it was given.
  • consent_purpose, if you send it, is sales_follow_up or marketing.
  • purchase_timeframe and test_drive_requested, if you send them, match the table above exactly.
  • model_interest is an official name, never not_specified. A name you invented is stored as sent and never matched.
  • customer_province is an official name, spelled as in the table.
  • preferred_dealer_code is a code such as D0001, never a dealer name.
  • You left out every field you have no value for. Never send null (except phone_verified) or "". See Lead fields.