Skip to main content

Metering Service Schema Reference

This page summarizes the request and response contract for the Metering Service API.

Headers and Parameters

FieldLocationRequiredTypeFormat / Constraints
X-API-KEYHeaderYesstringUUID format
X-IDEMPOTENCY-KEYHeaderYesstringNon-empty string
X-TEST-MODEHeaderNostringOptional; "true" enables test mode
mpidPathYesstringSupplier MPID

Request Schema (MSAppointmentSchemaRequest)

FieldRequiredTypeFormat / Constraints
mpan_coreYesintegerExactly 13 digits, numeric
metering_service_mpidYesstringExactly 4 alphabetic characters
effective_fromYesstring(datetime)ISO 8601 with timezone; must be midnight; cannot be 28 days or more in the future
contract_referenceNostring or nullMax 50 chars; must be alphanumeric
appointment_scenarioYesstring(enum)One of COS, CSP, USP, SEG, MCA, MCS

Additional validation notes:

  • Unknown fields are explicitly rejected.

Response Schema (SupplierProcessResponseSchema)

FieldRequiredTypeFormat / Constraints
request_idYesstringUUID
request_typeYesstringProcess type name
request_statusYesstring(enum)Pending, Success, Failed
descriptionNostring or nullOptional process description
created_atYesstring(datetime)ISO 8601 datetime
last_updated_atYesstring(datetime)ISO 8601 datetime
mpan_coreYesintegerMPAN core