Skip to main content

Contact Details Schema Reference

Headers and Parameters

FieldLocationRequiredTypeFormat / Constraints
X-API-KEYHeaderYesstringUUID format
X-IDEMPOTENCY-KEYHeader (POST)YesstringNon-empty string
X-TEST-MODEHeader (POST)Nostringtrue enables test mode
mpidPathYesstringSupplier MPID
mpan_idQuery (GET)Yesinteger13-digit MPAN core

Request Schema

FieldRequiredTypeFormat / Constraints
mpan_coreYesintegerExactly 13 digits, numeric
customersYesarrayMust be a list of customer records
customers[].customer_nameYesstringMax 20 chars
customers[].additional_informationNostring or nullMax 200 chars
customers[].customer_passwordNostring or nullMax 10 chars
customers[].customer_password_efdNostring (YYYY-MM-DD) or datetime or nullString form must match YYYY-MM-DD
customers[].special_accessNostring or nullMax 40 chars
customers[].max_power_reqNointeger or null>= 0, max 6 digits
customers[].delete_address_dataNoboolean or nullBoolean
customers[].mailing_address_1 .. customers[].mailing_address_9Nostring or nullMax 40 chars each
customers[].mailing_address_postcodeNostring or nullMax 10 chars
customers[].contactsYesarrayMust be a list
customers[].contacts[].contact_nameYesstringMax 30 chars
customers[].contacts[].preferred_contact_methodNostring(enum) or nullOne of E, H, L, T, W
customers[].contacts[].telephonesYesarrayMust be present and non-empty
customers[].contacts[].telephones[].telephone_numberYesstringUK phone regex `^(?:0
customers[].contacts[].telephones[].fax_numberNostring or nullSame phone regex
customers[].contacts[].emailsYesarrayMust be present; may be empty
customers[].contacts[].emails[].email_addressNostring or nullValid email format, max 100 chars

Additional validation:

  • Extra/unknown fields are rejected at every nested level.
  • customers, contacts, telephones, and emails must be JSON lists when supplied.

Response Schema

FieldRequiredTypeFormat / Constraints
mpan_coreYesintegerMPAN core
settlement_date_efdYesstring(datetime)ISO 8601 datetime
customersYesarrayList of customer records
customers[].customer_nameYesstringMax 20 chars
customers[].additional_informationNostring or nullMax 200 chars
customers[].customer_passwordNostring or nullMax 10 chars
customers[].customer_password_efdNostring(datetime) or nullISO 8601 datetime
customers[].special_accessNostring or nullMax 40 chars
customers[].max_power_reqNointeger or nullWhole number
customers[].delete_address_dataNoboolean or nullBoolean
customers[].mailing_address_1 .. customers[].mailing_address_9Nostring or nullMax 40 chars each
customers[].mailing_address_postcodeNostring or nullMax 10 chars
customers[].contacts[]YesarrayList of contact records
customers[].contacts[].contact_nameYesstringMax 30 chars
customers[].contacts[].preferred_contact_methodNostring(enum) or nullOne of E, H, L, T, W
customers[].contacts[].telephones[].telephone_numberYesstringMax 14 chars in response
customers[].contacts[].telephones[].fax_numberNostring or nullMax 14 chars
customers[].contacts[].emails[].email_addressYesstring(email)Valid email

Process Response Schema

Used by POST /contact-details/v1/{mpid}.

FieldRequiredTypeFormat / Constraints
request_idYesstringUUID
request_typeYesstringProcess type name
request_statusYesstring(enum)Pending, Success, Failed
initiated_byNostring or nullPresent on some process-search responses
descriptionNostring or nullProcess type description
created_atYesstring(datetime)ISO 8601 datetime
last_updated_atYesstring(datetime)ISO 8601 datetime
mpan_coreYesintegerMPAN core