Skip to main content

Annual Consumption Schema Reference

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 (AnnualConsumptionChangeRequestSchema)

FieldRequiredTypeFormat / Constraints
mpan_coreYesintegerExactly 13 digits, numeric
notification_efdYesstring(datetime)ISO 8601 with timezone; cannot be in the past for API requests
notification_expiryNostring(datetime) or nullISO 8601 with timezone; cannot be more than 12 months in the future
annual_consumptionYesstringPattern -?\d{1,9}\.\d{3}
additional_informationNostring or nullMax 2000 chars
allow_past_datesNobooleanOptional compatibility flag; not required for standard API submissions

Additional validation notes:

  • Unknown fields are explicitly rejected.
  • annual_consumption must include exactly 3 decimal places.

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