Skip to main content

Consumption Amendment Schema Reference

Headers and Parameters

FieldLocationRequiredTypeFormat / Constraints
X-API-KEYHeaderYesstringUUID format
X-IDEMPOTENCY-KEYHeaderYesstringNon-empty string
X-TEST-MODEHeaderNostringOptional test flag
mpidPathYesstringSupplier MPID

Request Schema

FieldRequiredTypeFormat / Constraints
mpan_coreYesinteger13 digits; range 1000000000000 to 9999999999999
supplier_referenceNostring or nullMax 50 chars
period_start_dateYesstring(datetime)ISO 8601 datetime
period_end_dateYesstring(datetime)ISO 8601 datetime; must be later than period_start_date
measurement_quantity_idYesstringOne of AI, AE, RI, RE
gross_revised_consumptionYesdecimal>= 0; max 14 digits total, max 3 decimal places, max 11 digits before decimal
reason_codeYesstring(enum)One of A, E, M, R, S, T, X

Response Schema

Used in GET /requests/v1/{mpid} when request_type=consumption-amendment.

FieldRequiredTypeFormat / Constraints
supplier_referenceNostring or nullSupplier reference
period_start_dateYesstring(datetime)ISO 8601 datetime
period_end_dateYesstring(datetime)ISO 8601 datetime
measurement_quantity_idYesstringQuantity code
gross_revised_consumptionYesdecimalSerialized as string/decimal value
reason_codeYesstring(enum)Reason code

When show_messages=true on the requests search endpoint, the response wrapper may also include:

  • outbound_if_027
  • inbound_if_028

Process Response Schema

Used by POST /consumption-amendment/v1/{mpid}.

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