Check against
Stays in your browser

Your JSON

What a partner would say

Paste some JSON, or load an example, and the results appear here as you type.

What the three kinds of result mean

  • Problem: breaks the specification. A partner that follows OCPI can reject the message.
  • Warning: allowed, but almost certainly a mistake, like a typo in a field name or a session that ends before it starts.
  • Note: worth knowing, nothing to fix, like an extra field that 2.3.0 allows.

Not sure what a correct object looks like? The OCPI Simulator plays every common exchange in both versions, and each object there has a Check your own link back to this page. For the mistakes that reach production, read OCPI integration pitfalls.

The rules come from OCPI 2.2.1 (documentation revision 2) and OCPI 2.3.0 (edition 2), published by the EVRoaming Foundation under CC BY-ND 4.0: field names, types, lengths, cardinality, allowed values and the formats the specification fixes. The explanations are this site's own. Passing this check does not certify an implementation; a partner can still have rules of its own.

Frequently asked questions

What does the OCPI Message Checker check?

Field names, required fields, types, maximum lengths, allowed enum values and the formats OCPI fixes, such as UTC timestamps, coordinates and times of day, for OCPI 2.2.1 and 2.3.0. It also flags likely mistakes the schema allows, like a session that ends before it starts, a field name with a typo, or an object that matches the other version better.

Does my JSON leave my browser?

No. The checker runs entirely in your browser; nothing you paste is sent anywhere or stored. You can use it with production data, though test data is always the safer habit.

Why is an unknown field only a note in 2.3.0?

OCPI 2.3.0 says a platform must not reject a message because it contains fields the specification does not define, so extra fields are allowed. OCPI 2.2.1 has no such rule, so there the checker warns. In both versions it points out names that look like a typo of a real field.

Can it check a whole API response?

Yes. Paste the full response, envelope and all: it checks status_code and timestamp, then checks every object in data. A list of objects works too, and for a PATCH body tick "Partial update" so missing fields are not reported.