# Change a connection's address Source: https://docs.chargerdojo.com/api-reference/connections/change-a-connections-address /openapi/public-api.json put /connections/{id}/address Move an owned connection to a new base URL when the partner host changes, keeping its tokens and history, then re-read their endpoints at the new address. # Create a partner endpoint Source: https://docs.chargerdojo.com/api-reference/connections/create-a-partner-endpoint /openapi/public-api.json post /connections Register a partner's OCPI endpoint as a connection you own, setting each side's role, the OCPI version and token. Stays pending until you run the handshake. # List owned connections Source: https://docs.chargerdojo.com/api-reference/connections/list-owned-connections /openapi/public-api.json get /connections List every partner endpoint owned by the API key, with each endpoint's roles, OCPI version and current registration status. # Change test or production Source: https://docs.chargerdojo.com/api-reference/connections/mark-an-endpoint-as-a-test-system-or-production /openapi/public-api.json put /connections/{id}/environment Mark an owned endpoint test or production. Production runs send GET requests only; journeys and manual writes are refused. Changes are audited. # Read one owned connection Source: https://docs.chargerdojo.com/api-reference/connections/read-one-owned-connection /openapi/public-api.json get /connections/{id} Read a single partner endpoint you own by id, including its roles, OCPI version, registration status and the last error if the handshake failed. # Read a connection schedule Source: https://docs.chargerdojo.com/api-reference/connections/read-the-run-schedule-of-an-owned-connection /openapi/public-api.json get /connections/{id}/schedule Read the recurring run set on a partner endpoint you own: its cadence, whether it is paused and why, when it runs next and what its last scheduled run found. # Run the credentials handshake Source: https://docs.chargerdojo.com/api-reference/connections/run-the-ocpi-credentials-handshake-for-an-owned-connection /openapi/public-api.json post /connections/{id}/register Perform the OCPI credentials handshake with a connection you own, exchanging registration tokens so both sides can make authenticated calls once registered. # Apply a server-offered recovery decision Source: https://docs.chargerdojo.com/api-reference/journeys/apply-a-server-offered-recovery-decision /openapi/public-api.json post /testing/journey-runs/{id}/recovery Apply one of the recovery decisions the server offered for an interrupted run. Only server-computed options are accepted. # Browse the journey catalogue Source: https://docs.chargerdojo.com/api-reference/journeys/browse-the-journey-catalogue-for-a-target /openapi/public-api.json get /testing/journeys List the charging journey templates, packs and custom journeys available for a target, with the OCPI versions each one supports. # Cancel a journey run Source: https://docs.chargerdojo.com/api-reference/journeys/cancel-a-journey-run-you-own /openapi/public-api.json post /testing/journey-runs/{id}/cancel Ask a running journey to stop at the next safe point rather than mid-exchange. Cancelling never invents a verdict about the target, and keeps what it graded. # Page journey run events Source: https://docs.chargerdojo.com/api-reference/journeys/page-a-journey-runs-events-by-sequence /openapi/public-api.json get /testing/journey-runs/{id}/events Page through the events of a journey run you own by sequence number, replaying every exchange and assertion it recorded, in the order they happened. # Preview a journey plan Source: https://docs.chargerdojo.com/api-reference/journeys/preview-a-journey-plan-before-running-it /openapi/public-api.json post /testing/journeys/preview Compile a journey into a runnable plan and save it without running it, so you can read the stages and the preflight before anything reaches your partner. # Read journey run status Source: https://docs.chargerdojo.com/api-reference/journeys/read-a-journey-runs-status-and-recovery-options /openapi/public-api.json get /testing/journey-runs/{id} Read the stored status of a journey run you own, including how complete our evidence is and any recovery options the server is offering you now. # Replay then follow run events over SSE Source: https://docs.chargerdojo.com/api-reference/journeys/replay-then-follow-run-events-over-sse /openapi/public-api.json get /testing/journey-runs/{id}/stream Follow a journey run live over server-sent events, streaming each stage as it happens. Resume after a dropped connection with the Last-Event-ID header. # Start a journey run Source: https://docs.chargerdojo.com/api-reference/journeys/start-a-journey-run-from-a-previewed-plan-idempotent /openapi/public-api.json post /testing/journey-runs Start a journey run from a previewed plan. Pass an Idempotency-Key so a retried request returns the original run instead of starting a second one. # Compare a run with the last one Source: https://docs.chargerdojo.com/api-reference/reports/compare-an-owned-run-with-its-previous-comparable-run /openapi/public-api.json get /testing/runs/{id}/regression-diff Compare a conformance run you own with the previous comparable run against the same endpoint, version and module: which checks newly fail and which recovered. # Delete a report you own Source: https://docs.chargerdojo.com/api-reference/reports/delete-a-report-you-own /openapi/public-api.json delete /testing/runs/{id} Delete a run report you own so it leaves your list, and revoke any public share link to it. We keep the record internally for your usage history. # Share a report Source: https://docs.chargerdojo.com/api-reference/reports/issue-a-public-share-token-for-an-owned-report /openapi/public-api.json post /testing/runs/{id}/share Issue a public share token for a report you own and get a link a partner can open without an account. A report about your own endpoint needs a current plan. # List run reports Source: https://docs.chargerdojo.com/api-reference/reports/list-owned-run-reports-conformance-and-journeys /openapi/public-api.json get /testing/runs List the graded reports for every run you own, both conformance runs and charging journeys, with each run's status, OCPI version and pass or fail summary. # Read a run report Source: https://docs.chargerdojo.com/api-reference/reports/read-one-owned-report-optionally-long-polling-an-active-run /openapi/public-api.json get /testing/runs/{id} Read a single run report you own by id. Add the wait query parameter to long-poll an active run until it changes, awaiting a verdict without tight polling. # Revoke a report share token Source: https://docs.chargerdojo.com/api-reference/reports/revoke-the-public-share-token-of-an-owned-report /openapi/public-api.json delete /testing/runs/{id}/share Revoke the public share link for a report you own. The existing token stops working immediately and the report is private again. # List runnable conformance suites Source: https://docs.chargerdojo.com/api-reference/testing/list-runnable-conformance-suites /openapi/public-api.json get /testing/suites List the conformance test suites you can run against a connection, each with its OCPI version and a short description of what it checks. # Send an OCPI command Source: https://docs.chargerdojo.com/api-reference/testing/send-one-bounded-ocpi-command-through-an-owned-registered-connection /openapi/public-api.json post /testing/command Send a single OCPI command through a registered connection you own and read back the raw HTTP status, OCPI status code and response body. # Start a conformance run Source: https://docs.chargerdojo.com/api-reference/testing/start-a-conformance-run-against-an-owned-connection /openapi/public-api.json post /testing/runs Queue a conformance run against a registered connection you own, optionally scoped to one suite or module. Returns the run id to poll for the graded report. # Read plan limits and usage Source: https://docs.chargerdojo.com/api-reference/usage/read-the-key-owners-plan-limits-and-current-usage /openapi/public-api.json get /usage Read the API key owner's current plan, along with active connection counts and run usage against the plan's limits, so you can track quota before it bites. # API overview Source: https://docs.chargerdojo.com/api/index Automate ChargerDojo with an API key: partner endpoints, conformance runs, charging journeys, and the graded reports and usage they produce. ChargerDojo has one public API. It is the HTTP surface you automate with an **API key** against the deployed service: ```text theme={null} https://chargerdojo.com ``` All operations live under `/api/v1` and authenticate with a Bearer API key that starts with `cdojo_`. There is no other supported base URL and no environment selector. Operation reference: [`GET /connections`](/api-reference/connections/list-owned-connections). ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/connections" \ -H "Authorization: Bearer $DOJO_KEY" ``` ## What you can automate | Area | Operations | | - | - | | Connections | Create a partner endpoint, register it (the live OCPI credentials handshake), list and read your endpoints. | | Suites | List the conformance suites available to run. | | Conformance runs | Start a run, wait for or poll it, list runs, read the full report, delete a run, mint a share link. | | Manual command | Send one bounded OCPI request through a registered connection and get the exact exchange back. | | Charging journeys | Browse the catalogue, preview a plan, start a run idempotently, stream its events, cancel it, and resolve a recovery decision. | | Usage | Read your plan tier, current usage and ceilings. | Only the operations in the API reference section of this site are public API. Everything else the application does (the interactive simulator, entity editing, account and key management) is browser functionality, not part of this contract. ## Operation reference | Method and path | Operation | | - | - | | `POST /connections` | [Create a partner endpoint](/api-reference/connections/create-a-partner-endpoint) | | `GET /connections` | [List owned connections](/api-reference/connections/list-owned-connections) | | `POST /connections/{id}/register` | [Run the OCPI credentials handshake for an owned connection](/api-reference/connections/run-the-ocpi-credentials-handshake-for-an-owned-connection) | | `PUT /connections/{id}/environment` | [Change test or production](/api-reference/connections/mark-an-endpoint-as-a-test-system-or-production) | | `PUT /connections/{id}/address` | [Change a connection's address](/api-reference/connections/change-a-connections-address) | | `GET /connections/{id}` | [Read one owned connection](/api-reference/connections/read-one-owned-connection) | | `GET /connections/{id}/schedule` | [Read the run schedule of an owned connection](/api-reference/connections/read-the-run-schedule-of-an-owned-connection) | | `GET /testing/suites` | [List runnable conformance suites](/api-reference/testing/list-runnable-conformance-suites) | | `POST /testing/runs` | [Start a conformance run against an owned connection](/api-reference/testing/start-a-conformance-run-against-an-owned-connection) | | `GET /testing/runs` | [List owned run reports (conformance and journeys)](/api-reference/reports/list-owned-run-reports-conformance-and-journeys) | | `GET /testing/runs/{id}` | [Read one owned report, optionally long-polling an active run](/api-reference/reports/read-one-owned-report-optionally-long-polling-an-active-run) | | `DELETE /testing/runs/{id}` | [Delete a report you own](/api-reference/reports/delete-a-report-you-own) | | `GET /testing/runs/{id}/regression-diff` | [Compare an owned run with its previous comparable run](/api-reference/reports/compare-an-owned-run-with-its-previous-comparable-run) | | `DELETE /testing/runs/{id}/share` | [Revoke the public share token of an owned report](/api-reference/reports/revoke-the-public-share-token-of-an-owned-report) | | `POST /testing/runs/{id}/share` | [Issue a public share token for an owned report](/api-reference/reports/issue-a-public-share-token-for-an-owned-report) | | `POST /testing/command` | [Send one bounded OCPI command through an owned registered connection](/api-reference/testing/send-one-bounded-ocpi-command-through-an-owned-registered-connection) | | `GET /usage` | [Read the key owner's plan limits and current usage](/api-reference/usage/read-the-key-owners-plan-limits-and-current-usage) | | `GET /testing/journeys` | [Browse the journey catalogue for a target](/api-reference/journeys/browse-the-journey-catalogue-for-a-target) | | `POST /testing/journeys/preview` | [Preview a journey plan before running it](/api-reference/journeys/preview-a-journey-plan-before-running-it) | | `POST /testing/journey-runs` | [Start a journey run from a previewed plan (idempotent)](/api-reference/journeys/start-a-journey-run-from-a-previewed-plan-idempotent) | | `GET /testing/journey-runs/{id}` | [Read a journey run's status and recovery options](/api-reference/journeys/read-a-journey-runs-status-and-recovery-options) | | `POST /testing/journey-runs/{id}/cancel` | [Cancel a journey run you own](/api-reference/journeys/cancel-a-journey-run-you-own) | | `POST /testing/journey-runs/{id}/recovery` | [Apply a server-offered recovery decision](/api-reference/journeys/apply-a-server-offered-recovery-decision) | | `GET /testing/journey-runs/{id}/events` | [Page a journey run's events by sequence](/api-reference/journeys/page-a-journey-runs-events-by-sequence) | | `GET /testing/journey-runs/{id}/stream` | [Replay then follow run events over SSE](/api-reference/journeys/replay-then-follow-run-events-over-sse) | Each operation page includes its request, response and error statuses. API-key creation and inbound-token revocation remain app actions; they are outside this public API. ## Authentication Every request sends the key in the `Authorization` header: ```text theme={null} Authorization: Bearer $DOJO_KEY ``` API keys are created and revoked in the app, in **Settings, then Credentials**, and require a paid plan. There is no API for managing keys: a key cannot mint, list or revoke other keys. See [Create an API key](/guide/create-an-api-key). ## Response envelope Every response is JSON, except the journey event stream, which is `text/event-stream`. Successes wrap their payload: ```json theme={null} { "success": true, "data": {} } ``` Errors carry an HTTP 4xx or 5xx status and a message: ```json theme={null} { "success": false, "message": "Report not found" } ``` Two statuses deserve a special mention because CI scripts get them wrong: * A `202` means the work was accepted and is **still going**. It is not a success verdict and not a failure. Poll or wait for the result instead of gating on it. * A `503` on a charging journey start means **our runner is unavailable**. It is a statement about our service, never a verdict about your partner's implementation. The full status-code table is in [Troubleshooting](/guide/troubleshooting). ## Limits and usage Plans set ceilings on runs per minute and in flight, and on the connections every self-serve tier buys. Report retention differs between free and paid. Each organisation shares a cap of 10 active keys across its members, on every plan. Read your own numbers instead of hardcoding them: Operation reference: [`GET /usage`](/api-reference/usage/read-the-key-owners-plan-limits-and-current-usage). ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/usage" \ -H "Authorization: Bearer $DOJO_KEY" | jq '.data' ``` The response reports your tier, active connections against their cap, active keys against their cap, in-flight and per-minute run ceilings, and your report retention window. `connections.cap` comes back `null` on a plan priced on a quote, where connections are fair use rather than a rung you are sold. Read that absence as no published ceiling, never as zero. A run over its rate or in-flight ceiling returns `429` with a `Retry-After` header. A resource cap never does, because waiting will not help. The connection cap answers `402` where your plan publishes a rung, carrying `limit` with what you hold and what the plan allows, so free a slot or move up. The active-key cap answers `409`, and so does the connection cap on a plan priced on a quote, where there is no rung to move to. An in-flight charging journey holds one run slot until it reaches a terminal state, and a run waiting on a recovery decision keeps holding its slot until you decide. ## Where to go next > [card] [Create an API key](/guide/create-an-api-key) > > Sign in, create the key in Settings, store it once. > [card] [Quickstart](/guide/quickstart) > > A complete conformance run from the command line. > [card] [Connect a partner](/guide/connect-a-partner) > > Register a real partner endpoint and run against it. > [card] [Run a charging journey](/guide/run-a-charging-journey) > > Drive a full charging story and watch it live. # Changelog Source: https://docs.chargerdojo.com/changelog See changes to ChargerDojo's OCPI verdicts, the rules behind each correction and which endpoint tests to rerun after a grading change. A report keeps the verdict it was given when it ran. When a rule's grading changes, the entry below names it, so you know which old reports to run again. **November 13, 2026** Payments and Token authorization verdicts On OCPI 2.2.1, Financial Advice Confirmation reads now fail `SUCCESS` or `PARTIAL_SUCCESS` captures whose invoice data (`eft_data`) is missing, `null` or empty. Empty `eft_data` lists also fail on `FAILED` captures. On OCPI 2.3.0, a `FAILED` capture now passes when `eft_data` is missing or `null`. A present empty list still fails. Token authorization checks on both versions now grade the complete AuthorizationInfo response, including required Token fields and nested objects. An incomplete or malformed successful response now fails. Rerun Financial Advice Confirmation reads and Token authorization checks on these two versions to update your reports. MCP 1.11.0 also adds `authorization-info` to `chargerdojo_validate_payload`. Coding agents can validate AuthorizationInfo objects against the OCPI 2.2.1 and 2.3.0 response schemas, including required Token fields and nested objects. **November 10, 2026** OCPI verdict corrections Booking on OCPI 2.3.0 and Terminal and Financial Advice Confirmation reads on 2.2.1 Direct Payment and 2.3.0 Payments now leave permitted refusals not tested. Their response definitions constrain successful data without requiring acceptance. The 2.3.0 object methods that say a client "might GET" retain their own interface scope. A successful object response still fails when its required data is absent, malformed or belongs to another object. Calendar timestamp propagation still grades an observed parent BookingLocation. Booking pagination parameters must be supported after the same endpoint served the request without them, under "The following table lists all the parameters that have to be supported but might be omitted by a client request." Refusing both requests proves no parameter violation. Credentials POST checks on every implemented OCPI version now observe token-field presence in a refusal without printing its value or treating diagnostic data as a new credential. The POST token-generation duty applies "If successful"; the independent registered-client 405 duty still fails an acceptance. OCPI 2.3.0 Terminal activation and deactivation now observe acceptance or refusal. Their methods define no binding acceptance or Terminal echo duty. If activation supplies no immediate terminal identity, later writes are not tested and never borrow a terminal from the partner list. OCPI 2.1.1 Token authorization now leaves a permitted refusal not tested and still requires a complete AuthorizationInfo on success. The legacy method defines the success response and recommends the insufficient-information answer with SHOULD. From 2.2 the known-Token AuthorizationInfo SHALL remains binding and still fails a refusal. On OCPI 2.2.1 and 2.3.0, collection POST on the Tokens Sender is now an observation. The Receiver's `n/a` row describes another URL. A transport refusal leaves the collection operation not tested; malformed present envelopes still fail. On the same sandbox responses this changes one passed check to not tested, without a new failure or warning. Historical reports keep their original verdicts and evidence. Rerun to use these corrections. Simulator receivers now accept blank optional text when its row names no format, code or minimum. Explicit formats and the 2.3.0 FAC message `[1..255]` bound remain enforced. Successful GETs no longer fail solely because HTTP 201 differs from an expected 200. HTTP errors on advertised Sender collections and defined command endpoints still fail on OCPI 2.2, 2.2.1 and 2.3.0 and warn on 2.1.1, as do reads of objects established by accepted writes or listed by the same endpoint and role in the same suite. A listed or echoed CDR id does not establish a constructed by-id GET URL; the Receiver URL comes from the POST response. On 2.1.1 an empty HTTP error response still fails the response format for established resources, required list reads and defined commands. The advisory HTTP status does not waive that envelope requirement. Payments list reads on 2.3.0 now require the Sender interface and are not applicable to a Receiver-only partner. Exact authentication, registered Credentials and unknown-Token status duties retain their own clauses. Reports observe response Content-Type diagnostics and repeated list identities without turning request-header rules or object identity definitions into extra response requirements. A Versions list may omit the selected version; non-array `data` leaves that selected-version check not tested while schema and business validators still grade the list. Its required fields and nonempty-list contract still apply. Credentials role `party_id` now accepts printable punctuation within CiString(3), and the undeclared 2.1.1 Credentials `roles` extension is ungraded. The 2.3.0 Payments scenario reads now validate the full served Terminal and Financial Advice Confirmation, including the confirmation's version-specific Price. **November 6, 2026** Only an OCPI clause can fail your endpoint A conformance check now fails your endpoint only for breaking a duty an OCPI version states. Where a check rested on our own reading of a silent or ambiguous chapter, a failing answer now passes with an observation: the report, the API and the download show the check as passed, with the HTTP status and `status_code` your endpoint sent and the reason no clause requires the rule. A compliant answer still passes as before. A later check that builds on a push your endpoint refused, such as a read-back of it, now shows as not tested, because the push stored nothing for it to read. If an old report failed your endpoint on one of the cases below, run it again. * A valid push your endpoint refused or answered with a server error: Locations, Tariffs, Tokens, Sessions and CDRs on every version, Hub Client Info from OCPI 2.2, Booking on 2.3.0, and the Terminal PUT and PATCH and Financial Advice Confirmation POST of Direct Payment on 2.2.1 and Payments on 2.3.0. From OCPI 2.2 an HTTP error to an object the run already stored still fails: "To such a request, an HTTP error status code MUST NOT be returned." * A Receiver read-back your endpoint refused or left unserved, for Locations, Tariffs, Sessions and Tokens. The chapters say a CPO "might" send these reads. * A Sessions list request without `date_from` answered with neither the list nor a refusal on the OCPI layer. * A verb an interface marks `n/a` answered as a success, on every OCPI version. * An HTTP 4xx or 5xx carrying a success `status_code`. No version requires the two to agree. * A second POST of a CDR your endpoint accepted. * A malformed Credentials registration from an already registered client answered with a server error on HTTP 200. On OCPI 2.2 and 2.2.1 an HTTP error other than 405 still fails, and accepting it fails on every version: "This method MUST return a `HTTP status code 405: method not allowed` if the client has already been registered before." * A command walkthrough step whose result was not `ACCEPTED`. The CommandResponse itself is still graded. Some pushes keep a duty and still fail a refusal. On OCPI 2.2.1 and 2.3.0, a Session PUT to a Session your endpoint accepted earlier in the run owes its acceptance, because "The newly received Session object SHALL replace the existing object.", and so does a PATCH that adds charging periods to it. The real-time authorize keeps its own duty from OCPI 2.2: a known Token is still owed its AuthorizationInfo. Pagination headers are graded only on a list your endpoint served, on every version. A refused list GET without `X-Total-Count` and `X-Limit` is no longer failed for them. A served list still owes both, including an empty one sent as `[]`, `null` or no `data`: "HTTP headers that have to be added to any paginated GET response." Reads of a Sender's lists and objects are graded on what your endpoint served, because no OCPI version requires a Sender to answer a GET with success. A refusal of a Locations, Sessions, CDRs, Tariffs or Tokens GET on every version, or of a Hub Client Info GET from OCPI 2.2, now shows as not tested when it carries a client-error `status_code` on HTTP 200, and so do the Token list steps of the walkthroughs. On OCPI 2.1.1, which only advises against an HTTP error there, the same refusal on an HTTP 4xx or 5xx is not tested either. A served answer is still graded. Every object in a list must be valid, and a read of one object must return it. An empty list sent as `[]`, `null` or no `data` is a valid answer, and journeys no longer report it. On OCPI 2.3.0, the Tariff and Token read-backs that compare the stored object with the one pushed now pass with an observation when your endpoint kept a different valid object; its fields are still graded. From OCPI 2.2, a Locations, Sessions, CDRs, Tariffs, Tokens or Hub Client Info list GET that adds `date_from`, `date_to`, `offset` or `limit` fails a refusal only when your endpoint served the same request without them earlier in the run: "The following table lists all the parameters that have to be supported but might be omitted by a client request." If that request was refused too, the parameter rule shows as not tested. A Sessions list owes `date_from`, so its comparison request is a `date_from` read alone. On OCPI 2.1.1, whose table lists only `offset` and `limit`, a refused date window is not tested. Served objects outside the requested window still fail on every version. The walkthroughs' expectations of what your endpoint stored now pass with an observation when a different valid value is served: a Session that is no longer `ACTIVE` on OCPI 2.1.1, 2.2.1 and 2.3.0, a Token whose `whitelist` differs from the one pushed on the same versions, and on OCPI 2.3.0 a Financial Advice Confirmation whose `authorization_reference` is not the one the walkthrough invented. The served Session, Token and confirmation are still graded against their object definitions. A command POST on every version, and the Booking POST on OCPI 2.3.0, is graded on the answer your endpoint served. No command clause obliges a CPO to accept the request, so a refusal or server error on the OCPI layer shows the CommandResponse or Booking rules as not tested. A success still owes the whole CommandResponse, `REJECTED` included, or the Booking. The walkthroughs' `UNLOCK_CONNECTOR` steps now report a server error the same way. From OCPI 2.2, a `START_SESSION` or `RESERVE_NOW` answered with `2004` (Unknown Token) fails, in the conformance checks and the walkthroughs alike. The eMSP authorizes the Token it sends, and "the CPO SHALL NOT check the validity of the Token provided before sending the request to the Charge Point." A `2004` to a command that carries no Token is not tested. The CDR read-backs grade the CDR your endpoint served. It still owes its required fields on its version, and from OCPI 2.2 its `session_id`, because the walkthrough pushed the Session. A CDR whose `auth_id`, `session_id` or `total_cost` differs from the one posted now passes with an observation, and so does a refused read at the URL the CDR POST returned. Zero energy is a valid CDR, and an empty `auth_id` or `session_id` is a present one, because neither type sets a minimum length. A read at that URL that serves a different CDR fails on every version, in the walkthroughs as well, because the `Location` header points at the CDR the POST created. That includes a CDR an earlier run posted under the same name. The rejection walkthroughs no longer demand a refusal where the field they break binds the sender of the request: a Location without a required field or with an unknown value, a malformed CDR, a Financial Advice Confirmation or Terminal request missing required data, and on OCPI 2.1.1 an unknown command such as `TELEPORT`. Any defined success or client-error answer passes and the report names it, and a server error is not tested. A success to the unknown command still owes its CommandResponse, and a created CDR its `Location` header. A ChargingProfiles GET, PUT or DELETE from OCPI 2.2 is graded on the answer your endpoint served. No clause obliges a CPO to accept the request, and `REJECTED` is "ChargingProfile request rejected by the CPO.", so a refusal on the OCPI layer shows the ChargingProfileResponse rules as not tested and a server error is reported. A success still owes a ChargingProfileResponse with a legal `result` and an int `timeout`. A GET for an object your endpoint does not hold, on OCPI 2.2.1 and 2.3.0, fails only a success: one with no object, or one serving an object the run never created. HTTP 404, or a client-error `status_code` on HTTP 200, passes and the report names the answer. A server error is reported and the check is not tested. Another HTTP error shows a warning, because "the server SHOULD return a HTTP `404 - Not Found`", and the check is not tested. Nine of these checks used to fail a server error or an HTTP error other than 404. The Versions, VersionDetails and Credentials GET checks now cite the duty that makes them owe a success, on every OCPI version: "Both, CPOs and eMSPs MUST implement such a version endpoint.", "Both the CPO and the eMSP MUST implement this endpoint." and, for Credentials, "This module is symmetric, it has to be implemented by all OCPI implementations". OCPI 2.1.1 writes them as "must have this endpoint" and, in its ModuleID table, "Required for all implementations". The run sends the token your platform issued for the registered connection, so a refusal still fails, an HTTP 401 or 403 to that token included. Rules no clause states no longer fail: an absolute endpoint or version URL whose scheme is not `http` or `https`, on the OCPI 2.1.1 VersionDetails and the OCPI 2.3.0 Versions and VersionDetails checks, a VersionNumber listed twice on OCPI 2.2.1, and on every version a relative version, endpoint or Credentials URL. Only your platform and ChargerDojo use those URLs, so the Credentials chapter's "should be absolute" stays advice: the report names each relative one, journeys grade them the same way, and registration resolves them against the answer that carried them. A URL that leaves the exchange, such as an image, a website, terms and conditions, a tariff page or an invoice URL, still has to be absolute in conformance checks and journeys alike, because the w3.org spec the type follows says "when a reference is passed in anything other than a well controlled context, the full form must always be used." An empty Credentials `token` or business name passes, because neither type sets a minimum length. An empty version list still fails, and so does a URL that is empty or not a URL at all. An empty CredentialsRole `party_id` now passes with an observation, because CiString(3) sets no minimum length. On OCPI 2.3.0, a `hub_party_id` that is set now fails unless it is five characters, two letters then three, because the Credentials chapter says "The two-letter country code and three-character party ID are concatenated together in this field as one five-character string." This turns some passes into fails: if your platform sends a `hub_party_id` and an OCPI 2.3.0 Credentials report from before this update passed, run the 2.3.0 Credentials checks and the roaming hub journey again. In the payment terminal journey at the Adversarial depth, the duplicate Financial Advice Confirmation check (D15) now shows as not applicable. The duplicate arrives at ChargerDojo as the CPO, so a second transaction would be ours, and no clause asks your terminal provider to send it once. It used to pass whenever the duplicate arrived. **November 5, 2026** Sandbox receivers and journey rules follow each chapter's rows Our sandbox receivers and these journey rules were read again against their chapters on every version. If an old journey report credited one of these rows, run the journey again. **Sandbox receivers** * Connector ratings and Image dimensions take any integer their row allows, zero and negatives included: no OCPI row sets a floor. * An optional field sent as `null` is accepted on Locations, Tariffs, Tokens and Credentials on every OCPI version, on Payments on 2.2.1 and 2.3.0, and on Bookings. A required field sent as `null` is still refused with 2001, and a PATCH `null` clears only the field it names. From 2.2 a Location PATCH with `evses: null` keeps every EVSE: the chapter allows no way to remove one entirely, so retire an EVSE by setting its status to `REMOVED`. * An EnergyMix `supplier_name` or `energy_product_name` may be blank on every OCPI version. * A Session or CDR identifier now has to be a CiString within its row's length: a control character, a non-ASCII character or a 37-character `tariff_id` is refused with 2001. Free-text fields such as `remark` still take non-ASCII text. * OCPI 2.2 signed data keeps its own CiString(512) rows; 2.2.1 and later keep string(5000). * A DisplayText `text` may be blank on every OCPI version: the row sets a maximum and no minimum. Absent or `null` is still refused. **Conformance reports** * The Direct Payment scenarios no longer read the `data` of a Terminal, confirmation or CDR push. Those methods define no Response Data, so a mismatch there is no longer a warning. * Checks no longer cite the hub error band beside a receiver rule it does not govern. A hub error still leaves that rule not tested. * A journey report row whose clause binds nobody prints OBSERVATION: C04 on every version and R07 on OCPI 2.1.1. **Journey verdicts** * D10 fails a Financial Advice Confirmation whose `total_costs` uses another version's Price shape. It used to pass, while D18 failed the same object. * N09 reads `total_cost` in the run's own version and treats another version's shape as no evidence of a change. * D12 reports a captured total or currency that does not reconcile with the CDR as a warning: no OCPI clause equates them. Amounts within half a cent reconcile, boundary included. * From OCPI 2.2, N09 and the invalid-data rules no longer credit an HTTP 4xx as a refusal when the run established the object: "To such a request, an HTTP error status code MUST NOT be returned." The row now warns, and N16 still grades the HTTP code. OCPI 2.1.1 only recommends against an HTTP error, so a refusal there counts as before. **October 23, 2026** Charging-journey verdicts follow their clauses Every charging-journey rule was read again against the OCPI clause it grades, on each version it runs on. If an old journey report failed your endpoint on a rule below, run the journey again. **No longer failed: now a warning or not tested** * A partner-profile rule fails only a run whose partner profile names it. A run with no profile reports it not tested. * N05, R02 to R05, B and S rules on a "should", "may" or descriptive clause, and the H and K rules with no SHALL behind them are reported, never failed. * F08 and F09 warn when the endpoint map changes in a way OCPI permits. * F01 warns, rather than fails, on a complete versions list that no longer names the negotiated version. * G04 to G07 fail only when a successful read-back serves the wrong object. Whether your endpoint kept our push is reported. * Direct Payment rules fail only on a required field or a closed list of values. D12 is a business check on the captured total. * B01's conformance lane is not tested when your endpoint refuses the CDR, since a refused CDR was never created. * A hub push for a party your endpoint never registered is not tested when refused with HTTP 404. H03 and H08 to H12 are not tested until a step drives them. * X12 warns when an unknown ConnectionStatus is accepted. * S06, S10, S11, S13 and S15 grade an update only when it sends what the rule names, and X04, R10, R11, H06 and S20 only where the plan has what they name. **Read differently** * A step now aims at an object your endpoint created or listed in the run, such as the Terminal, the Session a ChargingProfile names, the Location a command names or the Booking it reads. A step whose premise failed is not sent, and reports why, rather than failing your endpoint. * D02 reads the whole Terminal your endpoint serves. D01, D04 and D06 read the request your PTP sends against its own tables. * H01 reads the routing headers on your answer, and our own missing headers fail nobody. * A pull's window now opens the second before the run starts, so an object your endpoint stamped to the whole second is inside it. **New** * A01 grades a CPO accepting the Token an eMSP pushes, and A04 grades an eMSP answering a real-time authorization for a Token it lists, from OCPI 2.2. * A journey report row shows the versioned clause its check was graded on and what binds in it, where the rule records the clause. Requirement keywords in [OCPI 2.2](https://github.com/ocpi/ocpi/blob/0b53077d877d9f61815408554c2962b013f2536a/terminology.asciidoc#terminology_terminology_and_definitions), [OCPI 2.2.1](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/terminology.asciidoc#terminology_terminology_and_definitions) and [OCPI 2.3.0](https://github.com/ocpi/ocpi/blob/9ed1e39c24f5b84cb1e4008939f47bea838f9b25/terminology.asciidoc#terminology_terminology_and_definitions) distinguish requirements from recommendations. OCPI 2.1.1 has no requirement-keyword section; its checks follow the cited module clause. Partner-profile and business checks keep their separate authority. * An action no longer takes `oracleIds`. A manifest that names it is refused, with a message naming the field. # Author a custom journey Source: https://docs.chargerdojo.com/guide/author-a-scenario The custom journey JSON shape, the knobs that matter, and how to import, run, and save a journey you wrote by hand or generated from CI. A **custom journey** is a charging journey described as JSON: the same thing the Charging journeys builder produces, written down so a human or an agent can version it, diff it, and replay it from CI. Import opens Configure with the source retained. For schemaVersion 1 files with custom actions, edit existing values and times, duplicate or remove rows, and use Undo or Redo. You can also edit the JSON and choose Apply JSON. Preview checks the current applied definition before Run. The fastest way to get a valid file is **Download sample** on the Charging journeys page. It exports a ready-to-run custom journey for your selected target. Edit that, or write one from the shape below. ## The shape ```json theme={null} { "schemaVersion": 1, "journey": "first-successful-charge", "targetId": "replace-with-your-selected-endpoint", "roleUnderTest": "EMSP", "journeyPack": "core-charging", "ocpiVersion": "2.2.1", "coverageDepth": "happy-path", "topology": { "kind": "direct", "profile": "core-ocpi" }, "clock": { "mode": "accelerated", "durationSeconds": 3000 }, "session": { "cadenceSeconds": 300, "jitterSeconds": 0, "strategy": "put-and-patch", "updates": ["kwh", "total_cost", "status", "charging_periods"] }, "catalogue": { "locationUpdates": true, "tariffUpdates": true }, "completion": { "cdrDelaySeconds": 300 }, "disturbances": [], "seed": "204" } ``` Replace the example target with your registered endpoint, or use **Use selected endpoint** after import. The starter has the required topology; server Preview still checks the selected endpoint and its actual capabilities. ## The knobs that matter * **`journey`**: the template the custom journey starts from (e.g. `first-successful-charge`). It selects the story. An unavailable id stays in the imported source and cannot run here. * **`ocpiVersion`** and **`targetId`** stay as written on import. If the selected endpoint differs, choose **Use selected endpoint** to change only `targetId`. Correct a version mismatch in the JSON before Preview. * **`roleUnderTest`**: the role of the endpoint you are testing, which must match its registered role. The action picker lists each kind's partner sides. Preview refuses a kind that cannot run against the selected role. * **`clock.mode`**: `accelerated` compresses a session into seconds; `real` runs it at wall-clock cadence for long-session testing. * **`session.cadenceSeconds`** and **`jitterSeconds`**: how often meter updates are pushed, and how irregular they are (`jitterSeconds` above 0 means irregular). * **`session.updates`**: which fields each update carries (`kwh`, `total_cost`, `status`, `charging_periods`). * **`disturbances`**: faults injected mid-journey to prove the endpoint fails safely. The full set is under [Disturbances](#disturbances) below. * **`coverageDepth`**: `happy-path`, `edge-cases`, or `adversarial`. * **`seed`**: makes a run reproducible; keep it stable to replay the same story. Unknown fields and unsupported source stay in the local draft, custom-journey save and export. Preview and preset Save use the strict server schema; a saved definition is not proof that it can execute. Pending JSON blocks Preview and both Save paths until you explicitly Apply it. Export pending JSON keeps its exact text, including unfinished input. Export original keeps the imported text. Recovery is scoped to the account, workspace and endpoint in the current tab; export before closing the tab or when recovery reports a storage failure. ### How do I write my own timeline? A file with its own timed `actions` list shows those actions in file order. Stock template presets and saved template scenarios reopen their setup knobs. Loading that saved configuration applies it to the selected endpoint while retaining other source fields. File import keeps its own target until you explicitly choose Use selected endpoint. Configure shows compact action headers with requested time, operation and a source summary. Choose Edit parameters to open one step's fields. Enter or Tab applies a scalar to the local draft; Escape cancels that field edit. The type label describes the retained or locally typed JSON value, without guessing units. Empty strings remain editable, and long strings use a bounded multiline field. Add parameter keeps its Key and Value labels visible while open. Field details tells you where the spec defines a name. It does not establish that the action sends the typed value. Preview shows the compiler's selected and generated payload fields. Keys the compiler ignores remain in the definition only. Objects, arrays and unsupported values bags remain intact. Edit in JSON opens Advanced definition JSON with the source path and focuses the code well; it does not guess a text position. Apply JSON changes the local draft, while Save persists a separate scenario or preset. While JSON is pending, parameter editing is disabled until you Apply or Discard it. Use the expanded step's time control to retime it. Enter or Tab commits one edit; Escape cancels it. Unfinished time edits survive reload and block Preview and Save. Use Duplicate and Remove to change the list. The schedule uses `atSeconds`; do not infer equal-time execution order from source row position. Older stored plans retain their historical order. Kinds and checks remain in the JSON. Adding steps from a catalogue and choosing new checks await an authoring contract and are not offered by this editor. Empty custom lists and unsupported action kinds stay available for repair and export, with execution disabled. Definitions from a newer schema or an internal execution plan are not converted to a template or flattened into actions. Local editing, export and ordinary Preview have separate access from server writes. Saving a custom journey or preset requires the workspace's `saved-presets` grant. Run uses the existing server admission result for the reviewed plan. ## Journeys, packs and what grades them Three ids in the file name what you are running rather than what it does. ### What can I put in `journey`? `journey` picks the story to start from. An unavailable id remains editable and exportable, with Preview disabled until you choose an available journey in JSON. `first-successful-charge`, `rough-session`, `charger-reset`, `partner-connection`, `catalogue-trust`, `remote-start-stop`, `live-price-parking`, `reservation`, `cdr-desk`, `offline-catch-up`, `hub-routed-charge`, `book-arrive-charge`, `direct-terminal-payment`, `smart-charging-control`, `hub-connection-status`, `invalid-charging-data`, `roaming-hub-identity`, `roaming-hub-relay`, and `custom` for a timeline you write yourself. `roaming-hub-identity` reads identity and configuration through one registered CPO counterparty. It names only `targetId`. `roaming-hub-relay` tests a roaming hub through two counterparties and is the one journey that names two targets: `targetId` is the CPO side of the pair and `pairedTargetId` the eMSP side. ### What does `journeyPack` group? `journeyPack` groups journeys by the part of OCPI they exercise: `core-charging`, `foundation`, `catalogue`, `commands`, `billing`, `recovery`, `hub`, `booking`, `direct-payment`, `charging-profiles`, `hub-client-info`, `negative`, `roaming-hub`. ### Does an action take `oracleIds`? No. An action's verdicts come from the rules in its `scenarioIds`. A manifest whose action carries an `oracleIds` value other than an empty list is refused by server validation, with a message naming the field. Remove it before Preview. An empty `oracleIds` list says nothing and is dropped. The field is also dropped when older stored manifests are read. The editor offers no custom check picker; inspect Preview to see the planned assertions. ## The actions you can write An action is one thing the runner does at one moment. Every entry needs three things: what to do, when, and which scenarios it provides evidence for. ```json theme={null} { "action": "session_put", "atSeconds": 0, "scenarioIds": ["S01"] } ``` ### Why is `scenarioIds` required? `scenarioIds` is required on every action, between 1 and 12 of them, each a capital letter followed by two digits (`S01`, `G13`). They are what tie an action to the scenarios your report is graded against: an action with no scenario would run and prove nothing, so the schema does not accept one. A file missing them remains editable, but **Preview** rejects it before a run can start. `atSeconds` counts from the start of the run, up to 48 hours. Actions execute at their own time, not in list order, so keep the list chronological if you want to read it the way it will run. A `cdr_post` before the first `session_put` is refused, because the record would close before its Session opened. A `cdr_post` before the `session_complete` is allowed: it sends the CDR ahead of the final Session update. OCPI sends a CDR only after the charge has ended, so the charge then ends when the CDR goes out, and the final Session update carries that end time. The current custom compiler executes these kinds: * `prepare_token` and `wait` for preparation and timing. * `session_put`, `session_patch` and `session_complete` for Session writes. * `location_put`, `location_patch`, `location_get` and `location_serve` for Location state and read-back. * `cdr_post` for the charging record, `cdr_get` to pull a partner CPO's records and `cdr_delete` to probe immutability. * `command_post` for remote start, stop, unlock and reservations, and `token_put` for the Token a start sends (2.2 on). * `token_get` and `token_authorize` to authorize a Token listed by a partner eMSP. * `versions_get`, `version_details_get` and `credentials_get` for discovery and registration reads. * `tariff_get`, `tariff_put` and `tariff_delete` for Tariff reads and writes. * `charging_profile_put`, `charging_profile_get` and `charging_profile_delete` for profiles on a Session this run started. * `hub_client_info_put`, `hub_client_info_get` and `hub_client_info_delete` for HubClientInfo pushes, read-back and the unsupported-verb probe. * `booking_get` and `booking_post` for Booking search, requests and read-back. * `expect_inbound` and `await_inbound` to watch partner pulls. * `transport_cut` and `transport_restore` for a bounded transport outage. * `session_get` to pull a partner CPO's Sessions or read back the Session we pushed. `location_serve` sends nothing. It changes the Location we serve your partner, for a partner with no Locations Receiver that has to pull. See [Push or serve?](#push-or-serve). The schema also recognizes the following names, but the current custom compiler refuses them. Their presence in the schema does not make them executable: `await_callback`, `booking_put`, `booking_patch`, `payment_get`, `payment_post`, `payment_put`, `payment_patch`, `transport_latency`, `sandbox_ptp_step`. A hand-authored list runs `prepare_token`, `wait`, `session_put`, `session_patch`, `session_complete`, `cdr_post`, `location_put`, `location_patch`, `location_get`, `location_serve`, `command_post`, `token_put`, `session_get`, `tariff_get`, `tariff_put`, `tariff_delete`, `cdr_get`, `versions_get`, `version_details_get`, `credentials_get`, `charging_profile_put`, `charging_profile_get`, `charging_profile_delete`, `expect_inbound`, `await_inbound`, `transport_cut`, `transport_restore`, `hub_client_info_put`, `hub_client_info_get`, `booking_get`, `booking_post`, `token_get`, `token_authorize`, `cdr_delete` and `hub_client_info_delete` today. A file with any other kind is refused with a message that names it. ### Which scenarios can an action carry? Each scenario is checked on the kind of step that drives it, so an action carries only the scenarios whose check reads that kind. S11 reads a Session PATCH, for example, so it rides `session_patch` and nothing else. A scenario rides every action its check reads: N16 reads the envelope of any answer, so it rides every action that sends a request. Put a scenario on an action its check does not read and the file is refused, with a message naming the actions that scenario can ride. `transport_cut`, `transport_restore` and `expect_inbound` grade nothing, so the scenario IDs the schema requires on these steps get no result. Some scenarios name more than the step: S10 reads an update to a Session you pushed earlier that sends its energy, cost or status, and B13 a CDR sent again with an earlier CDR's id. On a step without that, the scenario is [not tested](/guide/read-your-report), with the reason, rather than passed because the step was accepted. `prepare_token` and `wait` send nothing, so every scenario on them is not tested. ## Disturbances A disturbance is a fault the runner injects on purpose, to see whether your endpoint survives something real rather than only the happy path. Adversity is opt-in: a journey runs clean unless you ask for it. ```json theme={null} "disturbances": ["skip_intermediate_update", "non_monotonic_meter"] ``` The full set, by what each one disrupts: * **Session updates**: `skip_intermediate_update`, `duplicate_full_put`, `zero_energy_pause`, `non_monotonic_meter`, `patch_before_put`, `pending_start`, `session_never_closes`, `session_invalid_close`, `reboot_energy_gap`, `offline_replay_burst` * **Charge records**: `cdr_before_terminal_session`, `delay_cdr`, `early_cdr`, `duplicate_cdr`, `credit_cdr`, `corrected_cdr` * **Pricing and parking**: `tariff_boundary`, `parking_period` * **Callbacks**: `callback_timeout`, `callback_duplicate`, `callback_out_of_order` * **Transport**: `transport_outage` Only these journeys take disturbances: `rough-session`, `charger-reset`, `cdr-desk`, `offline-catch-up` and `remote-start-stop`. Any other journey refuses a file that lists one. In the builder you do not pick them one by one: `rough-session` starts with its own set, and on `charger-reset` the failure variant you choose picks them for you. Each of those journeys uses only some of the set: * `rough-session`: `skip_intermediate_update`, `duplicate_full_put`, `zero_energy_pause`, `non_monotonic_meter`, `cdr_before_terminal_session`. An empty list turns all five on. * `charger-reset`: `session_never_closes`, `reboot_energy_gap`, `session_invalid_close`, `offline_replay_burst`, `pending_start`, `duplicate_cdr`. It refuses any other. * `remote-start-stop`: `callback_timeout`. * `cdr-desk` and `offline-catch-up`: none. A disturbance one of these journeys accepts but does not use still runs, without that fault. The preview, the run you start and the builder all name it: the plan and the start response carry `ignoredDisturbances`, with the ids and a sentence saying the run goes ahead without them. To deliver the CDR late, raise `completion.cdrDelaySeconds`, the seconds between the Session closing and the CDR being sent. `delay_cdr` changes nothing: the journeys above run without it, and `charger-reset` refuses it. No verdict fails a CDR for arriving late: OCPI lets partners agree to send CDRs as rarely as once a month, so a receiver that accepts a late one has broken no rule. An id the runner does not know is rejected during **Preview**, before a run can start. Import retains the source so you can correct the id. ## The values an action carries Each hand-authored action can carry a bag of named values, in the file or added in the builder: ```json theme={null} { "action": "location_patch", "atSeconds": 0, "scenarioIds": ["G13"], "values": { "status": "CHARGING", "ocpp_status": "Preparing" } } ``` On Configure, choose **Edit parameters** to open one step. Scalar values use labelled fields with their actual JSON type. **Add parameter** adds a name the file did not carry. Enter or Tab applies a field to the local draft; Escape cancels it. Save a scenario or preset separately to keep it beyond the tab. ### What can a value be? A value is text, a number, `true`, `false`, or `null`. A list or an object stays out of the scalar editor and is refused by the strict server schema. An imported structure stays in the local draft, custom save and export; use **Edit in JSON** to repair it. Types survive the round trip: `16` comes back as the number your file held, not as the string `"16"`. An action can hold up to 40 values, and a name can be up to 64 characters. Six names belong to the server and an action cannot set them: `url`, `headers`, `authorization`, `token`, `template`, and `expression`. These carry the request itself, so a file that could overwrite them could point a run at somewhere you did not choose. ### Which keys does the runner check? The compiler reads selected keys and generates other fields. Numeric `kwh` and `total_cost` override generated totals on Session and CDR actions; bad or empty scalar values use generated totals. On `session_patch`, presence of `status` or `charging_periods` selects generated values, rather than sending the scalar you typed. Other keys can remain in the definition without reaching a payload. `session_patch`, `session_complete` and `cdr_post` can set an explicit `kwh` or `total_cost`. A value set at or before the charge end applies to every later charging action that leaves it out. The charge end is the earlier of `session_complete` and the first `cdr_post`, or the first `cdr_post` when there is no `session_complete`. Generated totals and CDR dates stop there, so a re-sent CDR repeats the first one. When the journey is compiled, the compiler checks that fully generated Session/CDR pairs agree; explicit overrides still let you test deliberate disagreement. These keys have additional value checks. A spec field name and a compiler input are separate facts: | Action | Key | Defined by | Rule | | - | - | - | - | | `location_put` | `status` | OCPI, Locations module | Text. Optional; omitted status uses the generated Location status. | | `location_put` | `ocpp_status` | Nobody. Partner extension | Text. Optional. | | `location_patch` | `status` | OCPI, Locations module | Text. Required, because the action will not run without it. | | `location_patch` | `ocpp_status` | Nobody. Partner extension | Text. Optional. | | `location_serve` | `status` | OCPI, Locations module | Required, and one of the OCPI EVSE Status values, because we serve it as an OCPI EVSE. | | `location_serve` | `ocpp_status` | Nobody. Partner extension | Text. Optional. | | `cdr_post` | `total_parking_time` | OCPI, CDRs module | A number of hours, no longer than the record covers. | `ocpp_status` is the case worth understanding. No OCPI version names it, and we do not pretend otherwise: the editor labels it a partner extension exactly as it labels a name you invent yourself. The runner reads it only so that a value you did supply is checked rather than silently shipped empty, and so a PUT, PATCH or the Location we serve can carry the CSMS status your platform reports alongside the OCPI one. Nothing about it being on this list makes it standard. Where a key is one of these, the editor says so while you type, and an empty value is refused rather than saved into a run that Preview would reject. ### Push or serve? It depends on whether your partner advertises a Locations Receiver, not on its role. * **It has a Locations Receiver.** Use `location_patch` to PATCH each state to it, and `location_get` straight after to read the EVSE back. The read-back shows whether it kept the value it last accepted: a receiver still holding `Preparing` after it took `Finishing` shows a driver the wrong state. This is the standard OCPI push to an eMSP, and it is also how a Direct Payment terminal provider works: it pulls its Locations first, then takes a `PATCH evse` on every status change. Our sandbox keeps `ocpp_status` when you push it, so you can run the push against the sandbox first and see it in the read-back before you point it at a partner. * **It has none, so it can only pull.** Use `location_serve`: it changes the `EVSE-JOURNEY` we serve at `LOC-JOURNEY`, moves both `last_updated` values so a delta pull sees the change, and records what your system pulled while that state was current. This is the shape for a 2.3.0 terminal provider, whose Payments module has it "pull the current connector information". It runs on OCPI 2.2.1 and 2.3.0. If your terminal only pulls Locations assigned to it, assign `LOC-JOURNEY` first. Pick the clock to match. A push lands the moment it is sent, so accelerated time is fine. A partner that pulls reads on its own schedule, so a served state needs to last longer than its polling interval, and real time is the honest choice. Whether your system read a served state is an observation, never a failure: if it did not pull while `Finishing` was being served, the report says so and warns, because nothing in OCPI says when a partner must pull. The Choose page's custom journey card downloads a ready parking-fee journey for the endpoint you have selected: the pushed version if it advertises a Locations Receiver, the served one if not. ### Can I send a field OCPI does not define? You can retain a scalar under another name in the definition. The current compiler selects payload fields explicitly, so an arbitrary key does not become a wire field. For an arbitrary extension name, OCPI defines no field semantics. An extension is not graded, because there is no clause to grade it against. `ocpp_status` on `location_put`, `location_patch` and `location_serve` is a supported partner extension; it is not an OCPI field. Inspect Preview's generated payload before running. OCPI 2.3.0 says a platform must not reject a payload solely because it contains undocumented field names. That OCPI requirement does not require it to retain an arbitrary extension. Two things worth knowing. A field you invent is not graded, because there is no clause to grade it against. `ocpp_status` is the one extension the report lists, under Partner compatibility rather than OCPI. G15 checks that each status pair you wrote is on the agreed table, before the run starts. G13, that a push carrying it is accepted, and G14, that the read-back keeps it, report not tested, because no partner profile names them yet. And a key the runner does not read may be left empty, where a key it does read may not. The current G15 partner table permits these pairs. This table is the agreed profile used by ChargerDojo, not a mapping required by OCPI: | OCPI `status` | Partner `ocpp_status` | | - | - | | `AVAILABLE` | `Available` | | `AVAILABLE` | `Preparing` | | `CHARGING` | `Charging` | | `CHARGING` | `Finishing` | ## Import, run, and save Time fields accept decimal whole seconds. Scalar value fields show the parsed JSON type: numeric-looking text becomes a number; use JSON to retain a numeric-looking string. Shift+Enter inserts a line in a scalar value. 1. On **Charging journeys**, choose **Import scenario JSON** and pick your file, or **Download sample** to start from a working one. 2. A template-shaped file opens its matching settings on **Configure**. Choose **Edit definition JSON** to open and focus the source in one click. Its original target remains unchanged until you choose **Use selected endpoint**; selecting an endpoint alone is not that consent. Other files open the source editor. Edit existing rows or the JSON, choose **Apply JSON** for text changes, then **Preview** to compile the applied definition. 3. **Start the run.** It streams live and lands a graded report in **Runs**, shared with your organisation, replayable and runnable from CI with the same JSON. You can annotate a working copy with `//` comments and trailing commas; the importer reads them while retaining the original text for export. The API and CI expect strict JSON. See also [Run a charging journey](/guide/run-a-charging-journey) for the run, follow, and recovery flow. # Try a sandbox test in the browser Source: https://docs.chargerdojo.com/guide/browser-quickstart Run a free OCPI conformance test against ChargerDojo's sandbox, inspect the recorded exchanges and see what the result proves. No API key needed. Run a test against ChargerDojo's sandbox to see how checks and reports work. You need a browser, with no account, payment card or API key. The sandbox is ChargerDojo's OCPI peer. This run tests that peer, not your implementation. To test your own or a partner's service, [connect an endpoint](/guide/connect-a-partner) on Integrate or above. ## Open a saved report first [Open the saved example report](https://chargerdojo.com/sample-report/). It is a captured OCPI 2.2.1 roaming-hub journey against ChargerDojo's reference endpoint. It is a passing example with some ungraded checks, not evidence about your endpoint. Check the version and scope, then expand an exchange to see the request, response and associated checks. [Read and diagnose a report](/guide/read-your-report) explains what to inspect when a check fails. ## Run your own sandbox test 1. Open [Testing](https://chargerdojo.com/app/testing). 2. Under **You build**, choose **CPO**, **eMSP** or **PTP service**, then choose an **OCPI version**. The endpoint selector switches to the matching sandbox, such as **Sandbox CPO**. CPO means charge point operator; eMSP means e-mobility service provider; PTP means payment terminal provider. The [glossary](/guide/glossary) explains their responsibilities. 3. Choose **Run tests**. The selected sandbox is the system under test; ChargerDojo's tester plays its counterparty. To run one module, open **Conformance and manual requests** under **Working tools**. 4. Wait for the run to finish, then choose **View report**. Read the coverage and counts before treating a green result as a pass for your chosen scope. 5. Expand a check that sent a request. Compare the recorded response with its expected result, then follow its specification citation where one is recorded. A check marked **Not tested** has no graded evidence. **Not applicable** means the rule is outside this endpoint's responsibilities. Neither is a failed requirement. [Report guidance](/guide/read-your-report) explains the distinction. ## Keep or share the result Find the report in **Runs**. Your browser's anonymous session retains access until the session expires or its stored data is cleared, within report retention. Signing in attaches this browser's reports to your organisation for access from other devices. [Share a report](/guide/share-a-report) if someone else needs to inspect it without an account. Inspect its payloads before sharing. ## Test your endpoint next Read [what ChargerDojo tests](/guide/coverage) to check version, module and interface support. Then [connect your endpoint](/guide/connect-a-partner) and [run a suite](/guide/run-a-suite). The [API quickstart](/guide/quickstart) is the equivalent automation path once you have a paid API key. # Check a payload Source: https://docs.chargerdojo.com/guide/check-a-payload Edit and compare OCPI payloads in your browser, with limited field checks for 2.2.1. Nothing you paste leaves the page. Free, no login. [Open the Payload Workbench](https://chargerdojo.com/ocpi-testing-tool/payload-workbench). Edit and compare OCPI payloads in your browser, with limited field checks for 2.2.1. Nothing you paste leaves this page. ## Check one object Pick the [module](/guide/glossary), the kind of object you are editing, and its version. Paste one object into the JSON editor. The form shows its fields; edits in either view update the other. For 2.2.1, the page's scope is limited: Checks required-field presence, #NA use in optional strings, available direct types, allowed values, patterns, lengths, DateTime formats, list sizes and credit CDR conditions. Referenced objects receive a shape check only. Nested values and other conditional rules are not checked. `#NA` represents [unavailable data](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/transport_and_format.asciidoc#transport_and_format_not_available). OCPI permits it only for required string fields in rare cases where the data cannot be filled. Optional strings cannot use it. The page checks whether an ordinary string field is required; it cannot tell whether the sender could obtain the data. A referenced object is a field whose schema points to another object definition. Its shape is checked; its contents are not. Field placement is not checked. A result of "No errors in these checks" does not certify OCPI conformance. For 2.3.0, the page shows field citations only. Field placement and values are not checked. ## Compare with a partner Choose Compare. Paste a partner's object into the other editor, or use Open file for a JSON file. The result lists added, removed and changed fields. It compares the two objects; it does not check the other object's values. If the main editor has no object or either editor does not parse, the page explains why there is nothing to compare yet. ## Keep your edits Copy JSON and Download save the current editor text, including whitespace or text that does not parse. Load sample or a module switch asks before replacing your edits. Keep editing preserves them. A failed check's response can offer Open in the Workbench for a single identified object. It opens the captured object in memory. Lists, missing evidence, truncated bodies and redacted bodies have no opener. Nothing is saved automatically. Reloading opens the default sample. Copy or download your edits before leaving. # Connect a coding agent Source: https://docs.chargerdojo.com/guide/connect-a-coding-agent Connect Claude Code, Codex or Cursor to ChargerDojo over MCP. Ask OCPI questions free. On a paid plan, read reports and start runs on your endpoints. ChargerDojo runs a server that coding agents can call directly, at `https://mcp.chargerdojo.com`. It speaks the [Model Context Protocol](https://modelcontextprotocol.io), the standard your agent already uses to reach tools outside itself. Connect it and you can ask OCPI questions in the editor you are already in: which versions exist, how each one encodes the credentials token, what changed between 2.2.1 and 2.3.0, which suites and journeys you can run. **That half needs no account, no key and no signup.** Answers come from the same registry the simulator obeys, so they match what the site does rather than what a model remembers. Add your `cdojo_` API key and the same agent also reads your organisation's registered endpoints and run history, a verdict, and your remaining quota. An agent that reads pages rather than calling tools can start from [`chargerdojo.com/llms.txt`](https://chargerdojo.com/llms.txt): every public page in one line each, and facts about OCPI and ChargerDojo it can quote without fetching a page. [`llms-full.txt`](https://chargerdojo.com/llms-full.txt) adds a note per page. ## Connect it Each of these was run against the live endpoint. ```bash Claude Code theme={null} claude mcp add --transport http chargerdojo https://mcp.chargerdojo.com ``` ```bash Codex theme={null} codex mcp add chargerdojo --url https://mcp.chargerdojo.com ``` ```json Cursor theme={null} { "mcpServers": { "chargerdojo": { "url": "https://mcp.chargerdojo.com" } } } ``` ```json opencode theme={null} { "mcp": { "chargerdojo": { "type": "remote", "url": "https://mcp.chargerdojo.com", "enabled": true } } } ``` Cursor reads `~/.cursor/mcp.json`; opencode reads `~/.config/opencode/opencode.json`. Any other client that speaks Streamable HTTP takes the URL and nothing else. > [!NOTE] > > opencode's own published examples show `mcp.servers.`. That shape does not > connect. The one above does. ## Ask it something Nothing else to set up. Ask your agent a version question and it will reach for the server: > What changed between OCPI 2.2.1 and 2.3.0? ```text theme={null} None of the transport and structure rules tracked here changed between these versions. They are not a full diff of the two specifications, so treat this as a starting point. Modules ChargerDojo implements at 2.3.0 but not at 2.2.1: booking. That is this simulator gaining coverage, which is not the same claim as the spec gaining a module. ``` That last line is the habit worth noticing. The server separates what the specification says from what ChargerDojo implements, every time, because conflating the two is how an integrator ends up planning against a module nobody has. ## Add your key Nine tools are open to anyone. The other thirteen read or act on one organisation, so they need an API key, the same `cdojo_` key the [REST API](/api) uses. Send it as a bearer token: ```bash theme={null} claude mcp remove chargerdojo claude mcp add --transport http chargerdojo https://mcp.chargerdojo.com \ --header "Authorization: Bearer $DOJO_KEY" ``` The remove is not optional if you already ran the command above. The name is the identity, so a second `add` says `MCP server chargerdojo already exists` and changes nothing: your header never lands, and the account tools never appear. Clients that take a config file instead carry the same header in a `headers` map beside the URL. Keys are created in the app, under **Settings**, then **Credentials**, and need a paid plan. See [Create an API key](/guide/create-an-api-key). > [!WARNING] > > A key grants access to its organisation. There are no per-tool scopes: an agent holding your > key reads every target and every report the organisation owns, and can spend run quota. > Give an agent a key you are willing to revoke. Runs an agent starts are recorded in your organisation's audit log as agent-started, naming the tool. ## Working with ChargerDojo Your agent receives this guidance from the server when it connects, so you do not need to paste it into a prompt. It is here so you know what your agent was told. * **Protocol questions need no account.** `chargerdojo_get_ocpi_version`, `chargerdojo_compare_ocpi_versions`, `chargerdojo_list_checks` and the other open tools answer from the registry the simulator obeys. A module list is what ChargerDojo tests, not the whole specification, and a version comparison covers only the rules it names. * **Start a test from what your connection can do.** `chargerdojo_describe_access` says what your plan and role allow. `chargerdojo_list_targets` gives the id of an endpoint someone registered in the app, and `chargerdojo_start_conformance_run` or `chargerdojo_run_journey` starts a run on it. Retrying a start with the same `retryKey` returns the run it already started. * **Read a verdict the strict way.** A pass is a completed run that graded at least one check and failed none. A run that graded nothing is no answer, never a pass. `chargerdojo_get_run_checks` lists the checks that did not pass, with the clause each was graded against where one was recorded, and says so where none was. Text the partner sent arrives fenced as data. * **See what changed.** `chargerdojo_compare_run` compares a run with the previous comparable run, and `chargerdojo_get_schedule` reads the recurring run on an endpoint. * **Gate CI on the same verdict.** The [GitHub Action](https://github.com/chargerdojo/ocpi-conformance-action) and the REST recipe below exit `0` for a pass on the checks that ran, `1` for a failed required check and `2` for no answer. * **Tell the team.** When the tools cannot do what you asked, or you think a verdict is wrong, your agent offers to send your words to the ChargerDojo team with `chargerdojo_send_feedback`, and sends only once you agree. A pass is ChargerDojo's verdict on the checks that ran. It is not an OCPI certification. ## What each plan unlocks The open tools are free for everyone. An API key, and with it every account tool, comes with a paid plan; what a run may reach follows the same plan as in the app. | Plan | Price | Over MCP | | - | - | - | | Sandbox | Free | The open tools. | | Integrate | $149 a month or $1,490 a year | API keys, so every account tool, with journeys and conformance runs against your own registered endpoints and roaming hub identity checks. | | Automate | $499 a month or $4,990 a year | Everything in Integrate, plus Direct Payment, Bookings, roaming hub relay checks and the hub-routed charge against your own endpoint, and scheduled runs, which `chargerdojo_get_schedule` reads. | | Certified | Custom, by quote | Everything in Automate. | Ask your agent to call `chargerdojo_describe_access` for your own plan and role. [Plans and pricing](/guide/plans) has every row. ## Every tool **Open to anyone, no account:** | Tool | Arguments | Answers | | - | - | - | | `chargerdojo_describe_access` | none | What this server can do, what your connection, plan and role can call, and each plan with its price and what it unlocks. | | `chargerdojo_list_ocpi_versions` | none | The OCPI versions covered, and which modules each implements. | | `chargerdojo_get_ocpi_version` | `version` | One version in detail: token encoding, sender and receiver split, known limits. | | `chargerdojo_compare_ocpi_versions` | `from`, `to` | What changed between two versions, and which modules ChargerDojo gained. | | `chargerdojo_list_conformance_suites` | `version` (optional) | The suites you can run at each version, by module, with check counts. | | `chargerdojo_list_journey_templates` | `version`, `role` (both optional) | The charging journeys, each with the role it tests, its versions, the modules your endpoint must offer, the plan it needs against your own endpoint, and how long it runs on the sandbox. | | `chargerdojo_list_checks` | `version`, `module`, `after` (optional) | Every check a conformance run of one module grades at one version, each rule required or optional, with the clause it is graded against. | | `chargerdojo_validate_payload` | `version`, `object`, `json` | Checks one OCPI object against the schema ChargerDojo grades it with, and lists each field that breaks it. The JSON is sent to ChargerDojo and not stored; up to 64 KB, 30 calls a minute. | | `chargerdojo_send_feedback` | `kind`, `message`, `tool`, `reportId`, `checkId` (last three optional) | Sends your words to the ChargerDojo team and returns a reference. A verdict dispute names the report and check, and needs a key or a sign-in. Without either, three messages an hour from one address. | **With an API key:** | Tool | Arguments | Does | | - | - | - | | `chargerdojo_list_targets` | `targetId`, `cursor` (both optional) | Lists the OCPI endpoints registered on the account, 25 a page, or reads one by id. | | `chargerdojo_list_runnable_journeys` | `targetId` | Says which journeys one target supports, and why, and names the plan any of them needs that your account does not have. | | `chargerdojo_run_sandbox_journey` | `templateId`, `retryKey` (both optional) | Starts a journey against the sandbox and returns its report id. The same `retryKey` returns the run it started instead of starting another. | | `chargerdojo_run_journey` | `targetId`, `templateId`, `retryKey` (both optional) | Starts a journey against an endpoint registered on the account, the sandbox or your own, and returns its report id. Your own endpoint needs Integrate or higher. | | `chargerdojo_start_conformance_run` | `targetId`, `module`, `retryKey` (both optional) | Starts a conformance run of one module, or of every module the endpoint offers, against a registered endpoint and returns its report id. A module your plan does not include is named with the plan that does. | | `chargerdojo_list_runs` | `targetId`, `status`, `version`, `cursor` (all optional) | Runs and journeys, newest first and 25 a page, narrowed by target, status or version, with pass and fail counts. | | `chargerdojo_get_run_verdict` | `reportId` | One run's verdict, including whether anything graded at all. | | `chargerdojo_get_run_checks` | `reportId`, `outcome`, `after` (both optional) | Each check that failed, could not be graded or warned, with the clause it was graded against. | | `chargerdojo_get_journey_events` | `reportId`, `after` (optional) | Step by step, what happened, which assertions passed, and the clause each other one was graded against. | | `chargerdojo_compare_run` | `reportId` | What changed since the previous comparable run against the same endpoint, version and module: checks that newly fail, recovered, or stopped being graded. A run with nothing to compare with says so. | | `chargerdojo_get_schedule` | `targetId` | The recurring run set on one target: its cadence, whether it is on or paused and why, when it runs next, and what its last run found. Schedules are set in the app. | | `chargerdojo_cancel_run` | `reportId` | Stops a running journey at the next safe point. | | `chargerdojo_get_usage` | none | Your plan, by name, and how much of each ceiling is left. | The ids chain: `list_targets` gives you a `targetId`, which the start tools take, and every run tool takes the `reportId` that `list_runs` or a start tool hands back. Your agent can read all of this from the server itself, which stays right when this table drifts. ## What it will not do ### Can an agent start a conformance run against my partner? Only against an endpoint someone in your organisation registered in ChargerDojo, and only on a plan that tests your own endpoints, Integrate and up. `chargerdojo_start_conformance_run` and `chargerdojo_run_journey` take a registered target's id. Neither can register an endpoint, change its address or read its credentials. A run against your own endpoint sends graded traffic to it and spends your run quota, the same as starting it in the app. Against the sandbox endpoints neither tool needs a plan feature, though calling it still needs an API key. Pass a `retryKey` when your agent may retry a call: the same key returns the run it already started instead of starting a second one. A key that started a run on one endpoint, journey or module is refused for another, so use a new key for each run you mean to start. ### How much of my rate can an agent use? An agent gets half your rate, not all of it. Tools that start work draw on half your plan's runs per minute and half its in-flight cap, so a looping agent leaves your CI pipeline the other half. ## If your agent cannot connect * The URL is `https://mcp.chargerdojo.com`, with no path and no version segment. `docs.chargerdojo.com` runs a different server, for these pages. * The endpoint answers the current revision plus `2025-11-25` and `2025-06-18` from the same URL. Anything older is refused deliberately: those revisions may legally send JSON-RPC batch arrays, which this endpoint does not accept. * If the account tools are missing, ask the agent to call `chargerdojo_describe_access`. If it says you are calling anonymously, the key did not arrive. The usual cause is the one above, a second `add` refused because the name was taken. Otherwise check the header reached the server rather than that it sits in the config file: some clients send only the headers they were given at add time. * If it says your organisation's plan no longer includes API access, the key is fine and the plan lapsed. The open tools keep working, and each account tool is refused naming the plan that includes it. * A revoked or unknown key gets a `401` and the message `Invalid or revoked API key`. It never quietly drops you to the open tools, because running an agent against the wrong account is worse than an error. * A key whose creator has left the organisation gets a `403` with the code `ORGANISATION_ACCESS_REVOKED`. Ask an admin for a new key. * Each key can make 120 calls a minute. Past that, calls get a `429` with `Retry-After` until the minute is up, and other keys behind the same network are unaffected. * Each of these refusals arrives as a JSON-RPC error your client can show, not as a dropped connection. * The server is listed in the official MCP registry as `com.chargerdojo/ocpi`, if your client discovers servers that way. ## REST automation The same API key acts within its organisation, with the same targets and entitlements. All request and response bodies are JSON. Success has `{ "success": true, "data": ... }`; errors have `{ "success": false, "message": "..." }`. Store the plaintext key in a secret manager. A key cannot be retrieved again; revoke and replace it if leaked. For a CI pipeline, use long-polls with `wait=55` rather than busy-polling. ### Endpoints #### List targets ``` GET /api/v1/connections ``` Returns a page of your organisation's testing targets, whatever their `status` (`pending`, `registered`, `failed`). The default page size is 50; set `limit` up to 100 and increase `skip` by that limit for each subsequent page. External targets come before sandboxes, so keep paging until you find the sandbox with the role and OCPI version you need, or a page contains fewer rows than your limit. Sandbox CPO, Sandbox eMSP and Sandbox PTP endpoints (`"kind": "sandbox"`) are already registered. Use the matching target's `_id` to test against our reference implementation. Runs require `status: "registered"`. ```json theme={null} { "success": true, "data": [ { "_id": "665f0c…", "kind": "sandbox", "partnerBaseUrl": "…/ocpi", "ocpiVersion": "2.2.1", "status": "registered" } ] } ``` #### Register your own endpoint as a target ``` POST /api/v1/connections { "partnerBaseUrl": "https://your-host/ocpi", "ourRole": "EMSP", "theirRole": "CPO", "tokenA": "", "ocpiVersion": "2.2.1", "partnerEnvironment": "test" } ``` `ourRole`/`theirRole` accept `CPO`, `EMSP`, `HUB`, `NAP`, `NSP`, `OTHER` or `SCSP`. Choose `partnerEnvironment` explicitly: `test` permits deliberate writes and commands; `production` permits GET-only conformance runs. The example uses a test system. `ocpiVersion` accepts `2.1.1`, `2.2`, `2.2.1` or `2.3.0`. Then run the OCPI credentials handshake: ``` POST /api/v1/connections/{id}/register ``` A `502` response carries the handshake failure detail in `message`. Fix the endpoint and re-register. Status must be `registered` before runs. #### Start a conformance run ``` POST /api/v1/testing/runs?wait=55 { "connectionId": "" } ``` Optional body field `module` restricts the run to one suite module (e.g. `"credentials"`). `wait` (seconds, max 55) long-polls: if the run finishes inside the window you get `200` with the verdict; otherwise `202` with ids to keep polling. Terminal (`200`): ```json theme={null} { "success": true, "data": { "executionId": "9f4e…", "reportId": "665f1a…", "status": "completed", "summary": { "total": 75, "passed": 75, "failed": 0 } } } ``` Still running (`202`): ```json theme={null} { "success": true, "data": { "executionId": "9f4e…", "reportId": "665f1a…", "status": "running" } } ``` #### Poll until terminal ``` GET /api/v1/testing/runs/{reportId}?wait=55 ``` Long-polls up to 55s and returns the current report; loop while `data.status` is `queued`, `running`, `recovering` or `recovery_required`. Recovery can need operator action; the job timeout still bounds the wait. The terminal report includes the full per-check evidence (`data.suites[]`, each check with request/response exchanges) alongside `data.summary`. #### Exit contract A pass requires a completed run, at least one graded check (`passed + failed > 0`) and zero failed checks. Warnings remain nonfatal because declining a recommendation breaks no requirement. A run that graded nothing proves nothing and exits `2`, for no answer. Graded failures exit `1`, for a broken requirement. An unfinished run with no failures also exits `2`. Read `data.suites[]` for the evidence. A completed run with zero failures can still have incomplete scope. `data.withheldModules` names modules excluded by the plan, and `data.summary.unobservable` counts checks that nothing could grade. The recipe returns success only for the checks that ran, listing both limits. An absent `unobservable` means zero for legacy reports; malformed counters or module lists are no answer, not a pass. #### Share the report ``` POST /api/v1/testing/runs/{reportId}/share DELETE /api/v1/testing/runs/{reportId}/share (revoke) ``` Successful share creation returns: ```json theme={null} { "success": true, "data": { "shareToken": "…" } } ``` Anyone with the link can read the report (owner identity is stripped): ``` https://chargerdojo.com/report/{shareToken} ``` The recipe prints a shared report for completed or failed runs with valid counters, including graded failures. Runs that stop without results return no answer; inspect run history for their evidence. #### Run history ``` GET /api/v1/testing/runs?limit=20[&cursor=…][&connectionId=…][&status=…] ``` Cursor-paginated, newest first (`meta.nextCursor` when more pages exist). List rows omit the heavy `suites` payload. Fetch a run by id for detail. #### What changed since the last run ``` GET /api/v1/testing/runs/{reportId}/regression-diff ``` Compares a conformance run with the previous comparable run against the same endpoint, OCPI version and module. `data.regressions` lists the checks that passed then and fail now, and `data.recoveries` the reverse. `data.comparable` is `false` when there is nothing to compare with, and `data.incomparableReason` says why; that is never a pass. #### Read a connection's schedule ``` GET /api/v1/connections/{id}/schedule ``` Returns the recurring run set on a connection: its cadence, whether it is paused and why (`pausedReason`), the next run (`dueAt`) and what the last scheduled run found (`lastOutcome`). A connection with no schedule answers `404`. Schedules are set in the app. #### Usage and quota headroom ``` GET /api/v1/usage ``` Returns your plan tier and current usage against its ceilings: active connections, API keys, in-flight runs and the per-minute run rate, runs started this month, and the report-retention window in days. Useful before a matrix build fans out: if `runs.inflight` is at `runs.inflightCap`, stagger the jobs instead of burning retries on `429`s. ### Error semantics | Status | Meaning | Recovery | | - | - | - | | `401` | Missing, invalid, or revoked API key | Create/rotate a key in Settings | | `402` | Your plan lacks a capability or has reached its published connection ceiling | Read `capability` or `limit` in the body; upgrade or free a connection slot | | `404` | Target/report not found or belongs to another organisation | Check ids via the list endpoints | | `409` | Active-key cap or connection backstop on a quoted plan reached | Revoke an unused key or remove an unused connection; see `GET /api/v1/usage` | | `429` | Run rate limit or in-flight cap reached | Wait `Retry-After` seconds, then retry | | `502` | OCPI handshake with your endpoint failed | `message` carries the failure detail | | `503` | Sandbox endpoint temporarily unavailable | Retry shortly | ### GitHub Actions recipe ```yaml theme={null} - name: OCPI conformance shell: bash timeout-minutes: 15 env: DOJO_KEY: ${{ secrets.DOJO_KEY }} DOJO_CONNECTION_ID: ${{ vars.DOJO_CONNECTION_ID }} run: | set -euo pipefail BASE="https://chargerdojo.com/api/v1/testing" AUTH="Authorization: Bearer $DOJO_KEY" HEADERS=$(mktemp) RESPONSE=$(mktemp) trap 'rm -f "$HEADERS" "$RESPONSE"' EXIT # This POST sends no Idempotency-Key, so only an explicit 429 says no run was enqueued. post_with_rate_limit() { local url=$1 response http delay waited=0 shift for attempt in 0 1 2 3; do if response=$(curl -sS --fail-with-body --connect-timeout 10 --max-time 65 \ -D "$HEADERS" -w '\n%{http_code}' -X POST "$url" -H "$AUTH" "$@"); then http=${response##*$'\n'} if [[ "$http" =~ ^2[0-9][0-9]$ ]]; then printf '%s' "${response%$'\n'*}" return 0 fi else http=${response##*$'\n'} fi if [ "$http" != 429 ]; then printf '%s\n' "$response" >&2 echo "Could not confirm POST. Check run history before starting again." >&2 return 2 fi delay=$(awk ' tolower($0) ~ /^retry-after:/ { value=$0 sub(/^[^:]*:[ \t]*/, "", value) sub(/[ \t\r]+$/, "", value) } END { if (value ~ /^[0-9]+$/ && value + 0 <= 120) printf "%d", value else print "invalid" } ' "$HEADERS") if ! [[ "$delay" =~ ^[0-9]+$ ]] || [ "$delay" -gt 120 ]; then echo "Missing or over-budget Retry-After; stopping." >&2 return 2 fi if [ "$attempt" -eq 3 ] || [ $((waited + delay)) -gt 120 ]; then echo "Rate-limit retry budget exhausted." >&2 return 2 fi waited=$((waited + delay)) sleep "$delay" done } check_run() { printf '%s' "$1" | jq -es ' length == 1 and (.[0] | .success == true and (.data | type) == "object" and (.data.status as $status | ["queued", "running", "recovering", "recovery_required", "completed", "failed", "cancelled", "interrupted"] | index($status) != null)) ' > /dev/null || { echo "Malformed run response." >&2; return 2; } } RESULT=$(post_with_rate_limit "$BASE/runs?wait=55" \ -H "Content-Type: application/json" \ -d "$(jq -cn --arg id "$DOJO_CONNECTION_ID" '{connectionId: $id}')") check_run "$RESULT" REPORT_ID=$(printf '%s' "$RESULT" | jq -er '.data.reportId | select(type == "string" and test("\\S")) | @uri') || exit 2 while :; do STATUS=$(printf '%s' "$RESULT" | jq -r '.data.status') case "$STATUS" in completed|failed|cancelled|interrupted) break ;; queued|running|recovering|recovery_required) ;; *) echo "Unknown run status." >&2; exit 2 ;; esac # GET retries are safe and curl honors Retry-After. if ! HTTP=$(curl -sS --fail-with-body --retry 3 --retry-max-time 120 --max-time 65 \ -o "$RESPONSE" -w '%{http_code}' "$BASE/runs/$REPORT_ID?wait=55" -H "$AUTH"); then cat "$RESPONSE" >&2 exit 2 fi if ! [[ "$HTTP" =~ ^2[0-9][0-9]$ ]]; then echo "Unexpected polling HTTP status: $HTTP" >&2 exit 2 fi RESULT=$(cat "$RESPONSE") check_run "$RESULT" done case "$STATUS" in cancelled|interrupted) echo "Run ended as '$STATUS' without a verdict; no answer. Check run history." exit 2 ;; failed) if ! printf '%s' "$RESULT" | jq -e '.data | has("summary")' > /dev/null; then echo "Run stopped before results were recorded; no answer. Check run history." exit 2 fi ;; esac if ! printf '%s' "$RESULT" | jq -e ' def count: type == "number" and . >= 0 and . == floor; (.data.summary | type) == "object" and (.data.summary.passed | count) and (.data.summary.failed | count) and (.data.summary | if has("unobservable") then (.unobservable | count) else true end) and (.data | if has("withheldModules") then (.withheldModules | type) == "array" and all(.withheldModules[]; type == "string" and test("\\S")) else true end) ' > /dev/null; then echo "Malformed run results; no answer." >&2 exit 2 fi printf '%s' "$RESULT" | jq '.data.summary' SHARED=$(post_with_rate_limit "$BASE/runs/$REPORT_ID/share") printf '%s' "$SHARED" | jq -es 'length == 1 and (.[0] | .success == true and (.data | type) == "object")' > /dev/null || exit 2 SHARE=$(printf '%s' "$SHARED" | jq -er '.data.shareToken | select(type == "string" and test("\\S")) | @uri') || exit 2 echo "Report: https://chargerdojo.com/report/$SHARE" case "$STATUS" in completed|failed) ;; *) echo "Run ended without a verdict; no answer."; exit 2 ;; esac if ! printf '%s' "$RESULT" | jq -e '(.data.summary.passed + .data.summary.failed) > 0' > /dev/null; then echo "The run graded no checks; no answer." exit 2 fi PASSED=$(printf '%s' "$RESULT" | jq '.data.summary.passed') FAILED=$(printf '%s' "$RESULT" | jq '.data.summary.failed') if printf '%s' "$FAILED" | jq -e '. > 0' > /dev/null; then echo "OCPI conformance: $FAILED required checks failed" exit 1 fi if [ "$STATUS" != completed ]; then echo "The run stopped before it finished; no answer." exit 2 fi UNGRADED=$(printf '%s' "$RESULT" | jq '.data.summary.unobservable // 0') WITHHELD=$(printf '%s' "$RESULT" | jq -r '.data.withheldModules // [] | join(", ")') if [ -n "$WITHHELD" ] || printf '%s' "$UNGRADED" | jq -e '. > 0' > /dev/null; then echo "OCPI conformance: every check that ran passed ($PASSED checks); not tested: ${WITHHELD:-none} (+$UNGRADED ungraded)" exit 0 fi echo "OCPI conformance: all $PASSED checks passed" ``` `timeout-minutes` is the backstop for polling. POST requests retry only an explicit `429`, with at most three retries and 120 cumulative seconds of server-provided integer `Retry-After` delays. Missing, malformed or over-budget delays stop the job. Other HTTP or transport failures do not retry a POST: the server may already have accepted work, so inspect run history before starting again. Sharing must succeed with a nonempty token before the recipe prints its link. Run the script with Bash, curl and jq installed. In GitLab CI or Jenkins, use Bash, configure the same job timeout and adapt the secret injection to that system. # Test a private endpoint Source: https://docs.chargerdojo.com/guide/connect-a-local-endpoint Choose a local connector or public tunnel for a private OCPI service, complete registration, verify discovery URLs and stop access after testing. Use a connector or tunnel when the OCPI service you want to test runs on localhost or inside a private network. You need Integrate or above to test your own endpoint. | Task | Use | What must stay running | | - | - | - | | Conformance suites, with ChargerDojo starting registration | A local connector, or a public tunnel | The connector or tunnel process | | Charging journeys, load runs or an incoming registration callback | A public tunnel | The tunnel and your service | A connector makes an outbound WebSocket connection to ChargerDojo and forwards requests to the local origins you name. A tunnel gives your service a public HTTPS address. Check your service's OCPI token authentication before exposing that address. ## Install it Download your platform's binary and verify it before starting the connector. The macOS and Linux commands also install it on your `PATH`. **macOS, Apple silicon:** ```bash theme={null} curl -fsSLO https://github.com/chargerdojo/dojo-connect/releases/latest/download/dojo-connect-darwin-arm64 curl -fsSLO https://github.com/chargerdojo/dojo-connect/releases/latest/download/checksums.txt shasum -a 256 --ignore-missing -c checksums.txt sudo install -m 755 dojo-connect-darwin-arm64 /usr/local/bin/dojo-connect ``` **macOS, Intel:** the same, with `dojo-connect-darwin-amd64`. **Linux, x86-64:** ```bash theme={null} curl -fsSLO https://github.com/chargerdojo/dojo-connect/releases/latest/download/dojo-connect-linux-amd64 curl -fsSLO https://github.com/chargerdojo/dojo-connect/releases/latest/download/checksums.txt sha256sum --ignore-missing -c checksums.txt sudo install -m 755 dojo-connect-linux-amd64 /usr/local/bin/dojo-connect ``` **Linux, arm64:** the same, with `dojo-connect-linux-arm64`. **Windows, x86-64**, in PowerShell: ```powershell theme={null} Invoke-WebRequest https://github.com/chargerdojo/dojo-connect/releases/latest/download/dojo-connect-windows-amd64.exe -OutFile dojo-connect.exe Invoke-WebRequest https://github.com/chargerdojo/dojo-connect/releases/latest/download/checksums.txt -OutFile checksums.txt Get-FileHash .\dojo-connect.exe -Algorithm SHA256 ``` On Windows, compare the printed hash with the `dojo-connect-windows-amd64.exe` entry in `checksums.txt`. Check it worked: ```bash theme={null} dojo-connect --version ``` The release binaries are unsigned. Check the published checksum before running them and follow your operating system's approval process for downloaded software. ## Pair it As an organisation admin, under **Testing**, open **Endpoints**, then choose **Add an endpoint**, or **Add endpoint** once you have one. Choose **Behind a local connector**, then **Pair a connector**. Give it a name you will recognise in endpoints and reports. Later connectors can be paired in **Local connectors** on the Endpoints page. Copy the `cdpair_` token when it appears. It is shown once. If you lose it, revoke that connector and pair a new one. ## Run it In Bash or zsh, read the pairing token without echoing it or saving it in shell history, then start the connector beside your service: ```bash theme={null} printf 'Pairing token: ' read -rs DOJO_CONNECTOR_TOKEN printf '\n' export DOJO_CONNECTOR_TOKEN dojo-connect --target http://localhost:8000 ``` In PowerShell, from the download folder: ```powershell theme={null} $env:DOJO_CONNECTOR_TOKEN = [System.Net.NetworkCredential]::new('', (Read-Host 'Pairing token' -AsSecureString)).Password .\dojo-connect.exe --target http://localhost:8000 ``` Change `--target` to your service's origin; repeat it if the service answers on more than one port. The terminal prints `connected as target ""`. That name comes from `--name` or the machine hostname. The app uses the name you entered when pairing. Confirm the connector shows as connected in **Endpoints**, select it in the endpoint form and enter the local OCPI base URL it forwards to. [Save and register the endpoint](/guide/connect-a-partner#add-the-endpoint-in-the-browser). Continue when its state is **Registered**, then run a conformance suite. Registration is setup success, not a conformance verdict. Keep the connector running until the run finishes. Press Ctrl+C to stop it. Revoke it from **Local connectors** when it is no longer needed. One pairing token supports one connected machine; pair another connector for another machine. ## Where it will and will not send requests The connector forwards only to origins named by `--target`. Loopback spellings for the same machine are equivalent. Other hosts or ports are refused by name. By default it permits loopback and private-network addresses, including carrier-grade NAT and link-local ranges, and checks DNS results when it opens a connection. `--allow-public-target` permits public targets deliberately; cloud instance metadata addresses remain refused. ChargerDojo's server does not resolve or dial the private address on this path. ## What you are trusting Anyone holding the pairing token can answer as your endpoint. Keep it in a secret store and revoke it if it leaks. Do not put it in shared terminal history, tickets or CI logs. ## What it does not do yet ### Can I run a charging journey over a connector? Connectors carry conformance runs. Charging journeys and load runs require a public endpoint or tunnel; an API request for a connector-backed journey is refused. ### How large a response can it carry? The default frame limit permits a response body of about 6 MiB after Base64 encoding overhead. A larger response fails with a message naming the body budget. Read the reported budget rather than treating the frame size as usable body space. ### What happens if the connector is not running when a run starts? The run refuses to start and names the disconnected connector. Start it, confirm the connected state in the app and try again. ### What happens if the connector drops mid-run? The transport waits once for a reconnect gap, by default up to two seconds. A replacement socket can continue the run; the report records the reconnect. If the gap outlasts that wait, requests fail with a connector error. Check the connector before attributing those failures to the endpoint. ## Start a tunnel Use a tunnel when you need charging journeys or an incoming registration callback, or prefer public HTTPS to a connector. Replace port `8000` with your service's port. ### cloudflared [Install cloudflared](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/), then start a [Quick Tunnel](https://developers.cloudflare.com/tunnel/get-started/quick-tunnels/): ```bash theme={null} cloudflared tunnel --url http://localhost:8000 ``` Copy the temporary `https://.trycloudflare.com` URL. A Quick Tunnel needs no Cloudflare account and stops serving your service when its process stops. ### ngrok [Install ngrok](https://ngrok.com/docs/getting-started/), add the authtoken from your account, then run: ```bash theme={null} ngrok config add-authtoken ngrok http 8000 ``` Copy the HTTPS URL on the **Forwarding** line. ngrok assigns a static development domain to your account and uses it by default, so restarting does not inherently change that hostname. See [ngrok domains](https://ngrok.com/docs/gateway/domains#dev-domains). Leave either tunnel running while you test. Cloudflare Quick Tunnel addresses are temporary; if your tunnel's public address changes, [update the connection](#when-the-tunnel-url-changes). ## Check it from outside your machine This Bash or zsh example checks the public versions URL on OCPI 2.2.1. Read the endpoint's registration token without saving it in shell history: ```bash theme={null} printf 'Registration token: ' read -rs TOKEN_A printf '\n' curl --fail-with-body -sS "https:///ocpi/versions" \ -H "Authorization: Token $(printf %s "$TOKEN_A" | base64 | tr -d '\n')" ``` The header carries Base64 from OCPI 2.2 onward; OCPI 2.1.1 sends the token raw. Removing newlines keeps GNU Base64's wrapping out of the header. Use `https:///ocpi` as `partnerBaseUrl`, not the `/versions` URL. If the versions URL has another shape, pass it exactly in `partnerVersionsUrl`. Choose `partnerEnvironment` explicitly: `test` for a system that may receive writes and commands, `production` for GET-only conformance runs. A tunnel does not make a production service a test system. [Connect an endpoint](/guide/connect-a-partner#add-the-endpoint-through-the-api) extracts the created id and completes registration. ## Check every advertised URL Every discovery URL your service returns must be reachable by the tester. Configure its public base URL to use the tunnel host. Check the version-details URL in `/versions`, the credentials URL in version details and the module URLs it advertises. A successful first GET does not prove those later addresses work. If discovery returns `http://localhost:8000/...`, ChargerDojo refuses that private address on the public transport. Fix the advertised address, then register again. ## When the tunnel URL changes Only the connection creator or an organisation admin can change its address. In **Endpoints**, choose the pencil beside the base URL, enter the new address and choose **Change address**. Operation reference: [`PUT /connections/{id}/address`](/api-reference/connections/change-a-connections-address). With the existing id in `CONNECTION_ID` and your paid API key in `DOJO_KEY`: ```bash theme={null} curl --fail-with-body -sS -X PUT \ "https://chargerdojo.com/api/v1/connections/$CONNECTION_ID/address" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d '{ "partnerBaseUrl": "https:///ocpi" }' ``` The id, tokens and reports stay with the connection. A previously registered connection becomes pending while the new address is checked, then registered on success. One that has never registered still needs **Register**. Address changes are refused while a run uses the endpoint. Use address change rather than **Update credentials** when the old host is gone. ## Control access to the tunnel Anyone with the tunnel URL can reach your service while the process runs. The OCPI token check controls access; the hostname is not an authentication method. Use test data and stop the tunnel after the run. Browser sign-in controls such as ngrok OAuth or Cloudflare email authentication block ChargerDojo's noninteractive requests too. Keep OCPI authentication enabled on your service. ## Speed Tunnel latency is part of the observed request time. A load run through a tunnel measures both the tunnel and the service, so do not use it alone to size production capacity. ## Next [Connect an endpoint](/guide/connect-a-partner), confirm **Registered**, then [run a conformance suite](/guide/run-a-suite). Use a public tunnel for a [charging journey](/guide/run-a-charging-journey). # Connect an endpoint Source: https://docs.chargerdojo.com/guide/connect-a-partner Register your own or a partner's OCPI endpoint with ChargerDojo, confirm the credentials handshake, and start your first conformance test. Add the endpoint you want to test, then register it with ChargerDojo. The [credentials handshake](/guide/glossary#how-two-platforms-connect) exchanges the tokens both systems need to call each other. This guide covers the direction where ChargerDojo starts registration using a token issued by the endpoint. If the partner's client will start registration instead, [let a partner register](/guide/let-a-partner-register). ## Before you start You need Integrate or above to test your own or a partner's endpoint. To use the API examples, you also need [an API key](/guide/create-an-api-key) in `DOJO_KEY`, plus `curl` and `jq`. Ask the endpoint operator for: | Value | What to check | | - | - | | OCPI base URL | Use the base address for the versions endpoint. For `https://partner.example.com/ocpi/versions`, the base is `https://partner.example.com/ocpi`. | | Registration token, [Token A](/guide/glossary#how-two-platforms-connect) | Use the token the endpoint issued for this registration. | | OCPI version | Choose the version the endpoint runs. | The endpoint operator issues Token A outside OCPI. See [OCPI 2.2.1 registration](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/credentials.asciidoc#credentials_registration). OCPI lets each party choose its addresses; see [OCPI 2.2.1 Versions](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/version_information_endpoint.asciidoc#version_information_endpoint_version_information_endpoint) and [Interface endpoints](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/transport_and_format.asciidoc#transport_and_format_interface_endpoints). If the endpoint is inside a private network, [choose a connector or tunnel](/guide/connect-a-local-endpoint) for conformance runs. For a private endpoint, charging journeys require a public tunnel. ## Choose which role ChargerDojo plays The endpoint is the system under test. ChargerDojo plays its counterparty. | Endpoint under test | ChargerDojo plays | | - | - | | [charge point operator, CPO](/guide/glossary#who-the-parties-are), `theirRole: CPO` | eMSP, `ourRole: EMSP` | | [e-mobility service provider, eMSP](/guide/glossary#who-the-parties-are), `theirRole: EMSP` | CPO, `ourRole: CPO` | These are common CPO/eMSP examples. For a terminal platform or roaming hub, follow the corresponding setup in the app and [hub guide](/guide/test-a-roaming-hub). The [create-endpoint reference](/api-reference/connections/create-a-partner-endpoint) lists the complete API fields and role values. ## Roles and request direction The roles you select describe the businesses. [Sender and Receiver](/guide/glossary#how-two-platforms-connect) describe a module's data interface, so they do not say who starts registration. | Roles | Request direction | | - | - | | CPO target, ChargerDojo as eMSP | ChargerDojo pulls Locations from the CPO's Sender interface. | | eMSP target, ChargerDojo as CPO | ChargerDojo pushes a Session to the eMSP's Receiver interface. | | Partner's client, ChargerDojo as Credentials Receiver | Their client starts the handshake; ChargerDojo calls back to their advertised URL. | Sources: [OCPI 2.2.1 InterfaceRole](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/version_information_endpoint.asciidoc#version_information_endpoint_interface_role_enum) and [OCPI 2.2.1 registration](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/credentials.asciidoc#credentials_registration). The [OCPI 2.2.1 Endpoint class note](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/version_information_endpoint.asciidoc#version_information_endpoint_endpoint_class) states that the role property is not relevant for the credentials module, which is the same for all roles. The educational [simulator](https://chargerdojo.com/ev-charging-simulator/) edits hosted state and does not call your partner. ## Choose test or production Adding an endpoint asks `Is this a test system or a live production system?` There is no preselected answer. The API requires `partnerEnvironment`, either `test` or `production`, too. Choose `test` only when the endpoint operator permits test objects, commands and deliberate bad behaviour. Production sweeps send GET requests only. Withheld writes are Not tested with their reason, so passing reads give Partial coverage. Journeys, scheduled journeys and manual writes are refused. Registering, verifying, updating credentials and unregistering remain available. Existing endpoints count as test systems. Confirm that once on the endpoint card, or mark the endpoint production. The creator or an admin can use the card's change control or [`PUT /connections/:id/environment`](/api-reference/connections/mark-an-endpoint-as-a-test-system-or-production). Changes are audited. Conformance runs and ordinary journeys already admitted retain their recorded environment. Queued or running load tests stop before another write when the endpoint or its hub companion is marked production. ```bash theme={null} curl --fail-with-body -sS -X PUT "https://chargerdojo.com/api/v1/connections/$CONNECTION_ID/environment" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d '{"partnerEnvironment":"production"}' ``` Objects a run invents use `CONF-` for a conformance sweep or `JRN-` for a journey. An invented EVSE ID keeps its standard format and carries CONF or JRN in its local identifier. Identifiers the endpoint serves and registered party identities stay unchanged. Use these markers to find test data on the endpoint. Accepted CDRs cannot be deleted; credit them instead. ## Add the endpoint in the browser Under **Testing**, open **Endpoints**, then choose **Add an endpoint**, or **Add endpoint** once you have one. Select the system you want to test, then who starts registration, how ChargerDojo reaches it and its version. Enter the base URL, answer whether it is a test system or a live production system, then enter the registration token. Read the versions URL shown under the address. If you received a full versions URL and are unsure what to enter, choose **Check this address**. Inspect the responses, then choose **Use this address** for the working candidate. Review the details, choose **Save endpoint**, then **Register**. A successful credentials exchange changes its state to **Registered**. If registration stops, open the recorded registration steps and inspect the first failed exchange before changing the token or address. ## Add the endpoint through the API This example tests a CPO test system on OCPI 2.2.1. Replace the host and registration token with the values its operator supplied. The API calls the saved endpoint record a connection. ```bash theme={null} CONNECTION=$(curl --fail-with-body -sS -X POST "https://chargerdojo.com/api/v1/connections" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d '{ "partnerBaseUrl": "https://partner.example.com/ocpi", "ourRole": "EMSP", "theirRole": "CPO", "tokenA": "THEIR-TOKEN-A", "ocpiVersion": "2.2.1", "partnerEnvironment": "test" }') CONNECTION_ID=$(printf '%s' "$CONNECTION" | jq -er '.data._id') ``` If the operator's versions URL is not the base URL followed by `/versions`, also send it exactly as given, query string included, in `partnerVersionsUrl`. A successful create returns `201` and a connection with `status: "pending"`. Now [run the credentials handshake](/api-reference/connections/run-the-ocpi-credentials-handshake-for-an-owned-connection): ```bash theme={null} curl --fail-with-body -sS -X POST \ "https://chargerdojo.com/api/v1/connections/$CONNECTION_ID/register" \ -H "Authorization: Bearer $DOJO_KEY" ``` ChargerDojo reads the endpoint's versions, discovers its credentials endpoint and exchanges credentials. A failed exchange returns HTTP `502`, with `success: false`, a `message` and `data.status: "failed"`. Read that body before retrying. [Read the saved connection](/api-reference/connections/read-one-owned-connection) to confirm its state: ```bash theme={null} curl --fail-with-body -sS "https://chargerdojo.com/api/v1/connections/$CONNECTION_ID" \ -H "Authorization: Bearer $DOJO_KEY" | jq '.data | {status, lastError}' ``` Continue when `status` is `registered`. If it is not, read `lastError` and the [registration troubleshooting steps](/guide/troubleshooting#registration). OCPI 2.1.1 sends the credentials token raw; from 2.2 onwards the header carries it Base64 encoded. ChargerDojo handles that encoding for the selected version. Choose the actual version rather than the newest one; the [coverage reference](/guide/coverage) distinguishes versions available in the app from API compatibility versions. Sources: [OCPI 2.1.1 request format](https://github.com/ocpi/ocpi/blob/28ea45329a50c3dbfd790505b97860854db1d4a6/transport_and_format.md#request-format) and [OCPI 2.2.1 Authorization header](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/transport_and_format.asciidoc#transport_and_format_authorization_header). ## When the endpoint moves Only the connection creator or an organisation admin can change its address. Keep the existing connection when only its host changes. [Change its address](/api-reference/connections/change-a-connections-address) instead of creating another registration: ```bash theme={null} curl --fail-with-body -sS -X PUT \ "https://chargerdojo.com/api/v1/connections/$CONNECTION_ID/address" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d '{ "partnerBaseUrl": "https://new-host.example.com/ocpi" }' ``` The connection keeps its id, tokens and reports. A previously registered connection becomes pending while ChargerDojo checks the new address, then registered when that check succeeds. A connection that has never registered remains pending until you choose Register. This changes the address ChargerDojo calls; it is separate from OCPI's credentials-update procedure. See [OCPI 2.2.1 changing endpoints](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/credentials.asciidoc#credentials_changing_endpoints_for_the_current_version) for the separate credentials-update procedure. ## Next A [conformance suite](/guide/glossary#words-that-only-mean-something-here) groups checks of protocol rules. [Run a suite](/guide/run-a-suite) against the registered endpoint. Your organisation can see the connection and its reports; use the [connection list reference](/api-reference/connections/list-owned-connections) to find existing endpoints and pagination parameters. # What ChargerDojo tests Source: https://docs.chargerdojo.com/guide/coverage Understand OCPI version, module and interface coverage, the sandbox's limits, and what conformance and journey reports prove about an endpoint. ChargerDojo sends OCPI requests to a selected endpoint and grades the evidence its checks inspect. A report covers that endpoint, version and selected scope. It does not establish every behaviour of an implementation. [Try a free browser test](/guide/browser-quickstart) against ChargerDojo's sandbox to inspect the evidence. A sandbox result concerns ChargerDojo's peer. Testing your own or a partner's endpoint needs Integrate or above and [registration](/guide/connect-a-partner). ## Versions and interfaces The app offers OCPI 2.1.1, 2.2.1 and 2.3.0. The API also accepts the 2.2 compatibility version, which is not selectable in the app. Choose the version the endpoint actually runs. A module advertised for a version has a conformance suite. Before running it, check which interfaces the endpoint advertises. A [CPO or eMSP](/guide/glossary) is a business role; Sender and Receiver identify a module's data interface. They do not say who starts registration. Use the [suite catalogue](/api-reference/testing/list-runnable-conformance-suites) to inspect the checks for your version and role. A [conformance suite](/guide/run-a-suite) checks protocol rules. A [charging journey](/guide/run-a-charging-journey) follows a timed interaction and separates OCPI requirements, business checks and observations in its report. ### Extensions Direct Payment is a separately published extension on OCPI 2.2.1 and part of the core specification on 2.3.0. Bookings on 2.3.0 follows the separately published `2.3.0-booking-1.1` document. See [payment-terminal testing](/guide/test-a-payment-terminal) for the applicable roles and plan. ## Sandbox limits ChargerDojo's conformance and internal parity tests do not provide external OCPI certification. ChargingProfiles serves the Receiver interface only on 2.2.1. Its Sender interface is not implemented. The sandbox also serves only the Receiver interface for ChargingProfiles on 2.2 and 2.3.0. UNKNOWN-LOCATION and UNKNOWN-EVSE always answer REJECTED, and UNKNOWN-SESSION always answers UNKNOWN_SESSION, so you can exercise the rejection paths on purpose. From 2.2 onward, the sandbox keeps Sender-owned and Receiver-owned data separate. An object pushed to a Receiver URL does not become an object on the sandbox's Sender list. On 2.1.1 those stores still merge. Older 2.3.0 CDRs stored before that separation can still appear on the Sender list; newly pushed CDRs stay separate. The sandbox enforces ownership. Name a party your credential did not register in a client-owned URL and the sandbox answers a miss, on every version, as a real receiver may. On 2.2, 2.2.1 and 2.3.0 the sandbox keeps every object a run pushes, Commands aside, across ChargerDojo releases. On 2.1.1 it does not yet keep pushed objects through a release. Each sandbox keeps its own objects, apart from your other sandboxes and other accounts. Signed in, the sandbox card on the Endpoints page counts stored objects and offers **Clear pushed objects**; the sandbox's seed data returns on the next request. On 2.2.1 and 2.3.0 the count and the clear leave out Payments Terminals and Financial Advice Confirmations, and on 2.3.0 also Sessions, CDRs, Tokens and Bookings, which are kept for up to 90 days. The card says so under the count. Sandbox credentials are provisioned directly rather than exchanged through a loopback credentials handshake. Use a registered external endpoint when you need evidence about registration with your implementation. ## How checks are tested Deliberately broken peers test whether checks detect the defect they are meant to find. Conformance checks, scenario walkthroughs and charging journeys have separate mutation sweeps. Their scope and exemptions differ; a passing sandbox demonstration alone does not prove every check can detect every possible defect. Internal parity tests run the tester against ChargerDojo's own routes. This checks that those routes and suites agree. It does not replace interoperability testing with another implementation or external certification. ## Read the result within its scope A failed required rule needs investigation. Warnings identify recommendations or observations and do not increment the failed-check count. Not tested means no graded result; not applicable means the rule is outside this endpoint's responsibilities. Read the recorded reason before deciding what remains to test. [Read your report](/guide/read-your-report) to follow a finding to its exchange and applicable clause. A partner agreement is a separate authority from OCPI; a product policy is not an OCPI requirement. # Create an API key Source: https://docs.chargerdojo.com/guide/create-an-api-key Create, store, rotate and revoke the cdojo_ API key that authenticates account operations in the ChargerDojo public API from your scripts and CI. Use an API key beginning with `cdojo_` for account operations such as registering endpoints and starting runs. The public suite catalogue needs no key. Create keys in the app, never through the API. ## Prerequisites * The **Integrate plan** or above. The free tier is for interactive evaluation in the browser; it cannot create API keys. See [Plans and pricing](/guide/plans). * Sign in as an **Admin** or **Owner** of the organisation that will own the key. ## Create the key 1. Sign in at [chargerdojo.com](https://chargerdojo.com). 2. Open the **Credentials** tab of [Settings](https://chargerdojo.com/settings?tab=credentials). 3. Choose **Create key** and give it a name that says where it will be used, such as `github-actions-roaming-ci`. The name is how you will recognise it at revocation time. 4. Copy the key. > [!WARNING] > > The plaintext key is shown **once**, at creation. It is not retrievable afterwards: > the app lists only the key's name, prefix and metadata. If you lose it, revoke it and > create a new one. ## Store it like a secret, because it is one Put the key straight into a secret manager (GitHub Actions secrets, GitLab CI variables, Vault, AWS Secrets Manager) and expose it to jobs as an environment variable: ```bash theme={null} export DOJO_KEY="(paste from your secret manager, not from a file in the repo)" ``` Then reference only the variable in scripts, for example to [read usage](/api-reference/usage/read-the-key-owners-plan-limits-and-current-usage): ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/usage" \ -H "Authorization: Bearer $DOJO_KEY" ``` Rules that prevent the common leaks: * Never commit a key, paste it into a ticket, or hardcode it in a script. * Never `echo` the key or pass it as a command-line argument that lands in shell history or CI logs. Read it from the environment. * Give each pipeline its own key, so revoking one does not break the others. ## Rotate and revoke Each organisation shares a cap of **10 active keys** across its members. The cap is the same on every plan, and revoking one frees its slot at once. Your organisation's current count is in [`GET /api/v1/usage`](/api#limits-and-usage) alongside the cap. When an active-key slot is available: 1. Create a new key in **Settings**, then **Credentials**. 2. Update the secret in your CI store and confirm an authenticated request succeeds with the replacement. 3. Revoke the old key from the same page. At the 10-key cap, revoke an unused key first to make room. If all keys are in use, pause the affected pipeline, revoke the key being replaced, create its replacement and update that pipeline's secret before restarting it. Requests using the revoked key return `401` during that gap. Revocation is immediate: requests with a revoked key start returning `401`. Revoke a key the moment you suspect it leaked; creating its replacement takes seconds. ## There is no key-management API, deliberately Creating, listing and revoking keys requires your signed-in browser identity. A `cdojo_` key cannot mint another key, list your keys, or revoke one. This keeps a leaked CI key from quietly granting itself successors. ## Next To fail a GitHub build on a broken OCPI rule, follow the four steps in [On GitHub Actions](/guide/run-a-suite#on-github-actions). To try the API by hand first, run your [first conformance run from the command line](/guide/quickstart). # Glossary Source: https://docs.chargerdojo.com/guide/glossary The OCPI and ChargerDojo terms these guides use: CPO, eMSP, CDR, Token A, sender and receiver, module, and the words that only mean something here. These guides assume some vocabulary. This page is the shortest version of it. For the protocol itself, rather than the words, the [Learn section](https://chargerdojo.com/learn/) is free and goes much deeper. ## Who the parties are **CPO**, Charge Point Operator. Operates a network of Charge Points. Hardware ownership is not part of this role definition. A company can provide both CPO and eMSP services. [More](https://chargerdojo.com/learn/ocpi-explained/). **eMSP**, e-Mobility Service Provider. Has the drivers. Issues the card or the app, authorizes a charge, and bills the person at the end. Often written EMSP in code and API fields, including ours. **Hub.** Sits between many CPOs and many eMSPs so each one integrates once instead of n times. The `HUB` role appears in the Role enum of OCPI 2.2 and 2.2.1 only, and 2.3.0 drops the value: a 2.3.0 hub names itself in `hub_party_id`. 2.1.1 mentions roaming "via a hub" but has no Role enum, no message-routing headers and no HubClientInfo module. ChargerDojo tests 2.1.1, 2.2, 2.2.1 and 2.3.0 regardless of that, and [tests your own hub](/guide/test-a-roaming-hub) on 2.2, 2.2.1 and 2.3.0, the versions that define message routing. See [roaming hub testing](https://chargerdojo.com/ocpi-roaming-hub-testing/) for what it grades. **PTP**, Payment Terminal Provider. Operates the payment terminal management system. PTP is a market role in 2.3.0 terminology, not a core Role enum value. ChargerDojo [tests your own PTP](/guide/test-a-payment-terminal) on 2.2.1 and 2.3.0. See [payment terminal testing](https://chargerdojo.com/ocpi-payment-terminal-testing/) for what it grades. **CSMS**, Charging Station Management System. The platform a charger talks to over OCPP. It is not an OCPI party, and it appears in these guides only where a journey compares what your CSMS believes with what you report over OCPI. Protocol sources: [OCPI 2.2.1 market roles](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/terminology.asciidoc#terminology_roles); [OCPI 2.3.0 market roles](https://github.com/ocpi/ocpi/blob/9ed1e39c24f5b84cb1e4008939f47bea838f9b25/terminology.asciidoc#terminology_roles) and [Credentials](https://github.com/ocpi/ocpi/blob/9ed1e39c24f5b84cb1e4008939f47bea838f9b25/credentials.asciidoc#credentials_credentials_object). ## What moves between them **Session.** A charge, from the moment it is set up to the moment it closes. Its initial state is `PENDING`, which the spec is careful to say "might never become an active session", so a session existing is not the same as energy flowing. [Walkthrough](https://chargerdojo.com/learn/charging-session/). **CDR**, Charge Detail Record. The final, immutable record of one completed charge: how much energy, how long, what it cost. The thing the bill is built from, and the thing a duplicate of causes a driver to be charged twice. [What that failure looks like](https://chargerdojo.com/learn/scenarios/charged-twice/). **Token.** How a driver is identified: an RFID card, an app, a contract id. Not to be confused with the credentials tokens below, which are how two *platforms* authenticate to each other. **Tariff.** What a charge costs, published by the CPO so the eMSP can show a price before the driver plugs in. **Location.** A physical site, its charge points, their EVSEs and their connectors. An EVSE is not a charge point: the spec calls it "an independently operated and managed part of a Charge Point that can deliver energy to one EV at a time", and a charge point has one or more. Modelling them as the same thing is what produces wrong `evse_uid` values. Definitions: [OCPI 2.2.1 SessionStatus](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/mod_sessions.asciidoc#mod_sessions_sessionstatus_enum), [CDRs](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/mod_cdrs.asciidoc#mod_cdrs_cdrs_module) and [EVSE](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/mod_locations.asciidoc#mod_locations_evse_object). ## How two platforms connect **Module.** One area of the protocol with its own endpoints: Locations, Sessions, CDRs, Tariffs, Tokens, Commands, Credentials, and more in later versions. A version *advertises* the modules it implements, and we only run a suite for a module **the version** defines. What the **peer** advertised is handled one level down: a check against a module they do not implement grades nothing rather than failing them. **Versions endpoint.** The one URL you exchange to begin. Everything else is discovered from it: it lists the OCPI versions a platform speaks, each pointing at a detail document that lists that version's module endpoints. When you create a connection here we ask for the URL it hangs off instead, because that is what the rest of the row is built from; pasting the versions URL into that field gets you `.../versions/versions`, and [Connect a partner endpoint](/guide/connect-a-partner) shows what to do about it. **Sender and receiver.** From 2.2 onward each module has two interfaces and a party implements one, the other, or both. The names describe who owns the data, not who makes the call: the spec calls SENDER the "Interface implemented by the owner of data, so the Receiver can Pull information from the data Sender/owner". So the SENDER interface is usually the read surface, and pushing into a peer means calling their RECEIVER. A peer advertising a module for one interface has generally said it does not implement the other, with one exception you will meet immediately: Credentials. The spec says the role property "is not relevant as this module is the same for all roles", so do not read a partner's `credentials/SENDER` as a refusal to accept your registration POST. **Token A, B and C.** The three credentials tokens of the registration handshake, and the commonest source of a 401 that looks like something else. **Token A** is the registration token the receiving party issues out of band; once the exchange finishes it may no longer be used. Then each side generates one token and uses **the other's**, which is the part people get backwards. The sender generates **Token B** and POSTs it; the receiver stores Token B and uses it for its requests back. The receiver generates **Token C** and returns it; the sender uses Token C for everything afterwards. If a partner is still sending Token A after registering, that is why everything returns 401. [The handshake](/guide/connect-a-partner). **country_code and party_id.** The two fields that identify a party, together. From 2.2 they also travel as routing headers, though not on every request, and never on Credentials, Versions or HubClientInfo, which are point-to-point. OCPI 2.1.1 has no routing headers at all. Your partner needs both to address you. Sources: [OCPI 2.2.1 Versions](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/version_information_endpoint.asciidoc#version_information_endpoint_version_information_endpoint), [OCPI 2.2.1 InterfaceRole](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/version_information_endpoint.asciidoc#version_information_endpoint_interface_role_enum), [OCPI 2.2.1 registration](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/credentials.asciidoc#credentials_registration), and [OCPI 2.2.1 routing headers](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/transport_and_format.asciidoc#transport_and_format_message_routing). ## Words that only mean something here **Sandbox.** Our built-in OCPI peer. A real implementation answering real HTTP, free to run against at every tier. Its registration is short-circuited rather than handshaken over loopback, which our own SSRF guard would refuse. A green sandbox run proves the tool works, not that your implementation does. [Where the free line falls](/guide/plans#what-is-free). **Connection**, sometimes called a target. One partner endpoint you test against, plus the credentials for it. **Conformance check.** One rule asserted against one exchange. Passes, fails, or grades nothing. **Scenario.** A story walked end to end, chaining its own output from step to step, rather than one rule against one exchange. Run the same way as a suite, never part of a sweep, and covered by its own stricter falsifiability sweep. See [Read your report](/guide/read-your-report). **Charging journey.** A timed run of a whole charging story against one endpoint, the sandbox or your own, with disturbances injected. Every journey is graded in four groups: conformance, partner compatibility, business checks, and observations. Minutes, not seconds. [Run one](/guide/run-a-charging-journey). **Journey pack.** A named group of journeys that belong together, such as core charging or roaming. It picks which stories are on the menu, not how any of them runs. **Coverage depth.** How hard a journey pushes: `happy-path` walks the story as it should go, `edge-cases` adds the awkward ones, `adversarial` tries to break you. **Load run.** A journey run at volume to measure behaviour under concurrency. Not a conformance result, and meaningless over a tunnel, which it measures as much as it measures you. **Warning.** A rule the spec only recommends that your partner declined. Never a failure, and never a reason to fail a build. [Why](/guide/read-your-report). **Not tested.** The response carried nothing to grade, or no request was sent. The report counts these checks separately from passes and failures and says what prevented each check. The API calls this count `unobservable`. **Not applicable.** A rule outside your endpoint's responsibilities: a module or interface your version details do not offer, a role we did not register with you, or a rule about ChargerDojo's own payload or report. Counted apart from checks that were not tested, because no evidence was missing. # Automate with the API Source: https://docs.chargerdojo.com/guide/index The workflows you can drive with an API key: connect a partner, run conformance suites and charging journeys, then read and share the graded evidence. ChargerDojo runs your partner's OCPI implementation against the specification and gives you a report you can forward, with the request and response behind each check that sent a request. The API workflows below use HTTPS calls to `https://chargerdojo.com` with your `cdojo_` API key. To edit and compare a payload without a key, open the free [Payload Workbench guide](/guide/check-a-payload). It exists for one situation: you are mid-integration, you have a deadline, and you and your partner disagree about whose side is wrong. ## The path 1. [Create an API key](/guide/create-an-api-key) in the app and store it in your CI secret manager. 2. [Run the quickstart](/guide/quickstart) against a sandbox endpoint to see a full loop work. 3. [Connect a partner](/guide/connect-a-partner): create the connection and run the live registration handshake. 4. [Run a conformance suite](/guide/run-a-suite) or a [charging journey](/guide/run-a-charging-journey) against it, from a script or from CI. 5. [Read the report](/guide/read-your-report) and [share it](/guide/share-a-report) with your partner. If you spend your day in a coding agent, [connect it](/guide/connect-a-coding-agent) first. Asking it which OCPI version does what, or what changed between two of them, needs no key and no account, and it is the cheapest way to find out whether any of this is for you. Unfamiliar vocabulary is not your fault: OCPI has a lot of it. The [glossary](/guide/glossary) defines every term these guides use, in a sentence each. When something answers a status code you did not expect, the [troubleshooting page](/guide/troubleshooting) maps the statuses you will actually hit to what they mean and, more importantly, keeps "your partner broke a rule" separate from "we did not get an answer". ## What these guides will not claim **A green run is not certification.** We are not the EVRoaming Foundation. A run here is evidence, and good evidence, but if you need a certificate you need them, not us. **A warning is not a failure.** The specification distinguishes what you must do from what you should do, and so do we. A partner who declines a recommendation has broken no rule, and no verdict here will say otherwise. [Read your report](/guide/read-your-report) explains why this matters more than it sounds. **The API is deliberately small.** The operations documented in the API reference are the public contract, authenticated by your key, with every resource-bearing operation resolved against that key's organisation. A few reads (the suite list, the journey catalogue) are the same for everyone. The interactive simulator in the browser is a different tool for a different job, and its internals are not part of this contract. # Let a partner register with you Source: https://docs.chargerdojo.com/guide/let-a-partner-register Issue a registration token so a partner's OCPI client can run the credentials handshake against ChargerDojo, and see the connection appear once they do. Issue a registration token when the endpoint under test will start the credentials handshake. ChargerDojo receives its credentials, calls back to its advertised URL and records the connection. You need Integrate or above, an available partner-endpoint slot and permission to add an endpoint. If you already hold the endpoint operator's registration token and want ChargerDojo to start the exchange, [connect an endpoint](/guide/connect-a-partner) instead. You need this when your partner wants to prove their client works, not their server. It is also the direction to use when a partner asks you for Token A: in OCPI the receiving party issues it, so if they are asking, they mean to register with ChargerDojo. See [OCPI 2.2.1 registration](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/credentials.asciidoc#credentials_registration). ## Issue a token Under **Testing**, open **Endpoints**, then choose **Add an endpoint**, or **Add endpoint** once you have one. Choose the system under test and select **It registers with ChargerDojo**. Pick the OCPI version it runs and answer whether it is a test system or production, then choose **Issue a token**. That answer controls later runs, not the credentials handshake. The picker offers 2.1.1, 2.2.1 and 2.3.0. The API accepts 2.2 as well, and suites run against it, but no picker in the app offers it. See [version coverage](/guide/coverage#versions-and-interfaces). Pick the version they actually run, not the newest one. The token is recorded against that version, and a client that speaks a different one will not finish the handshake against it. You get four values. Send all four, together, over whatever channel you already use with that partner. The specification puts this exchange deliberately outside the protocol, so there is no OCPI-blessed way to deliver them. | Value | What they do with it | | - | - | | Registration token | Their `Authorization` header, on every request in the handshake. | | Versions URL | Where their client starts: it lists the versions ChargerDojo serves. | | OCPI version | The one you issued for. It has to match what their client speaks. | | ChargerDojo party | The `country_code` and `party_id` they use to address ChargerDojo. | ## How they send the token The credentials token is transported differently across versions. On 2.1.1 it goes in the header as it is; from 2.2 onwards the header carries the Base64 of it. The issued-token panel shows the exact header for both forms, so you can paste the one they need rather than describe it. An unencoded token on a 2.2 or later endpoint returns `401`. The issued-token panel shows the expected header; when the token is correct but its encoding is wrong, the connection names that error. Sources: [OCPI 2.1.1 request format](https://github.com/ocpi/ocpi/blob/28ea45329a50c3dbfd790505b97860854db1d4a6/transport_and_format.md#request-format) and [OCPI 2.2.1 Authorization header](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/transport_and_format.asciidoc#transport_and_format_authorization_header). ## What happens when they register Setup succeeds when the row says **Registered**. This confirms the credentials exchange, not a conformance verdict. Their client reads the versions URL, picks its version, and POSTs its credentials to ChargerDojo's credentials endpoint. ChargerDojo then calls **back** to their versions URL with the token they just sent, reads their endpoints, and only then records the registration. That callback is part of the handshake, so their endpoint has to be reachable from the internet for it to finish. If it runs on a laptop or inside a VPC, [put a tunnel in front of it](/guide/connect-a-local-endpoint). A local connector does not carry this incoming registration callback, even when it runs beside your own service. The row reads **Waiting for them** until their POST arrives, which means the token is issued and unused and nothing is due from you, then **Registered** once the handshake finishes and they hold a live credentials token. Until it does ChargerDojo does not know who they are, so the row shows no party. That is the expected state, not a stuck one. ## Reading the token back, and taking it away While a row is still waiting, **Show token** returns the registration token you issued, so you do not have to keep a copy outside ChargerDojo. Once they register, the handshake has spent that token and there is nothing left to show. Their system now holds its own credentials token instead. **Revoke** ends the registration in both directions: ChargerDojo tells the endpoint its credentials are invalid, then invalidates its own. After that the endpoint can no longer reach ChargerDojo, and getting back means issuing a fresh token for them to register with again. Revoke a registered inbound endpoint before removing its row, so its client no longer holds credentials for that registration. The OCPI act is [Credentials DELETE in OCPI 2.2.1](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/credentials.asciidoc#credentials_delete_method). Issuing and revoking inbound tokens are app actions, not public API operations. ## What counts against your plan An inbound connection is a connection. Inbound and outbound rows share one ceiling, so three registrations from partners and three endpoints you added are six against the same limit. Revoking does not free the slot on its own, because the row survives holding nothing: remove the row when you are finished with it. ## Next [Run a conformance suite](/guide/run-a-suite) against them once the row says registered, or [run a charging journey](/guide/run-a-charging-journey) if you want a timed end-to-end flow rather than module-by-module checks. # Plans and pricing Source: https://docs.chargerdojo.com/guide/plans What is free at every tier, why API keys need a plan, and what the Integrate, Automate and Certified ChargerDojo plans cost and unlock. The sandbox is free and needs no card. Everything past it is a plan. > [!WARNING] > > This is a launch price and it will rise. It is not locked or frozen, and nothing here is a > commitment to a future price. What you are quoted at signup is what you pay. ## The plans | | Sandbox | Integrate | Automate | Certified | | - | - | - | - | - | | Monthly | Free | \$149 | \$499 | Custom | | Yearly | Free | \$1,490 | \$4,990 | Custom | | Partner endpoints | None | 3 | 20 | Fair use | | Local connector, for an endpoint behind your firewall | No | Up to 10 | Up to 10 | Up to 10 | | Conformance suites, 2.1.1, 2.2.1 and 2.3.0 | Sandbox only | Yes | Yes | Yes | | Charging journeys with disturbances | Sandbox only | Yes | Yes | Yes | | Direct Payment (2.2.1 extension, 2.3.0 Payments) | Sandbox only | Sandbox only | Yes | Yes | | Bookings (2.3.0) | Sandbox only | Sandbox only | Yes | Yes | | Load runs and parallel charging sessions | No | No | Up to 500 journeys | Up to 500 journeys | | API keys, so it runs from CI | No | Yes | Yes | Yes | | Scheduled runs | No | No | Daily or weekly | Daily or weekly | | Roaming hub identity | Catalogue and reference report | Yes | Yes | Yes | | Roaming hub relay | No | No | Yes | Yes | | Hub-routed charge | Sandbox only | Sandbox only | Yes | Yes | | Report retention | 30 days | 180 days | 180 days | 180 days | | Share link a partner opens | Sandbox reports | Yes | Yes | Yes | Yearly is ten months for twelve. ## What is free Running against ChargerDojo's sandbox is free. Running against your own or a partner's endpoint is paid. That holds at every tier, including a signed-out browser. Load runs and parallel charging sessions need Automate even against the sandbox. The [API quickstart](/guide/quickstart) drives a free sandbox run through the API, but the API needs a `cdojo_` key, and keys need a paid plan. Without a key, [run the same test in the browser](/guide/browser-quickstart). ### Free without an account * **The simulator and Learn.** Open [chargerdojo.com](https://chargerdojo.com) to watch OCPI messages move between CPOs, eMSPs and chargers. [Learn](https://chargerdojo.com/learn/) explains the protocol, and [guided scenarios](https://chargerdojo.com/learn/scenarios/) walk through failures such as [a charge billed twice](https://chargerdojo.com/learn/scenarios/charged-twice/). * **The MCP server.** The MCP server has nine tools that need no key or signup. They list OCPI versions, compare two versions, show how each encodes the credentials token, list suites, checks and journeys, validate a JSON object against its schema, describe what each plan adds and send the team feedback. See [Connect a coding agent](/guide/connect-a-coding-agent). * **Sandbox runs.** While signed out you can run against the sandbox, list your reports and [share them](/guide/share-a-report). Your browser keeps its anonymous session until the session expires or you clear its stored data, within report retention. Signing in attaches those reports to your organisation, so you can reach them from other devices. ### What a sandbox run proves The sandbox is a real OCPI peer: a run discovers its versions and makes real HTTP calls to its modules, and the report has the same per-check evidence as a paid run. It tests ChargerDojo's own peer, so a green result shows how the tool works, not how your implementation behaves. [Coverage and sandbox limits](/guide/coverage#sandbox-limits) explains what the sandbox stores and where it differs from a real endpoint. ### Where the free line falls The line follows whose infrastructure a run touches, not the quality of the report. A run against your endpoint uses a runner and a real HTTP conversation with a third party; a sandbox run stays inside ChargerDojo. The MCP server's account tools work with a paid API key; account tools for signed-in free accounts are launching soon. ## What the rows mean **Conformance suites** cover the versions the app offers: 2.1.1, 2.2.1 and 2.3.0. OCPI 2.2 was superseded by 2.2.1 within months and is retired from the pickers, so it has no row of its own. **Partner endpoints** are the targets you test against. A free account tests against the sandbox, which is [free at every tier](#what-is-free) and never counts toward a plan's partner endpoints. A **local connector** reaches an endpoint behind your firewall over an outbound connection, so your service is never reachable from the internet. Each organisation can pair up to ten. See [Test a private endpoint](/guide/connect-a-local-endpoint). **Colleagues are free, and they draw on the same endpoints.** Nothing here is priced per person and no plan carries a seat count, so invite the whole team. What a colleague does not bring is capacity: the partner endpoint allowance above belongs to the organisation, so two people on Integrate hold three endpoints between them rather than three each. See [Work with a colleague](/guide/work-with-a-colleague). **API keys** are the whole reason the rest of this documentation exists. Without one there is no API, so nothing runs from a script or a pipeline. See [Create an API key](/guide/create-an-api-key). **Load runs** drive one journey at volume to see how your implementation behaves under concurrency. They need Automate even against the sandbox, because the cost is ours either way. So do parallel charging sessions, the 2 to 6 overlapping tracks you can set on a single journey: same concurrency, same plan, whichever target you point them at. A single-track core journey uses the partner-endpoint row above. Hub relay, Bookings and Direct Payment have the separate capability rows shown in the table. Core journeys against the sandbox are free. The **hub-routed charge** runs a graded charge through a hub ChargerDojo plays. Against your own endpoint it needs Automate; against the sandbox it is open to everyone, like Direct Payment and Bookings. **Direct Payment** covers Payments: a separately published EVRoaming Foundation extension for OCPI 2.2.1 and a core chapter in OCPI 2.3.0. OCPI 2.1.1 has neither. Against the sandbox those suites are open to everyone, so you can see what they do before you buy. The 2.2.1 extension's cover says: > "This is a separate module which can be used by CPOs and is an addition on the OCPI 2.2.1 protocol." [EVRoaming Foundation Direct Payment 2.2.1, page 1](https://evroaming.org/wp-content/uploads/2024/10/DirectPayment_2_2_1___EVRF_version.pdf#page=1). The 2.3.0 core chapter identifies itself as: > Module Identifier: `payments` > > Data owner: `PTP` [OCPI 2.3.0 Payments](https://github.com/ocpi/ocpi/blob/9ed1e39c24f5b84cb1e4008939f47bea838f9b25/mod_payments.asciidoc#mod_payments_payments_module). **Roaming hub identity** uses one CPO test registration on Integrate. **Roaming hub relay** uses two linked counterparties on Automate and can run on a schedule. Sandbox includes the catalogue and a static reference-hub report. Certified includes both modes across hubs on quoted fair use. Both test your own hub; the hub-routed charge tests your eMSP through a hub we play, and needs Automate. **Scheduled runs** repeat a conformance sweep or a selected paired hub relay journey on a daily or weekly cadence. The connection shows what the last scheduled run found. They need your own endpoint. Sandbox endpoints run ChargerDojo's own code, so scheduled runs cannot detect changes to your integration. **Report retention** is how long a graded report and its share link stay readable. It splits free from paid and does not differ between paid plans. Upgrading gives the reports you already have paid retention, counted from when each was made. ## What every plan gets, including the free one The verdict logic is the same at every tier, and that is deliberate. A free sandbox run produces the same report, with the same per-check evidence and the same refusal to fail you for declining a recommendation, that a paid run against your partner produces. [Read your report](/guide/read-your-report) is worth reading before you spend anything: it says what a green result does and does not license, and where our own coverage stops. ## What Certified is, and is not Certified is everything in Automate, priced on the endpoints and runs you need rather than from the table above. It is a quote, so it is the one plan you cannot start from inside the app, and it is why the endpoint row above says fair use rather than a number: how many partners you test against is part of the conversation, not a rung you are sold. Tell us what you need and we will scope it with you. The name is older than the rest of this page and it promises less than it sounds. ChargerDojo is not an accreditation body and issues no certificate, and formal OCPI conformance certification is issued by the EVRoaming Foundation through its own process. The verdict logic is the same on Certified as on the free sandbox. If a partner or a regulator wants a record of what you ran, tell us what it has to show and we will scope that work with you. ## Ceilings, and why they are not on this page Runs per minute and runs in flight are set per deployment, so a number printed here would be one environment's rather than yours. Read your own: Operation reference: [`GET /usage`](/api-reference/usage/read-the-key-owners-plan-limits-and-current-usage). ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/usage" -H "Authorization: Bearer $DOJO_KEY" | jq '.data' ``` ## Free trial Integrate comes with a seven-day free trial. Start it from the Integrate card on [the pricing page](https://chargerdojo.com/pricing/), or from any place in the app that offers Integrate. * You enter a card at checkout and pay nothing for seven days. The first charge is taken when the trial ends, at the monthly or yearly price you chose. * Cancel before then in Settings, Billing, Manage billing, and you are not charged. The trial keeps running to its end, then your organisation moves to the free plan. * Each organisation gets one trial, and so does each company email domain: once someone at `acme.com` has started one, colleagues on `acme.com` start Integrate as a paid plan. * The trial is for organisations new to paid access. One that has bought a plan or been given one by our team starts Integrate as a paid plan. * The trial needs a verified work address. Personal addresses such as Gmail or Outlook can buy Integrate but cannot start a trial. The dashboard shows the days left while the trial runs. Everything Integrate unlocks works during the trial, with the same three partner endpoints. ## Changing plan Upgrading is offered in the app wherever a paid feature is, and on [the pricing page](https://chargerdojo.com/pricing/), and takes effect immediately. If you are testing more endpoints than Automate holds, that is what Certified is for: [sales@chargerdojo.com](mailto:sales@chargerdojo.com). ## When a plan ends A plan ends when you cancel it, when the paid period runs out, or when a renewal payment fails for one day. Your organisation then moves to the free plan. What stops: * Runs against your own endpoints, and the charging journeys that need a paid plan. * Every call made with an [API key](/guide/create-an-api-key). It answers `402` with a message naming the plan, so a pipeline fails saying why rather than with an authentication error. * Scheduled runs, which pause until the plan is back. * [Share links](/guide/share-a-report) to reports about your own endpoint, which stop resolving. What is kept: * The endpoints you registered, and their schedules. * Your reports, for as long as their retention lasts. * Your API keys, which work again as soon as the plan does. A trial that ends without a payment ends the same way, and Start Integrate brings it all back. An organisation that has had its trial does not get a second one. Resubscribing brings all of it back: the dashboard, Billing in Settings and every paid feature offer the plan you had, in one step. Paused schedules start on their next occurrence. If a renewal payment fails, your plan keeps working for one day while the card is retried, then pauses. The card is retried for 15 days in all. Update it in Settings, Billing, Update payment method, and the plan comes back without a new subscription. # Quickstart: your first run from the command line Source: https://docs.chargerdojo.com/guide/quickstart Run a complete OCPI conformance run against the deployed service from the command line with curl, jq and a cdojo_ API key. This walks one complete loop against the deployed service: authenticate, pick a target, run the conformance suite, read the verdict. It uses the built-in **sandbox** target, a working OCPI peer that every account can run against, so you do not need a partner endpoint yet. ## Prerequisites * An API key in `DOJO_KEY`. See [Create an API key](/guide/create-an-api-key). **Keys need a paid plan.** The sandbox run below is free at every tier; it is the key that is not, because the whole API sits behind one. Without a key, run the same thing in the browser and see [what you can do without paying](/guide/plans#what-is-free). * `curl` and `jq`. ## One complete run Operation reference: [`GET /connections`](/api-reference/connections/list-owned-connections), [`POST /testing/runs`](/api-reference/testing/start-a-conformance-run-against-an-owned-connection), [`GET /testing/runs/{id}`](/api-reference/reports/read-one-owned-report-optionally-long-polling-an-active-run). ```bash theme={null} #!/usr/bin/env bash set -euo pipefail BASE="https://chargerdojo.com" AUTH="Authorization: Bearer $DOJO_KEY" # 1. Pick a sandbox endpoint: Sandbox CPO, Sandbox eMSP or Sandbox PTP. # Each is a stand-in for the integration under test, already registered. # Narrow on role and version rather than taking whichever comes back first. for ((PAGE = 0; ; PAGE++)); do CONNECTIONS=$(curl -sS --fail-with-body --retry 3 \ "$BASE/api/v1/connections?limit=100&skip=$((PAGE * 100))" -H "$AUTH") || { echo "Could not list connections: $CONNECTIONS" exit 2 } printf '%s' "$CONNECTIONS" | jq -e '.success == true and (.data | type == "array")' > /dev/null || { echo "The API did not return a connection list." exit 2 } CONNECTION_ID=$(printf '%s' "$CONNECTIONS" \ | jq -r '[.data[] | select(.kind == "sandbox" and .ocpiVersion == "2.2.1" and .theirRole == "CPO" and .targetPersona != "PTP")][0]._id // empty') if [ -n "$CONNECTION_ID" ]; then break fi if [ "$(printf '%s' "$CONNECTIONS" | jq '.data | length')" -lt 100 ]; then echo "No matching sandbox is available. Try again later." exit 2 fi done # 2. Start the full conformance suite and wait for the report. 55s is the maximum; # anything larger is clamped to it, because the proxy cuts an idle read at 60. RUN=$(curl -sS --fail-with-body -X POST "$BASE/api/v1/testing/runs?wait=55" \ -H "$AUTH" -H "Content-Type: application/json" \ -d "{\"connectionId\": \"$CONNECTION_ID\"}") || { echo "Could not start the run: $RUN" exit 2 } REPORT_ID=$(printf '%s' "$RUN" | jq -r '.data.reportId') # 3. Poll until the run is over. A 202 means the run is still going: your wait expired, # not the run. It is also a 2xx, so `curl` is perfectly happy with it, and one extra # read is not enough either. The status in the body is the only thing that says the # run finished, so keep asking until it is one of the four terminal states. while :; do RUN_STATUS=$(printf '%s' "$RUN" | jq -r '.data.status') case "$RUN_STATUS" in completed|failed|cancelled|interrupted) break ;; esac sleep 5 # --retry honours the Retry-After header on a 429 and rides out a transient failure; # --fail-with-body makes every other non-2xx a non-zero exit with the body still readable. RUN=$(curl -sS --fail-with-body --retry 3 \ "$BASE/api/v1/testing/runs/$REPORT_ID?wait=55" -H "$AUTH") || { echo "Could not read the run: $RUN" exit 2 } printf '%s' "$RUN" | jq -e '.success' > /dev/null || { echo "The API answered something that is not a run: $RUN" exit 2 } done # 4. Read the verdict. Over is not the same as graded: a run we cancelled or interrupted # carries no summary at all, and `jq` prints `null` for a summary that is not there. SUMMARY=$(printf '%s' "$RUN" | jq '.data.summary') if [ "$SUMMARY" = "null" ]; then echo "The run ended as '$RUN_STATUS' and was never graded. Run it again." exit 2 fi printf '%s' "$SUMMARY" | jq . ``` The output is the run summary: how many checks passed, failed and warned. The full per-check report, including the recorded request and response behind each check that sent a request, is at `GET /api/v1/testing/runs/:id`. Every answer also carries a `seed`, and sending it back on a later run makes that run send the same requests again, apart from a short published list of differences. See [Run a suite](/guide/run-a-suite#repeat-a-run) for that list and what a seed does not reproduce. Exit `2` means the script never got an answer: the API refused the call, or the run ended without a verdict. It is deliberately not exit `1`, which the [CI gate](/guide/run-a-suite#gate-your-build-on-it) keeps for the one thing that is your partner's fault, a check that failed. > [!NOTE] > > A `202` is active work, not an outcome. The run did not fail and did not pass; it simply > outlived your wait. Treat it as "poll again", never as a red build. The only failure > signal for a conformance run is `failed` checks in the summary of a finished run. ## What just happened The sandbox is a real OCPI peer, not a recording. The run discovered its versions and made real HTTP calls to real module endpoints. Registration is the one shortcut: the sandbox's credentials are written directly rather than exchanged over a handshake. Every check in the report carries the exchange that produced it. A run against your partner works exactly the same way; the only difference is the connection you pass. ## Next > [card] [Connect a partner](/guide/connect-a-partner) > > Point ChargerDojo at a real endpoint. > [card] [Run a suite in CI](/guide/run-a-suite) > > Gate a build on the result, correctly. # Read and diagnose a report Source: https://docs.chargerdojo.com/guide/read-your-report Find the first failed OCPI check, compare its recorded response with the expected rule, and use the evidence to fix and retest the endpoint. Open the report for your run and find the first failed check. Its recorded request, response and validation message show what to investigate next. The endpoint under test may be yours or a partner's. You need a saved report you can access, or a public share link. To explore the layout before running a test, [open the saved example report](https://chargerdojo.com/sample-report/). That example is a captured OCPI 2.2.1 roaming-hub journey against ChargerDojo's reference endpoint, not a test of your implementation. ## Check what ran Confirm the endpoint, OCPI version and selected modules before using the result. A [conformance suite](/guide/glossary#words-that-only-mean-something-here) checks individual protocol rules. A [charging journey](/guide/glossary#words-that-only-mean-something-here) follows a timed interaction and reports its rule groups separately. Read the run state as well as the counts. An active run has not reached its final result. **No checks ran** provides no conformance verdict. **Partial coverage** tells you that the run left some intended coverage ungraded. [Verdicts, counts and run states](/guide/verdicts) explains the five verdicts, these counts and both kinds of summary. A check labelled **Not tested** has no graded result; read its reason. The API calls that count `unobservable`. A check labelled **Not applicable** is outside this endpoint's responsibilities: a module or interface it does not offer, a role ChargerDojo did not register with, or a rule about ChargerDojo's own payload or report. Neither count is a failed requirement. A production sweep has a Read-only run notice. Writes withheld by that setting are Not tested, with the reason `Not run: this endpoint is marked production, so ChargerDojo sends it no writes.` They are neither passes nor Not applicable. Passing reads give Partial coverage. The recorded environment is the one the run started with, even if the endpoint card changes later. Objects a run invents use `CONF-` for a conformance sweep or `JRN-` for a journey. An invented EVSE ID keeps its standard format and carries CONF or JRN in its local identifier. Identifiers the endpoint serves and registered party identities stay unchanged. Use these markers to find test data on the endpoint. Accepted CDRs cannot be deleted; credit them instead. ## Follow one failure to its cause Expand the first failed check. Read its validation message, then compare the expected value with the recorded response. Check the version and obligated party on any linked rule before changing your endpoint. For example, suppose a Location response on OCPI 2.2.1 has no `last_updated` field. This is a documentation example, not a captured customer result. | Evidence | What to inspect | | - | - | | Expected | A Location has one `last_updated` timestamp. | | Actual | The response's Location object omits `last_updated`. | | Rule | [OCPI 2.2.1 Location object](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/mod_locations.asciidoc#mod_locations_location_object), the `last_updated` row. | | Next action | Add the Location's update timestamp to the response, then repeat the same suite and inspect this check again. | If the request received no response, investigate reachability and registration first. Do not infer a bad response field from an exchange that never returned a body. [Troubleshooting](/guide/troubleshooting) separates registration failures, service errors and recorded test failures. Some conformance checks have no recorded specification citation yet. Where a citation is present, use its version, section and quoted condition alongside the exchange. A rule for a partner agreement is not automatically an OCPI requirement. [Testing coverage](/guide/coverage) explains those boundaries. ## Read a warning A warning marks a declined OCPI recommendation or an observation, not a failed requirement. Read its advice and decide whether it matters for your integration. It does not increment the failed-check count. A blue **ChargerDojo recommendation** on a check is not a warning; it changes no count and no verdict ([ChargerDojo recommendations](/guide/verdicts#chargerdojo-recommendations-are-not-ocpi-rules)). Sources: [OCPI 2.2.1 requirement keywords](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/terminology.asciidoc#terminology_terminology_and_definitions) and [RFC 2119 sections 1 and 3](https://www.rfc-editor.org/rfc/rfc2119#section-3). For automation, use the [CI guide](/guide/run-a-suite#gate-your-build-on-it). It checks whether work finished and whether evidence was graded before interpreting the failure count. A zero failure count alone is insufficient. ## Fetch your report with the API You need a paid [API key](/guide/create-an-api-key) in `DOJO_KEY` and the run's id in `REPORT_ID`. [Read the report](/api-reference/reports/read-one-owned-report-optionally-long-polling-an-active-run): ```bash theme={null} curl --fail-with-body -sS \ "https://chargerdojo.com/api/v1/testing/runs/$REPORT_ID" \ -H "Authorization: Bearer $DOJO_KEY" ``` Inspect `data.status` before `data.summary`. HTTP `200` can return a report that is still active. Everyone in the organisation can read its reports during the plan's retention window. [Read usage](/api-reference/usage/read-the-key-owners-plan-limits-and-current-usage) to check that window. ## Retest or share the evidence After correcting the endpoint, [repeat the suite](/guide/run-a-suite#repeat-a-run) and compare the affected check. Keep the original report so the change remains visible. [Share a report](/guide/share-a-report) when someone else needs to inspect the exchange. A report covers the checks that ran, for the selected endpoint and scope. It does not provide external OCPI certification. [What ChargerDojo tests](/guide/coverage) describes the limits, including the sandbox's own interfaces. Related: [five verdicts](/guide/verdicts#the-five-verdicts), [warnings](/guide/verdicts#why-a-warning-is-not-a-failure), [ChargerDojo recommendations](/guide/verdicts#chargerdojo-recommendations-are-not-ocpi-rules) and [how checks are tested](/guide/coverage#how-checks-are-tested). # Run a charging journey Source: https://docs.chargerdojo.com/guide/run-a-charging-journey Preview a journey plan, start it idempotently, follow it live, and resolve a recovery decision when delivery is uncertain. A conformance suite checks that each endpoint obeys the specification. A **charging journey** drives a whole story against your partner: a session that starts, meters energy, completes and produces a CDR, with the tester judging the sequence as well as each exchange. Journeys run against a registered connection, take minutes rather than seconds, and stream evidence while they go. Command journeys send START_SESSION, STOP_SESSION, UNLOCK_CONNECTOR or RESERVE_NOW to chargers your partner serves, so a real charger may start, stop, unlock or reserve. Run them against a test system. The flow is always the same four steps: browse the catalogue, preview a plan, start the run, follow it to a verdict. > [!WARNING] > > **Journeys do not run over a connector.** They execute in a separate worker process that > cannot reach the socket a connector holds, so the app will not offer a connector-backed > endpoint for a journey and the API refuses one. Conformance runs are what a connector carries > today. If you are testing a local service and want journeys, use > [a tunnel](/guide/connect-a-local-endpoint) instead. ## 1. Browse the catalogue Operation reference: [`GET /testing/journeys`](/api-reference/journeys/browse-the-journey-catalogue-for-a-target). ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/testing/journeys?targetId=$CONNECTION_ID" \ -H "Authorization: Bearer $DOJO_KEY" ``` Returns the journey packs, scenarios and templates. With `targetId`, the list is filtered to what that connection can actually run, based on its OCPI version, its role and the modules it advertises, and the response includes the target's capability summary. Omit `targetId` to see the full catalogue. ## 2. Preview a plan A journey is described by a manifest: which template, against which target, on what clock. Previewing compiles it into an immutable plan and tells you whether it can run, before anything touches your partner. This example needs a registered eMSP target on OCPI 2.2.1. Operation reference: [`POST /testing/journeys/preview`](/api-reference/journeys/preview-a-journey-plan-before-running-it). ```bash theme={null} curl -fsS -X POST "https://chargerdojo.com/api/v1/testing/journeys/preview" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d '{ "schemaVersion": 1, "journey": "first-successful-charge", "targetId": "'"$CONNECTION_ID"'", "roleUnderTest": "EMSP", "journeyPack": "core-charging", "topology": { "kind": "direct", "profile": "core-ocpi" }, "ocpiVersion": "2.2.1", "clock": { "mode": "accelerated", "durationSeconds": 1800, "accelerationFactor": 60 }, "session": { "cadenceSeconds": 60, "strategy": "put-and-patch", "updates": ["kwh", "status"] }, "completion": { "cdrDelaySeconds": 0 }, "seed": "ci-2026-07-16" }' ``` The response carries the compiled plan and the two values the start call needs: ```json theme={null} { "success": true, "data": { "planId": "...", "planHash": "...", "expiresInSeconds": 3600, "runAllowed": true, "plan": {} } } ``` A plan expires after an hour. `runAllowed: false` means the preflight found a reason the run cannot proceed (an unregistered target, a module the target does not advertise); the plan spells out which. ## 3. Start the run, idempotently Operation reference: [`POST /testing/journey-runs`](/api-reference/journeys/start-a-journey-run-from-a-previewed-plan-idempotent). ```bash theme={null} curl -fsS -X POST "https://chargerdojo.com/api/v1/testing/journey-runs" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: ci-${CI_JOB_ID}-journey" \ -d "{\"planId\": \"$PLAN_ID\", \"planHash\": \"$PLAN_HASH\"}" ``` A `202` means the run was admitted and is active work, not a verdict: ```json theme={null} { "success": true, "data": { "runId": "...", "reportId": "...", "status": "queued", "repeated": false, "statusUrl": "/api/v1/testing/journey-runs/...", "eventsUrl": "/api/v1/testing/journey-runs/.../events", "streamUrl": "/api/v1/testing/journey-runs/.../stream" } } ``` **Always send `Idempotency-Key` from CI.** A repeated start with the same key returns the original run with `repeated: true` instead of creating a second one, so a start request that is retried cannot double-charge your quota or hit your partner twice. The same key with a different body answers `409`. Every preview compiles a new plan, so key a start by the job that compiled its plan: a job that is run again starts a new run. The starts that do not admit a run: | Status | Meaning | | - | - | | `402` | The journey needs a capability your plan does not include, such as the Direct Payment or Booking packs, or more than one session in parallel. The body names the capability. Nothing was admitted and nothing reached the target. | | `409` | The plan expired or its hash changed. Preview again and start with the fresh `planId` and `planHash`. | | `429` | Your plan's run quota is full. Each in-flight journey holds one run slot until it finishes, and a run waiting on a recovery decision keeps holding its slot until you decide. The `Retry-After` header says when to try again. | | `503` | **Our runner is unavailable.** This is a statement about our service, never about your partner. Nothing was admitted and nothing reached the target. Start again later with the same `Idempotency-Key`; the key makes that safe. | ## 4. Follow it to a verdict Operation reference: [`GET /testing/journey-runs/{id}`](/api-reference/journeys/read-a-journey-runs-status-and-recovery-options). ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/testing/journey-runs/$REPORT_ID?wait=55" \ -H "Authorization: Bearer $DOJO_KEY" ``` `?wait=` long-polls until the run reaches a terminal state, pauses for a recovery decision, or the wait expires. The response carries `status`, the compiled plan, the current stage, the run's verdicts once they exist, and the two fields the next two sections explain: `runIntegrity` and `recoveryOptions`. ### What each status means | Status | Meaning | | - | - | | `queued` | Admitted, waiting for a runner. | | `running` | The journey is executing against your partner. | | `recovering` | Our runner restarted and is resuming from its checkpoint. No request is repeated; you do not need to do anything. | | `recovery_required` | The delivery of one action is uncertain and the run is paused for your decision. See below. | | `completed` | The journey finished and the verdicts are in. Finished is not the same as passed: read the verdicts. | | `failed` | The journey could not finish. | | `cancelled` | You cancelled it. | | `interrupted` | The run ended early with its evidence preserved, for example because you chose to stop it during recovery. | ### Run integrity is about our evidence, not their conduct `runIntegrity` states how complete **our** record of the run is: | Value | Meaning | | - | - | | `valid` | Our record has no delivery gap. Missing evidence can still leave checks not tested; read coverage and the verdict lanes. | | `degraded` | Part of the run could not be tested, for example because you chose to continue past an uncertain action. Verdicts that depend on the gap say so. | | `invalid` | The evidence cannot support verdicts. | `coverage.outcome` is `nothing_graded` when no assertion reached a verdict, `partial` when a check or planned step was not exercised, and `graded` when every planned step and check ran. Missing premises do not fail your partner. A degraded or invalid run is never a statement that your partner failed. Target failures show up as failed verdicts with the exchange attached, exactly as in a conformance run. ### How a journey verdict is graded Every check in a journey answers to one of five authorities, and the authority decides what the check may do to your verdict. An expanded row in the report names it beside the rule id. | Authority | The report shows | What it may do | | - | - | - | | Conformance requirement | `OCPI SHALL` | Fail. It grades a `SHALL` or `MUST`, a required field, a required header or a closed list of values that binds your side of the exchange. | | Recommendation | `OCPI SHOULD` | Warn. It grades a `SHOULD` or "advised", which you may decline. It never fails. | | Partner profile | `Partner profile` | Nothing yet. No partner profile names a rule that can run, so this lane reports not tested. | | Business check | `Business checks` | Fail against a term your manifest sets, such as how soon a CDR must arrive. It is your contract, not OCPI's. | | Robustness observation | `Robustness observation` | Warn. It reports how your endpoint copes with something OCPI does not settle. It never fails. | The OCPI keyword distinction follows [OCPI 2.2.1 requirement keywords](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/terminology.asciidoc#terminology_terminology_and_definitions). Partner-profile and business rules have their own authority; they are not additional OCPI requirements. **Not tested is never a pass.** The report marks a check not tested when a step it needs was refused or never answered, or the response carried nothing to grade. Each row says what was missing. A run with no tested checks proves nothing either way. **The clause is one click from the verdict.** Under the rule id and authority, an expanded row prints the address of the clause the check was graded on and, where its rule records the clause, what binds in it (the modal word, or "required by its table" for a schema row) and the clause itself. Reports saved before clauses were recorded show the address alone. When a rule's grading changes, the [changelog](/changelog) says which rules moved; an old report keeps the verdict it was given, so run the journey again to grade it under the current rules. [Read your report](/guide/read-your-report) explains the verdict words and why a warning is not a failure. ### Stream the events Page through events with the sequence number as the cursor: Operation reference: [`GET /testing/journey-runs/{id}/events`](/api-reference/journeys/page-a-journey-runs-events-by-sequence). ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/testing/journey-runs/$REPORT_ID/events?after=0&limit=100" \ -H "Authorization: Bearer $DOJO_KEY" ``` The response's `meta.nextAfter` tells you where to resume; pass it as the next `after`. Or hold one connection open with server-sent events: Operation reference: [`GET /testing/journey-runs/{id}/stream`](/api-reference/journeys/replay-then-follow-run-events-over-sse). ```bash theme={null} curl -fsSN "https://chargerdojo.com/api/v1/testing/journey-runs/$REPORT_ID/stream" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Accept: text/event-stream" ``` Every SSE message carries its sequence as the event id. If the connection drops, resume without a gap by reconnecting with the standard `Last-Event-ID` header set to the last id you saw; the stream replays from there and closes itself when the run reaches a terminal state. ## Cancel a run Operation reference: [`POST /testing/journey-runs/{id}/cancel`](/api-reference/journeys/cancel-a-journey-run-you-own). ```bash theme={null} curl -fsS -X POST "https://chargerdojo.com/api/v1/testing/journey-runs/$REPORT_ID/cancel" \ -H "Authorization: Bearer $DOJO_KEY" ``` Answers `202`: cancellation is a request, and the run winds down at the next safe point rather than mid-exchange. ## When a run pauses for a recovery decision Sometimes the runner sends a mutating OCPI request and cannot learn whether it arrived: the connection died between dispatch and response. Resending it automatically could duplicate a session or a CDR on your partner's side, so the tester **never replays an uncertain mutation on its own**. The run pauses as `recovery_required`, holds its slot, and asks you to choose. Read the run to see the choices. They are computed by the server for that specific uncertain action; only what the run read offers is valid: Operation reference: [`GET /testing/journey-runs/{id}`](/api-reference/journeys/read-a-journey-runs-status-and-recovery-options). ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/testing/journey-runs/$REPORT_ID" \ -H "Authorization: Bearer $DOJO_KEY" | jq '{status: .data.status, recoveryVersion: .data.recoveryVersion, options: .data.recoveryOptions}' ``` | Decision | What it does | | - | - | | `reconcile` | Issue a safe read to find out whether the uncertain object reached the target, then continue on complete evidence. Offered when the action has a safe read. | | `continue_without_replay` | Carry on without resending. The affected stage cannot be tested and the run's integrity becomes `degraded`. | | `stop` | End the run as `interrupted`, preserving all evidence collected so far. | | `rerun_plan` | Start a separate, fresh run from the same immutable plan. The paused run keeps its evidence. | Apply one with the `recoveryVersion` from the same read: Operation reference: [`POST /testing/journey-runs/{id}/recovery`](/api-reference/journeys/apply-a-server-offered-recovery-decision). ```bash theme={null} curl -fsS -X POST "https://chargerdojo.com/api/v1/testing/journey-runs/$REPORT_ID/recovery" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d "{\"recoveryVersion\": $RECOVERY_VERSION, \"decision\": \"reconcile\"}" ``` A `409` means your `recoveryVersion` is stale: the run moved on since you read it, perhaps because a colleague decided first. Re-read the run and decide against the current state. This is deliberate; two people cannot apply conflicting decisions to the same uncertain action. ## Put it in CI A journey grades conformance, business checks and observations separately. Gate on conformance, which is the one that says your partner broke a rule; read the rest on the report. A passing CI gate requires explicit full coverage with complete, consistent check and step counts. Graded checks come from planned actions, so a pass also requires at least one planned action. Historical reports may omit step counts; those reports exit 2 because full coverage is unknown. That is a reporting prerequisite, not a failed OCPI requirement. Operation reference: [`POST /testing/journeys/preview`](/api-reference/journeys/preview-a-journey-plan-before-running-it), [`POST /testing/journey-runs`](/api-reference/journeys/start-a-journey-run-from-a-previewed-plan-idempotent), [`GET /testing/journey-runs/{id}`](/api-reference/journeys/read-a-journey-runs-status-and-recovery-options). ```bash theme={null} #!/usr/bin/env bash set -euo pipefail # Exit 2 says there is no answer about the target. Exit 1 is kept for a broken rule. no_verdict() { echo "$*" >&2 exit 2 } [ -n "${DOJO_KEY:-}" ] || no_verdict 'DOJO_KEY is required.' [ -n "${CI_JOB_ID:-}" ] || no_verdict 'CI_JOB_ID is required.' API="https://chargerdojo.com/api/v1/testing" AUTH="Authorization: Bearer $DOJO_KEY" [ -f journey-manifest.json ] && [ -r journey-manifest.json ] || no_verdict 'The journey manifest must be a readable regular file.' # One key per job. A start request this job retries returns the same run. A job that is # run again compiles a new plan, so it needs a new key and starts a new run. IDEMPOTENCY_KEY="ci-${CI_JOB_ID}-journey" # 1. Compile the plan. HTTP errors fail; the status check rejects every other non-2xx. # --retry waits out a 429 by its Retry-After header; --max-time bounds each read. HTTP_STATUS=$(curl -sS --fail-with-body --retry 3 --max-time 65 --write-out "%{http_code}" -o preview.json \ -X POST "$API/journeys/preview" \ -H "$AUTH" -H "Content-Type: application/json" \ -d @journey-manifest.json) || no_verdict 'Could not compile the plan.' case "$HTTP_STATUS" in 2[0-9][0-9]) ;; *) no_verdict 'Could not compile the plan.' ;; esac jq -e -s 'length == 1 and (.[0] | .success == true)' preview.json > /dev/null || no_verdict 'The API answered something that is not a plan.' PLAN_ID=$(jq -er '.data.planId | strings | select(length > 0)' preview.json) || no_verdict 'The compiled plan has no id.' PLAN_HASH=$(jq -er '.data.planHash | strings | select(length > 0)' preview.json) || no_verdict 'The compiled plan has no hash.' # 2. Start it, pinned to that hash. HTTP_STATUS=$(curl -sS --fail-with-body --retry 3 --max-time 65 --write-out "%{http_code}" -o start.json \ -X POST "$API/journey-runs" \ -H "$AUTH" -H "Content-Type: application/json" \ -H "Idempotency-Key: $IDEMPOTENCY_KEY" \ -d "{\"planId\": \"$PLAN_ID\", \"planHash\": \"$PLAN_HASH\"}") || no_verdict 'Could not start the run.' case "$HTTP_STATUS" in 2[0-9][0-9]) ;; *) no_verdict 'Could not start the run.' ;; esac jq -e -s 'length == 1 and (.[0] | .success == true)' start.json > /dev/null || no_verdict 'The API answered something that is not a run.' REPORT_ID=$(jq -er '.data.reportId | strings | select(length > 0)' start.json) || no_verdict 'The started run has no id.' # 3. Long-poll to a terminal state. A 200 with a non-terminal status is active work, not an # outcome, and 60 waits of up to a minute each is where this stops asking. POLLS=0 while true; do # -o keeps a retried read from joining two response bodies into one. HTTP_STATUS=$(curl -sS --fail-with-body --retry 3 --max-time 65 --write-out "%{http_code}" -o run.json \ "$API/journey-runs/$REPORT_ID?wait=55" -H "$AUTH") || no_verdict 'Could not read the run.' case "$HTTP_STATUS" in 2[0-9][0-9]) ;; *) no_verdict 'Could not read the run.' ;; esac jq -e -s 'length == 1 and (.[0] | .success == true)' run.json > /dev/null || no_verdict 'The API answered something that is not a run.' RUN_STATUS=$(jq -er '.data.status | strings' run.json) || no_verdict 'The run reported no status.' case "$RUN_STATUS" in completed) break ;; failed|cancelled|interrupted) no_verdict 'Journey ended without a verdict:' "$RUN_STATUS" ;; recovery_required) no_verdict 'Journey paused for a recovery decision. Decide, then re-run this job.' ;; queued|running|recovering) POLLS=$((POLLS + 1)) [ "$POLLS" -lt 60 ] || no_verdict 'The journey did not finish in time.' sleep 5 ;; *) no_verdict 'The run reported an unknown status:' "$RUN_STATUS" ;; esac done # 4. Gate on the evidence. Each of the four lanes must carry whole counts. jq -e ' def count: type == "number" and isfinite and . >= 0 and floor == .; .data.verdicts as $v | [$v.conformance, $v.partnerCompatibility, $v.customerContract, $v.observations] | all(.[]; type == "object" and ([.passed, .failed, .warned, .unobservable] | all(.[]; count)) and (.serverErrors | count) and (.serverErrors <= .warned))' run.json > /dev/null || no_verdict 'The run reported no usable verdicts.' jq -r '.data.verdicts | to_entries[] | select(.value | type == "object") | "\(.key) \(.value | tojson)"' run.json INTEGRITY=$(jq -er '.data.runIntegrity | strings' run.json) || no_verdict 'The run reported no usable integrity.' [ "$INTEGRITY" = "valid" ] || no_verdict 'Our record of the run is incomplete. Run integrity:' "$INTEGRITY" FAILED=$(jq '.data.verdicts.conformance.failed' run.json) if jq -e '.data.verdicts.conformance.failed > 0' run.json > /dev/null; then echo "$FAILED required checks failed." exit 1 fi # A declined recommendation was graded and stays advisory. A server error and a # check marked not tested graded nothing, and a pass needs something graded. jq -e '.data.verdicts.conformance | .passed + .failed + .warned - .serverErrors | type == "number" and isfinite and . > 0 and floor == .' run.json > /dev/null || no_verdict 'Nothing was graded in the conformance lane.' NOT_GRADED=$(jq '.data.verdicts | [.conformance, .partnerCompatibility, .customerContract, .observations] | any(.[]; .unobservable > 0 or .serverErrors > 0)' run.json) # Historical reports may omit step counts. They give no answer about full coverage. # Graded assertions come from planned actions, so a pass needs a positive plan. COVERAGE=$(jq -er ' def count: type == "number" and isfinite and . >= 0 and floor == .; .data as $d | [$d.verdicts.conformance, $d.verdicts.partnerCompatibility, $d.verdicts.customerContract, $d.verdicts.observations] as $lanes | $d.coverage | select(type == "object") | select([.graded, .notGraded, .plannedSteps, .stepsNotExercised, .stepsNotReached] | all(.[]; count)) | select(.stepsNotExercised + .stepsNotReached <= .plannedSteps) | select(.graded == ($lanes | map(.passed + .failed + .warned - .serverErrors) | add)) | select(.notGraded == ($lanes | map(.unobservable + .serverErrors) | add)) | select(.outcome != "graded" or (.graded > 0 and .plannedSteps > 0 and .notGraded == 0 and .stepsNotExercised == 0 and .stepsNotReached == 0)) | .outcome | strings | select(. == "graded" or . == "partial" or . == "nothing_graded")' run.json) || no_verdict 'The run reported no usable coverage.' if [ "$NOT_GRADED" = "true" ] || [ "$COVERAGE" != "graded" ]; then no_verdict 'Partial coverage: some checks or steps were not graded.' fi echo 'Charging journey: no conformance check failed. Every planned step was graded. Partner compatibility and business checks do not gate this job.' ``` Exit `1` is "the target broke a rule". Exit `2` is "we do not have an answer", which covers our own unavailability, a cancellation, a pending recovery decision, a run that did not finish within the loop's sixty polls, and a run that graded nothing or only part of its plan. Missing or malformed verdict counters or coverage also exit `2`; only an explicit `graded` coverage outcome can pass. A build log should never turn "we do not know" into "your partner is broken", or into a pass. The script needs `DOJO_KEY` and `CI_JOB_ID`. Save the manifest as a readable JSON file named `journey-manifest.json` beside the script. It writes `preview.json`, `start.json` and `run.json` into the working directory, so a failed job keeps the response it stopped on. ## Next [Read your report](/guide/read-your-report), and see [Troubleshooting](/guide/troubleshooting) for the status codes journeys can answer. When the catalogue has no journey for the case you are chasing, [author a custom one](/guide/author-a-scenario): the same JSON the builder produces, written down so you can version it, diff it and replay it from CI. # Run a conformance suite Source: https://docs.chargerdojo.com/guide/run-a-suite Drive a full conformance sweep, a single module or scenario, or one manual OCPI command against a registered partner endpoint, from the command line. Once a connection is `registered`, you can run against it. A production endpoint receives GET requests only. A check with a write request or write setup is withheld before sending and is Not tested with this reason: `Not run: this endpoint is marked production, so ChargerDojo sends it no writes.` Passing reads leave Partial coverage. Manual writes and all current journeys, including scheduled journeys, are refused. Test-system runs retain their full behaviour. The report records the environment at admission. `summary.readOnly` identifies a read-only sweep; withheld checks stay in `summary.unobservable` and never increase `summary.passed`. MCP and the GitHub Action print the same reason and Not tested counts. ## See what can run Operation reference: [`GET /testing/suites`](/api-reference/testing/list-runnable-conformance-suites). ```bash theme={null} curl -fsS "https://chargerdojo.com/api/v1/testing/suites" \ -H "Authorization: Bearer $DOJO_KEY" ``` Returns the available suites. A run only executes a **protocol module** the selected OCPI version **advertises**. If a version does not advertise one, the run refuses it rather than executing a suite that was never made to pass against those routes, so a module absent from a version has no suite there, not a failing one. Scenarios are the exception: you name one explicitly and it runs regardless, because it walks a flow rather than testing a module's endpoints. [OCPI 2.2.1 version details](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/version_information_endpoint.asciidoc#version_information_endpoint_version_details_endpoint) defines the advertised endpoint map. ChargerDojo sets its own suite admission rules and plan limits. The advertised modules differ by version. OCPI 2.3.0 advertises the widest set today, including the Bookings and Payments (Direct Payment) suites. ## Run everything Operation reference: [`POST /testing/runs`](/api-reference/testing/start-a-conformance-run-against-an-owned-connection). ```bash theme={null} curl -fsS -X POST "https://chargerdojo.com/api/v1/testing/runs?wait=55" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d "{\"connectionId\": \"$CONNECTION_ID\"}" ``` Omit `module` and you get every advertised protocol-conformance suite your plan covers for the connection's OCPI version. **Scenarios are never part of a sweep**, for any account: name one to run it. Direct Payment and Bookings are both on the Automate plan, so against a real endpoint their suites run only for accounts that have it. Against the sandbox they are open to everyone, because it costs us nothing to let you see what they do before you buy. When a run leaves them out, the report says which modules were withheld, so a smaller total is never a mystery. [Test a payment terminal](/guide/test-a-payment-terminal) sets up a PTP endpoint for the Payments suites and the journey that goes with them. `?wait=` blocks for **up to** that long, to a maximum of 55; larger values are clamped to it, so a script asking for 120 gets 55 and should loop rather than wait longer. Five outcomes, and a CI script has to tell them apart: | Status | `data.status` | Meaning | Body | | - | - | - | - | | `200` | `completed` | The run finished and was graded. | A summary in `data.summary` (passed, failed, warned and `unobservable` (not tested) counts). The per-check report is at `GET /testing/runs/:id`. | | `200` | `failed` | The run stopped early. Whatever it graded before it stopped is real. | A summary covering the checks that ran, plus `data.error`. Fewer checks than a full sweep. | | `200` | `interrupted` after our run limit | ChargerDojo's own run limit (10 minutes) stopped the run. OCPI sets no time for a run, so this is no verdict on your endpoint. Whatever it graded before the limit is real. | A summary covering the checks it reached, plus `data.error` naming the limit and how long the run took. | | `200` | anything else | The run ended without a verdict. Any other `interrupted` run ended because the server restarted or a release cut the run. After a release interrupts a sandbox run, ChargerDojo restarts it from the first check on the same `reportId`. The report changes from `interrupted` to `recovering`, then to `completed` if the new attempt finishes. Runs against your own endpoint finish on the old process unless they reach the drain deadline. | **No `data.summary` at all.** `data.error` says what happened. | | `202` | `queued`, `running` or `recovering` | The run is **still going**. Your wait expired, not the run. | `data.reportId` and `data.status`. No `summary`. | **Read `data.status` before you read the counters.** A 200 alone does not mean there is a verdict to read, and `jq` answers `null` for a summary that is not there, which shell arithmetic turns into an error rather than a number. The script below checks the status first for exactly this reason. Poll `GET /api/v1/testing/runs/$REPORT_ID?wait=` until the run reaches a terminal state. Without `?wait`, the start call returns immediately and you poll the same way. An `interrupted` report has no verdict, even if it later recovers. The CI gate below exits `2` for that interruption. Wait for the same sandbox report to finish recovery before reading its new results. ChargerDojo never automatically restarts a run against your own endpoint, because that would repeat requests there. When an interrupted report offers **Restart this report**, you can choose to restart it from the first check on the same `reportId`; requests already sent to your endpoint will be repeated. To retry a start whose reply never arrived, send an `Idempotency-Key` header with it: up to 128 characters, one fresh key per start, such as your CI job's run id. A retry with the same key and the same body answers `202` with the run the first request started, once that run is queued, so a lost reply never starts a second run. A retry ignores `?wait` and does not wait for the run to finish, and the run it returns may already be finished. If the first request is still starting, the retry answers `503` with `Retry-After` and `code: "START_PENDING"`: that run may still start, so send it again with the same key, never a new one. If the first request gave up before its run was queued, the `503` has no code and the same key starts one. The same key with a different body answers `409`. A key names its run for 24 hours; after that, the same key starts a new run. ## Repeat a run A run creates objects on your endpoint, and the ids it uses are derived from a **seed**, a string that names the run. Start another run on the same connection, over the same modules, with the same seed, while ChargerDojo runs the same build with the same set of checks, and it sends the requests the first one sent, byte for byte, apart from the differences described below. That is what turns "it failed yesterday" into something you can put in front of a partner. Operation reference: [`POST /testing/runs`](/api-reference/testing/start-a-conformance-run-against-an-owned-connection). ```bash theme={null} curl -fsS -X POST "https://chargerdojo.com/api/v1/testing/runs" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d "{\"connectionId\": \"$CONNECTION_ID\", \"seed\": \"nightly-2026-08-29\"}" ``` `seed` is optional and is 1 to 128 characters. Omit it and one is generated for you; either way the seed comes back in `data.seed` on every answer the start call gives, so keep it with the report. To repeat a run, send its `reportId` as `replayOf` and leave `seed` out: the new run takes that run's seed. Only a completed, graded run can be repeated this way, on the same connection and with the same `module` (or none, for a whole sweep); a run that does not match is refused with `400`. **Run again with this seed** on a report does the same. A finished report carries a **request fingerprint** in `requestStreamHash`: a SHA-256 hash of every request the run issued, in order. Locally cancelled exchanges are excluded because their outcome was not assessed. A request we retried after a `429` counts once. Two runs that sent the same requests have the same fingerprint, and a replay's report compares the two check by check. Where a request differs, it names the check and says which side changed it: us, your endpoint, or unclear. If ChargerDojo was updated between the two runs, the report says the runs cannot be compared rather than judging them. Some requests also carry values your endpoint chose. A run copies the id of a session your endpoint started, or the URL it gave for a new object, into the requests that follow. If your endpoint answers the replay with a different one, the requests that carry it differ too, and the report puts that difference on your side. It can only tell while ChargerDojo is still on the build that ran both runs: after an update, the report marks such a difference Unclear. Apart from those, two runs of one seed on the same build may differ in these ways, and only these: * We send a fresh request id every time, and OCPI 2.2 and later require it to be unique. * We send a fresh correlation id every time, and OCPI 2.2 and later require it to be unique. * A reservation ends 24 hours after the run that asked for it, so this moves with the run. A value that is not exactly that run start plus 24 hours is kept and reported. * A booking period starts an hour after the run that asked for it and lasts an hour, so it moves with the run. A period that is not exactly that is kept and reported. * Credentials, the Token a command carries, and any other field this installation is configured to hide are masked before the fingerprint sees them, so a difference confined to one of them is invisible to it. What a seed reproduces is **the requests we send**, not your endpoint: replaying a seed against a target that already holds those objects re-sends ids it created the first time, and an immutable object such as a settled CDR will rightly refuse the second POST. A replaceable one is updated instead, and where a check recommends `201 Created` for a new object, it reports your `200` as a warning. A new seed creates new objects, and some of them have no DELETE in OCPI (CDRs, Hub client info parties, and 2.1.1 Locations and Sessions), so they stay on your endpoint after the run. The seed on a Charging Journey is a different field with the same name. It belongs to the journey manifest, it shapes the scenario itself rather than object ids, and it is set when you compile the plan. See [Run a charging journey](/guide/run-a-charging-journey). ## Run one module or scenario Operation reference: [`POST /testing/runs`](/api-reference/testing/start-a-conformance-run-against-an-owned-connection). ```bash theme={null} curl -fsS -X POST "https://chargerdojo.com/api/v1/testing/runs" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d "{\"connectionId\": \"$CONNECTION_ID\", \"module\": \"scenario_ptp_e2e\"}" ``` Useful when you are iterating on one thing and do not want to wait for the rest. A scenario walks an end-to-end story (a session that produces a CDR, a command with its asynchronous callback) rather than checking endpoints in isolation, and it chains its own output: each step feeds the next. That is why a scenario can fail on a late step with a perfectly healthy endpoint; something upstream handed it nothing to work with. Read the exchange on the first red step, not the last. ## Send one manual OCPI command Before scripting a whole flow, it is often worth firing a single request and reading the exact exchange: Operation reference: [`POST /testing/command`](/api-reference/testing/send-one-bounded-ocpi-command-through-an-owned-registered-connection). ```bash theme={null} curl -fsS -X POST "https://chargerdojo.com/api/v1/testing/command" \ -H "Authorization: Bearer $DOJO_KEY" \ -H "Content-Type: application/json" \ -d "{\"connectionId\": \"$CONNECTION_ID\", \"method\": \"GET\", \"endpoint\": \"/locations\"}" ``` | Field | Notes | | - | - | | `connectionId` | A registered connection. | | `method` | `GET`, `POST`, `PUT`, `PATCH` or `DELETE`. A `DELETE` or `PUT` at `/credentials` ends the registration on their system, so it asks for a signed-in person rather than a key. | | `endpoint` | Module-relative OCPI path, for example `/commands/START_SESSION`. | | `body` | Request body for write methods. Optional. | | `expectedStatus` | Expected HTTP status, or every status the spec permits. Optional. | The response includes the request that was sent, the response status and body, and the latency. ## Manage your runs Operation reference: [`GET /testing/runs`](/api-reference/reports/list-owned-run-reports-conformance-and-journeys), [`DELETE /testing/runs/{id}`](/api-reference/reports/delete-a-report-you-own). ```bash theme={null} # List your runs, optionally filtered curl -fsS "https://chargerdojo.com/api/v1/testing/runs?connectionId=$CONNECTION_ID" \ -H "Authorization: Bearer $DOJO_KEY" # Delete one run curl -fsS -X DELETE "https://chargerdojo.com/api/v1/testing/runs/$REPORT_ID" \ -H "Authorization: Bearer $DOJO_KEY" ``` Runs and reports are shared within your organisation. A run id from another organisation answers `404`. ## Gate your build on it Exit `1` means "your partner broke a rule". Exit `2` means "we did not get an answer". Those are different problems and a build log should not conflate them, and an ungraded run belongs in the second group: it says nothing about your partner. The GitHub Action and the script below both exit this way. **Gate on `failed`, not on warnings.** A warning means a recommendation was declined, and a declined recommendation breaks no rule. If you fail your build on warnings you will be fixing code that already works, which is the exact mistake this tool refuses to make on your behalf. See [Read your report](/guide/read-your-report). Store the key as a repository or organisation secret so the runner masks it. See [Create an API key](/guide/create-an-api-key). ### On GitHub Actions From a new key to a check on every pull request, in four steps: 1. **Create a key.** In ChargerDojo, open **Settings**, then **Credentials**, and choose **Create key**. Keys come with the Integrate plan and above. See [Create an API key](/guide/create-an-api-key). 2. **Store it in the repository.** In GitHub, open the repository's **Settings**, then **Secrets and variables**, then **Actions**. Add a secret named `CHARGERDOJO_API_KEY` holding the key, and a variable named `CHARGERDOJO_CONNECTION_ID` holding the connection to test. `GET /api/v1/connections` lists your connections with their ids. 3. **Add the workflow.** Save this as `.github/workflows/ocpi-conformance.yml`: ```yaml theme={null} name: OCPI conformance on: pull_request: workflow_dispatch: permissions: {} jobs: conformance: # Pull requests from forks and Dependabot get no repository secrets, so the key would be empty. if: >- github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') runs-on: ubuntu-latest timeout-minutes: 30 steps: - uses: chargerdojo/ocpi-conformance-action@v1 with: api_key: ${{ secrets.CHARGERDOJO_API_KEY }} connection_id: ${{ vars.CHARGERDOJO_CONNECTION_ID }} ``` 4. **Open a pull request.** The **conformance** check runs the suite against the connection. When a required check fails, the check turns red and its log names the count and the report: `OCPI conformance: 2 required checks failed. Report: https://chargerdojo.com/ocpi-testing-tool/runs?run=...`. Open the report to see which rule broke and the exchange that broke it. The [ChargerDojo OCPI conformance Action](https://github.com/chargerdojo/ocpi-conformance-action) starts the run, polls it to the end, prints the verdict with a link to the report, and publishes `status`, `passed`, `failed`, `report_id` and `report_url` as step outputs. Add `module` to run one module or scenario, or `seed` to repeat a run. Its README lists every input and output, and it is listed on the [GitHub Marketplace](https://github.com/marketplace/actions/chargerdojo-ocpi-conformance). ### Scope a CI run to one module Add `module: locations` to the Action inputs above to test only Locations on the selected connection: ```yaml theme={null} - uses: chargerdojo/ocpi-conformance-action@v1 with: api_key: ${{ secrets.CHARGERDOJO_API_KEY }} connection_id: ${{ vars.CHARGERDOJO_CONNECTION_ID }} module: locations ``` A failure exits `1`; a run that never produces a usable verdict exits `2`. Not-tested checks and withheld modules remain named in the Action log and report. A completed partial run with no failures exits `0`, which is a scoped pass for the graded checks. It proves nothing about other modules or untested checks. Read the report's coverage before using that job as a release gate. ### On any other CI The same exit codes from a shell script, for any runner with `curl` and `jq`: Operation reference: [`POST /testing/runs`](/api-reference/testing/start-a-conformance-run-against-an-owned-connection). ```bash theme={null} #!/usr/bin/env bash set -euo pipefail BASE="https://chargerdojo.com" AUTH="Authorization: Bearer $DOJO_KEY" # Capture the HTTP status as well as the body. Without it, an expired wait (202), a rate # limit (429) or an auth error (401) all look identical to a failing run, and you would # tell your partner they are broken when the truth is that your script never got an answer. RESPONSE=$(curl -sS -w '\n%{http_code}' -X POST "$BASE/api/v1/testing/runs?wait=55" \ -H "$AUTH" \ -H "Content-Type: application/json" \ -d "{\"connectionId\": \"$CONNECTION_ID\"}") STATUS=$(printf '%s' "$RESPONSE" | tail -n1) BODY=$(printf '%s' "$RESPONSE" | sed '$d') case "$STATUS" in 200) ;; 202) echo "Run did not finish within the wait. Poll it; do not treat this as a failure." exit 2 ;; *) echo "Could not run conformance (HTTP $STATUS): $BODY" exit 2 ;; esac # Read the status before the counters. A run can end without ever being graded: restart the # server and the run it was carrying is stamped `interrupted`, and such a run carries no summary # at all, so `.data.summary.failed` is null rather than a number. Treating that as zero is how a # killed run reads as a pass. RUN_STATUS=$(printf '%s' "$BODY" | jq -r '.data.status') if [ "$RUN_STATUS" = "interrupted" ] && [ "$(printf '%s' "$BODY" | jq '.data.summary != null')" = "true" ]; then # Our run limit stopped it after grading some checks. What it graded is real. RUN_STATUS=stopped fi case "$RUN_STATUS" in completed) ;; failed|stopped) # The run stopped early, but what it graded before it stopped is real. Treat those failures # as failures: they are your partner's, not ours. echo "Run stopped early: $(printf '%s' "$BODY" | jq -r '.data.error // "no reason given"')" ;; *) # Terminal without a verdict. The server restarted or a release cut the run. # This says nothing about your partner. echo "Run ended as '$RUN_STATUS' and was never graded. Run it again." exit 2 ;; esac FAILED=$(printf '%s' "$BODY" | jq '.data.summary.failed') PASSED=$(printf '%s' "$BODY" | jq '.data.summary.passed // 0') UNGRADED=$(printf '%s' "$BODY" | jq '.data.summary.unobservable // 0') WITHHELD=$(printf '%s' "$BODY" | jq -r '.data.withheldModules // [] | join(", ")') # A completed run always carries counters. If one ever does not, jq hands you `null`, and # `[ null -gt 0 ]` is a bash error rather than a comparison, which falls through to the # success path below and prints a pass. Refuse instead of guessing. if [ "$FAILED" = "null" ]; then echo "The run reported no results to read. Treat this as no answer, not as a pass." exit 2 fi # How many checks were actually graded: passed plus failed, and nothing else. Zero of them is # not a pass. A version that advertises no runnable suite, or a mistyped module name, ends as a # run with every counter at zero, and "nothing failed" is vacuously true of a run that asked # nothing. if [ "$(( PASSED + FAILED ))" -eq 0 ]; then echo "The run graded no checks, so nothing is proved. Treat this as no answer, not a pass." exit 2 fi if [ "$FAILED" -gt 0 ]; then echo "OCPI conformance: $FAILED required checks failed" exit 1 fi # A run that stopped early proves its failures and nothing else. With none of them, it never # finished asking, so the checks it did not reach are untested rather than clean. That belongs # with "we did not get an answer", beside an interrupted run. if [ "$RUN_STATUS" = "failed" ] || [ "$RUN_STATUS" = "stopped" ]; then echo "The run stopped before it finished, with nothing failing yet. That is not a pass. Run it again." exit 2 fi # Zero failures is not a pass on its own: a module your plan does not cover contributes no # failures because it never ran, and a check marked not tested decided nothing: the response carried # nothing to grade, or an earlier step left it nothing to send. Say what was not tested rather # than calling it compliant. if [ -n "$WITHHELD" ] || [ "$UNGRADED" -gt 0 ]; then echo "OCPI conformance: every check that ran passed ($PASSED checks); not tested: ${WITHHELD:-none} (+$UNGRADED ungraded)" exit 0 fi echo "OCPI conformance: all $PASSED checks passed" ``` ## Keep it green without a pipeline In the testing tool's **Endpoints** tab, open **Schedule** on a registered external endpoint. Choose daily or weekly, an hour in UTC, and a weekday for weekly runs. Save to run the same conformance sweep on that cadence. Scheduling is included in [Automate and Certified](/guide/plans). Choose an active organisation member with a verified email for notices, or **Nobody** to keep the runs without email. When email is enabled, a regression alert names checks that previously passed and now fail, cites the saved evidence, and links to the authenticated report. An unchanged failure does not produce another alert. Warning-only and unobserved checks do not trigger a regression alert. If a recipient is added later, a continuing unmailed regression produces one notice within report retention. [Report retention](/guide/plans) limits how long that earlier run remains available for comparison. Once it expires, the next usable run starts a new comparison. If the endpoint cannot be reached, the notice says that. Recovery needs a run with full coverage of the saved comparison. It is reported once every previously alerted check is observed passing, or when reachability returns with no unresolved alerted checks. The report identifies a change of grader build when two runs used different builds. If a run grades nothing after an earlier run did, one notice says so. It is neither a failure nor a recovery, and the earlier run stays the comparison. A run that grades fewer checks than the earlier one also keeps that run as the comparison. The same applies when a check still in the run loses its earlier grade, even if new checks keep the total equal or larger. The endpoint row says its coverage is partial, and a check that passed before and fails now is still alerted. The endpoint row records each run outcome and the latest alert attempt separately, including suppression, disabled email, recipient problems and provider errors. Provider acceptance does not confirm inbox delivery. Clear the recipient to stop notices, or remove the schedule to stop scheduled runs. You can change or clear the recipient while email is retrying. Cadence and time changes wait until the pending occurrence settles. A send already underway can still finish. [Read your report](/guide/read-your-report) explains the saved verdicts. ## Next [Read your report](/guide/read-your-report). # Share or revoke a report Source: https://docs.chargerdojo.com/guide/share-a-report Copy a read-only report link, build the full URL from an API share token, inspect it without an account and revoke access when it is no longer needed. Share a report when a partner needs to inspect the verdicts and recorded exchanges. Anyone holding its link can read it without an account. [Review the payloads before sharing](#what-your-partner-sees): endpoint URLs and customer-specific data may still be visible. You need access to the report. Sandbox reports can be shared on any plan. Sharing a report about an external endpoint requires current paid access; revocation does not. ## Copy a link in the browser Open the report from **Runs**, then choose **Copy share link**. Open the copied URL in a signed-out or private browser window to confirm it shows the intended endpoint, version and run. Send the URL rather than the run id. Choosing **Copy share link** again replaces the token and invalidates the previous URL. Use the API below to revoke a link while keeping the report. ## Mint a link For the API examples, put a paid API key in `DOJO_KEY` and the report's id in `REPORT_ID`. You also need `curl` and `jq`. Operation reference: [`POST /testing/runs/{id}/share`](/api-reference/reports/issue-a-public-share-token-for-an-owned-report). ```bash theme={null} SHARE_RESPONSE=$(curl --fail-with-body -sS -X POST \ "https://chargerdojo.com/api/v1/testing/runs/$REPORT_ID/share" \ -H "Authorization: Bearer $DOJO_KEY") SHARE_TOKEN=$(printf '%s' "$SHARE_RESPONSE" | jq -er '.data.shareToken') SHARE_URL="https://chargerdojo.com/report/$SHARE_TOKEN" printf '%s\n' "$SHARE_URL" ``` The operation returns a `shareToken`, not a URL. `SHARE_URL` is the full link your partner opens. Keep it out of public logs and screenshots; anyone holding it can read the report. Minting again replaces the old token. For an external-endpoint report, a public link stops resolving while its organisation lacks the required plan. It can work again after access returns, within report retention. A revoked token stays invalid. ## What your partner sees The shared view contains the report's permitted fields and recorded exchanges, with personal-data redaction. It excludes account identity. Credential-shaped fields and known connection-token values are scrubbed from current evidence, but that is not a guarantee that every customer-specific value is safe to publish. Historical reports retain the evidence captured at the time. Inspect older exchanges before sharing; revoke an old link if it could expose a secret. A request that was not sent has no exchange to inspect. [Read and diagnose a report](/guide/read-your-report) explains missing evidence and scope. ## Why the evidence matters more than the verdict Send the failing exchange and applicable clause with the report so its recipient can investigate the same behaviour. For example, [OCPI 2.2.1 Credentials POST](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/credentials.asciidoc#credentials_post_method) requires HTTP 405 for an already registered client. That rule concerns this registration request, not every POST. ## Revoke a link Operation reference: [`DELETE /testing/runs/{id}/share`](/api-reference/reports/revoke-the-public-share-token-of-an-owned-report). ```bash theme={null} curl --fail-with-body -sS -X DELETE \ "https://chargerdojo.com/api/v1/testing/runs/$REPORT_ID/share" \ -H "Authorization: Bearer $DOJO_KEY" ``` Open the old URL in a signed-out window again. It should no longer reveal the report. Confirm that result before treating access as withdrawn. Re-sharing creates a fresh token; it does not restore the revoked link. Deleting the report also ends access. Deleting your account revokes links you issued and links on reports you created. Reports retained by the organisation can be shared again by a teammate under the same plan rules. # Test a payment terminal Source: https://docs.chargerdojo.com/guide/test-a-payment-terminal Test your terminal management system's OCPI Payments interface: register it as a PTP, run the Direct terminal payment journey and read each rule's result. A payment terminal provider (PTP) runs the terminal management system behind the card terminals at a charge point. Over OCPI that system starts a paid charging session at a CPO's charge point and confirms the amount it captured. ChargerDojo plays the CPO against your system and grades every exchange. Before you register anything, run the journey free on our sandbox: [Run a free sandbox payment](https://chargerdojo.com/ocpi-charging-journeys/?template=direct-terminal-payment\&target=sandbox) opens it on Sandbox PTP, a terminal system we run. It needs no login and leaves your saved endpoint as it was. [OCPI payment terminal testing](https://chargerdojo.com/ocpi-payment-terminal-testing/) shows the calls a run makes and the rules it grades. ## Which versions Payments is defined twice. OCPI 2.2.1 has the Direct Payment extension, a working document the [EVRoaming Foundation publishes](https://evroaming.org/wp-content/uploads/2024/10/DirectPayment_2_2_1___EVRF_version.pdf#page=21) on its own. OCPI 2.3.0 has a core [Payments chapter](https://github.com/ocpi/ocpi/blob/9ed1e39c24f5b84cb1e4008939f47bea838f9b25/mod_payments.asciidoc#mod_payments_payments_module). ChargerDojo tests both. OCPI 2.1.1 and 2.2 have no payments module. On 2.2.1 the flow runs without terminal activation and deactivation, which only 2.3.0 defines. OCPI's Role enum has no PTP value, so ChargerDojo registers with your system as a CPO and records yours as `OTHER`. ## Advertise the payments module Both documents give the module identifier `payments`, with the PTP as data owner. ChargerDojo looks for it in your version details with role `SENDER`. OCPI 2.3.0 says its Sender interface is "Typically implemented by market roles like: PTP." The 2.2.1 extension names no interface roles at all, so on 2.2.1 the `SENDER` role is ChargerDojo's reading, carried over from 2.3.0. The journey also pushes a Session and a CDR to you, so it needs your Sessions and CDRs `RECEIVER` interfaces. If your system lists Payments under any other identifier, ChargerDojo cannot see it. The Payments suites mark their checks not applicable, and the journey's preflight blocks the run and names the interface it could not find. ## Add your endpoint Testing your own system needs Integrate for the endpoint and Automate for Payments ([plans](/guide/plans)). 1. In ChargerDojo, open **Endpoints**. Under **What do you want to test?** choose **Your PTP service**. 2. Choose **Payments**, then **Continue**. **Registration and credentials** runs only the credentials handshake and the Credentials checks. 3. Enter the base URL your versions endpoint hangs off, and pick OCPI 2.2.1 or 2.3.0. Your system needs a public URL: a journey cannot run through the [local connector](/guide/connect-a-local-endpoint). 4. Enter the registration token (Token A) your system issued for ChargerDojo. 5. **Save endpoint**, then register. ChargerDojo runs the OCPI credentials exchange and a read-only check of three requests. The first run the flow offers is **Direct terminal payment**. ## Run the journey Open **Charging journeys**, choose **Direct terminal payment** and pick your endpoint. Under **Payment flow**, Configure asks: * **Invoice creator**. **CPO · await payment capture**, the default, makes the run wait for your Financial Advice Confirmation. **PTP · FAC not applicable** expects none. * **Stop path**. **CPO stops the charge**, the default; **PTP sends STOP_SESSION**, which makes the run wait for your STOP_SESSION; or **Preauthorization limit reached**. * **Expected Terminal ID**, on 2.2.1 only. The 2.2.1 extension has no terminal activation, so enter the Terminal ID your system will send, or leave it blank for an ID made for the run. * **Sandbox capture outcome**, on Sandbox PTP only, when the CPO invoices: **Successful capture**, **Partial capture** or **Failed capture**. Against your system the run reads the outcome from your confirmation instead. ChargerDojo sends its calls on its own, including the terminal activation on 2.3.0. Your calls come from your system, so someone or something has to act on your side during the run: sending the Terminal, pulling the Location and Tariff and sending START_SESSION, then STOP_SESSION if you chose that stop path, and the confirmation when the CPO invoices. The run waits up to 300 seconds for each. If one does not arrive in that time, the run records the timeout and moves on. ## Read the report Eighteen rules, D01 to D18, make up the journey, and a run grades the ones its choices reach. D05 is always reported not applicable. D03 runs only on 2.3.0, and D15 to D17 only at the **Adversarial** coverage depth. D15 is then reported not applicable, because the duplicate confirmation arrives at ChargerDojo as the CPO. Against your own system the run never grades D11, D13 or D14: D11 needs a capture outcome chosen on Sandbox PTP, and D13 and D14 grade steps only Sandbox PTP takes. Each rule shows the request and response behind it and the section of the specification it reads, and the report labels what kind of result it is. A **Conformance requirement** is a rule the specification makes mandatory: a required field, a closed value list or a SHALL. Neither payments document uses SHALL, so here it is always a required field or a closed value list. A **Business check** goes further than OCPI requires. An **Observation** records behaviour no mandatory rule covers. Some examples: * An assignment stays retrievable after the PUT (D02). * START_SESSION carries a Token and every field its version requires (D06). * START_SESSION carries an authorization reference and, when the CPO invoices, the confirmation repeats it (D07). * On Sandbox PTP with a failed capture chosen, the failure is reported as a payment failure, never as a good CDR (D11). * When the CPO invoices, a captured total that differs from the CDR total is reported as a warning (D12), because no OCPI clause requires them to match. [Read your report](/guide/read-your-report) explains the five verdicts. A report's share link opens for anyone you send it to, such as the CPO you are about to connect to ([share a report](/guide/share-a-report)). ## What payment terminal testing leaves alone ChargerDojo connects to your terminal management system's OCPI interface. It does not test the terminal hardware, settlement with your payment processor or the release of a preauthorization, which happen outside OCPI. AFIR places the card payment duty on charge point operators, so a report says nothing about AFIR compliance. The journey is sandbox-tested: it has run against our own terminal system, not yet against a terminal provider's. A report is a test result, not a certification. ## Learn the terms The [glossary](/guide/glossary) defines PTP and the other market roles, and [run a suite](/guide/run-a-suite) covers the Payments conformance suites. # Test a roaming hub Source: https://docs.chargerdojo.com/guide/test-a-roaming-hub Test how your OCPI roaming hub identifies itself, then register two counterparties to trace a Session and its error response through the hub. A roaming hub sits between CPOs and eMSPs so each one integrates once. OCPI 2.2 gave hubs a precise job: forward a request to the party it is addressed to, with the routing and message-id headers the specification requires, leave the object untouched, and carry the receiver's answer back. ChargerDojo checks that job against your own hub. Before you register anything, open the [reference hub sample](https://chargerdojo.com/ocpi-charging-journeys/?sample=reference-hub). It is a full relay report from our reference hub, a test peer we run that follows every rule below and does nothing optional. Every plan can read it, signed in or not. Your report has the same shape, read from your hub's own traffic. [OCPI roaming hub testing](https://chargerdojo.com/ocpi-roaming-hub-testing/) shows what each plan grades and what a run sends through your hub. ## Which versions Hub testing runs on OCPI 2.2, 2.2.1 and 2.3.0, the versions that define message routing. OCPI 2.1.1 mentions hubs in its [introduction](https://github.com/ocpi/ocpi/blob/28ea45329a50c3dbfd790505b97860854db1d4a6/introduction.md#introduction-and-background) ("A good roaming system (for bilateral usage and/or via a hub)") but has no routing headers, no Role enum and no HubClientInfo module, so there is nothing in it for a hub test to check. ## Check your hub's identity Identity testing needs one registration and runs on Integrate. 1. In ChargerDojo, open **Endpoints**, choose **Add an endpoint**, or **Add endpoint** once you have one, then pick **Test a roaming hub** and choose **Continue**. The command palette entry **Test a roaming hub** opens the same form with the persona chosen. 2. Keep the mode on **Identity**. Enter your hub's base URL and its OCPI version. The form shows the exact versions URL we will ask for. 3. Enter your hub's own party. It is required on 2.3.0, where a hub names itself by `hub_party_id`. 4. Enter the CPO counterparty your hub provisioned for us and the registration token (Token A) it issued for that party, then **Register**. When the registration completes, **Check identity** on the endpoint opens the identity journey. It reads your hub's Credentials and watches the Configuration Module requests your hub sends us. ## Trace a relay between two counterparties Relay testing runs on Automate. We join your hub as two parties, a CPO and an eMSP, so a request one sends can be watched arriving at the other. 1. In the same form, switch the mode to **Relay**. 2. Enter CPO and eMSP counterparties, each with the registration token your hub issued for it. The two parties must differ, and the pair uses two of your plan's endpoints. 3. **Register both**. Each side registers on its own. If one side fails, its row shows **Retry** beside it, and the healthy side stays registered. **Test relay** on the endpoint runs the relay journey. Our CPO party sends a Session through your hub to our eMSP party, sends an update for a Session the eMSP party never received so the error response comes back through the hub, and addresses one request to a party your hub does not know. Some hubs deliver between two parties only after a roaming agreement exists between them. On 2.2 and 2.2.1, when your hub's HubClientInfo list reports our eMSP party as anything other than `CONNECTED`, the run sends no relay traffic and marks the relay checks not tested with that reason. Set up the agreement between the two counterparties, then run again. See [OCPI 2.2.1 ConnectionStatus](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/mod_hub_client_info.asciidoc#mod_hub_client_info_hub_connection_type_enum). This preflight is ChargerDojo's decision to avoid sending an unobservable relay. Automate also schedules the relay. Open **Schedule** on the paired endpoint, choose **Hub relay**, and every scheduled run re-reads both registrations and your current plan before it sends anything. A schedule pauses itself when either registration goes away and resumes on its next slot once the pair is back. Certified covers many hubs and pairs under fair use, on a quote. ## What each check grades Every hub journey check cites the clause it grades. These SHALL rules can fail your hub: | Check | What it reads | Clause | | - | - | - | | U01 | The forwarded request names our eMSP party in `OCPI-to-*` and our CPO party in `OCPI-from-*`. | "When implementing OCPI these four headers SHALL be implemented for any request/response to/from a Functional Module." | | U02 | Your hub's answer to our CPO party carries the same two parties the other way round. | Same clause, read on the response. | | U03 | Each forwarded request carries a new `X-Request-ID`, and each response echoes its request's id. | "the request to this party SHALL contain a new unique value in the X-Request-ID HTTP header" | | U04 | The forwarded request carries the `X-Correlation-ID` we sent, byte for byte. | "the request SHALL contain the same X-Correlation-ID HTTP header (with the same value)" | | U05 | The forwarded Session keeps the `last_updated` instant we sent. | "the `last_updated` fields SHALL NOT be updated by the Hub" | | U06 | The status code our eMSP party answered is the one our CPO party receives. | "The Hub SHALL then forward this error to the client which sent the request" | | U07 | On 2.2 and 2.2.1, your hub's Credentials `roles` hold only role `HUB`. | "A Hub SHALL only reports itself as role: Hub." | | U08 | On 2.2 and 2.2.1, your hub's HubClientInfo list is a list, and it names our other party. | "A Hub SHALL report connected parties via the HubClientInfo module." | | U09 | On 2.3.0, your hub's Credentials carry a five-character `hub_party_id`. | "SHALL give the country code and party ID of the Hub in the `hub_party_id` field" | | U10 | No Credentials, Versions or HubClientInfo request or response carries a routing header. | "Thus routing headers SHALL NOT be used with these modules." | The quotes are from the OCPI 2.2.1 chapters [Message routing](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/transport_and_format.asciidoc#transport_and_format_message_routing), [Unique message IDs](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/transport_and_format.asciidoc#transport_and_format_unique_messageg_ids), [Hub errors](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/status_codes.asciidoc#status_codes_4xxx_hub_errors) and [Credentials](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/credentials.asciidoc#credentials_credentials_object). OCPI [2.2](https://github.com/ocpi/ocpi/blob/0b53077d877d9f61815408554c2962b013f2536a/transport_and_format.asciidoc#transport_and_format_message_routing) and [2.3.0](https://github.com/ocpi/ocpi/blob/9ed1e39c24f5b84cb1e4008939f47bea838f9b25/transport_and_format.asciidoc#transport_and_format_message_routing) print the same routing, message-id and error text; the 2.3.0 [Credentials chapter](https://github.com/ocpi/ocpi/blob/9ed1e39c24f5b84cb1e4008939f47bea838f9b25/credentials.asciidoc#credentials_credentials_object) carries `hub_party_id` where 2.2 and 2.2.1 carry the Hub role. Party ids compare as case-insensitive strings, as their `CiString` type says. Message ids compare byte for byte. `last_updated` compares as an instant, so `10:00:00Z` and `10:00:00.000Z` are the same value. U08 grades what the list proves. If the list omits our other party, U08 is not tested rather than failed, because a party can be activated by the relay itself, and a later delivery proves nothing about an earlier listing. An omitted, null or empty list is permitted. A list container that is present and is not a list fails. Sources: [OCPI 2.2.1 HubClientInfo GET](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/mod_hub_client_info.asciidoc#mod_hub_client_info_hub_get) and [cardinality](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/terminology.asciidoc#terminology_cardinality). These three are observations. They appear in the report and never fail your hub: | Check | What it reports | Why it never fails | | - | - | - | | U11 | A relayed request your hub answered with success that never reached our eMSP party. | No clause says a hub SHALL deliver. | | U12 | The answer to a request addressed to an unknown party, expected as `4001`. | The 4xxx codes are written as "shall be used", lowercase. | | U13 | On 2.3.0, whether `roles` lists the parties reachable through your hub. | The specification states it as a note. | When a check needs evidence that is missing, the report marks it not tested and says why. If a relay never reached our eMSP party, U01 to U05 are not tested. The report names the hop that did not arrive. ## What hub testing leaves alone Broadcast Push, Open Routing, GET All via Hubs, the HubClientInfo push and its still-alive check, chains of hubs and commands through a hub are optional for a hub or not tied to it by any clause, so no check grades them. ## Learn the terms The [Learning Hub's key terminology](https://chargerdojo.com/learn/key-terminologies/) explains what a hub is in OCPI, the Explorer walks the [Credentials](https://chargerdojo.com/learn/explorer/credentials/) and [HubClientInfo](https://chargerdojo.com/learn/explorer/hubclientinfo/) modules, and the [Payload Workbench](https://chargerdojo.com/ocpi-testing-tool/payload-workbench) checks a single Session or Credentials object in the browser. None of them sends traffic through your hub, so only the journeys above test delivery. # Troubleshoot setup and run failures Source: https://docs.chargerdojo.com/guide/troubleshooting Use the operation, HTTP status and response body to separate registration errors, pending starts, interrupted work and failed OCPI checks. Keep the operation, HTTP status and response body together. A registration failure, a rejected run start and a failed check need different next actions. A successful HTTP response alone does not prove a finished test. ## First, separate the two kinds of failure A failed check in a finished report concerns the recorded endpoint behaviour. Inspect the request, response and applicable rule before changing the implementation. A request refused before grading gives no conformance verdict. Registration can return an HTTP error after attempting a handshake: `POST /connections/{id}/register` returns `502` with a failed connection and error details. An active report read can return `200` while work continues. Use the operation-specific cases below. ## Status codes Paths in this table are relative to `https://chargerdojo.com/api/v1`. | Operation and response | Meaning and next action | | - | - | | `POST /connections` returns `201` | The endpoint record was saved. It still needs registration. | | `POST /connections/{id}/register` returns `502` | The credentials exchange failed. Read `message`, `data.status` and the saved connection's `lastError`; check the first failed discovery or credentials step. | | `POST /testing/runs` returns `202` | The response identifies work to follow. Read the report rather than treating acceptance as a verdict. | | `GET /testing/runs/{id}` returns `200` | The report read succeeded; it can still be active. Inspect `data.status` and continue bounded polling until a final state. | | `POST /testing/runs` returns `503` with `code: START_PENDING` | The original start may still create its run. Retry after `Retry-After` with the same `Idempotency-Key` and the same body. Do not use a new key for this retry. | | `POST /testing/runs` returns another `503` | Read its message and `Retry-After`. Restarting or unavailable service is not evidence about the endpoint. Retry the same intended start with its existing key and body. | | `POST /testing/runs` returns `409` | The idempotency key was used with a different body. Retry the original body for that start. Give a fresh, intentionally separate run its own key. | | Journey preview or start returns `422` | Read the operation's validation details and repair the submitted journey. Conformance start does not declare this status. | | A journey start returns `409` for an expired or changed plan | Preview again and start the new plan using its returned id and hash. | | Journey recovery returns `409` for a stale `recoveryVersion` | Read the run again and choose from the current offered options and version. | | An account operation returns `401` | Check the Bearer header and whether the key is invalid or revoked. An OCPI peer's token error is a separate exchange. | | An owned-resource read returns `404` | Check the id and organisation. Another organisation's resource is not exposed. A shared report can also be expired, revoked or unavailable under its current plan. | | Endpoint creation returns `402` or `409` | Read the named capability or connection ceiling. Check usage before removing an endpoint or changing plans. | | A run start returns `402` or `429` | Read the capability, quota or rate-limit message. Honour `Retry-After` where supplied. A paused journey can still hold an in-flight slot. | | An operation returns `400` | Correct the parameter or body named by its validation message. | | An operation that declares `500` returns it | Preserve its response and request id, then retry within your deadline. It is not a failed protocol check. Contact support if it persists. | Use the [API overview](/api) and the operation's generated reference for its accepted parameters and exact responses. [Read usage](/api-reference/usage/read-the-key-owners-plan-limits-and-current-usage) to check the key owner's limits. Use the [suite CI recipe](/guide/run-a-suite#gate-your-build-on-it) for a bounded wait and a separate no-verdict outcome. ## Registration ### Check the address and discovery URLs `partnerBaseUrl` is normally the address before `/versions`. Entering a full versions URL there can produce `/versions/versions`. Read the proposed URL under the browser field. **Check this address** inspects candidates; **Use this address** applies the selected candidate. If the operator's versions URL has another shape, pass it in `partnerVersionsUrl`. Also inspect the URLs inside the response. Version details, credentials and module endpoints must all be reachable on the selected transport. A public tunnel's first URL can work while a later discovery URL still points at a private address. [Test a private endpoint](/guide/connect-a-local-endpoint) explains both transports. ### Check the token and encoding During registration, use the registration token the receiving endpoint issued. After registration, use the credentials token exchanged for ongoing requests, not the spent registration token. OCPI 2.1.1 sends the credentials token raw; from 2.2 onwards the Authorization header carries it Base64 encoded. Choose the endpoint's actual version. For an incoming registration, copy the header shown by the issued-token panel. Sources: [OCPI 2.1.1 request format](https://github.com/ocpi/ocpi/blob/28ea45329a50c3dbfd790505b97860854db1d4a6/transport_and_format.md#request-format) and [OCPI 2.2.1 Authorization header](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/transport_and_format.asciidoc#transport_and_format_authorization_header). ### Check the callback and saved state An incoming credentials POST requires ChargerDojo to call the client's advertised URL. Confirm that URL is reachable publicly; a connector does not carry this callback. **Waiting for them** means the token is issued but unused. **Registered** means the exchange finished, not that conformance passed. A handshake that fails after creation leaves a record to inspect. Keep the connection id, read `lastError` and repair the failed step. If only the host changed, [change the address](/guide/connect-a-partner#when-the-endpoint-moves) rather than creating another endpoint. ## Conformance runs ### A module is refused A conformance run refuses a module when the selected OCPI version has no available suite for it or does not advertise it. Scenario suites have a separate selection path. Check the version and [testing coverage](/guide/coverage) before changing the endpoint. ### No checks or missing evidence Confirm registration, selected version, advertised module/interface and chosen scope. Not tested means the check has no grade; not applicable means it is outside the endpoint's responsibilities. Neither proves the endpoint is correct or broken. A later scenario check can lack an object an earlier step was meant to produce. Start with the first failed exchange rather than treating every later ungraded check as another defect. [Read your report](/guide/read-your-report) shows how to follow that dependency. ### Warnings and failed checks Warnings do not fail a run. They can concern OCPI recommendations, ChargerDojo recommendations or observations. Fix required failures, then decide which advice matters for the integration. If a CI build fails on warnings alone, gate it on failed checks instead; the [CI recipes](/guide/run-a-suite#gate-your-build-on-it) do that. [Verdicts and counts](/guide/verdicts) explains their different counters. ## Charging journeys ### The run says recovering No action is needed while the state is `recovering`. A worker has reclaimed the run after its previous lease expired and is resuming from its saved checkpoint. An uncertain dispatched action instead pauses as `recovery_required` for your decision. ### The run needs a recovery decision If a journey is paused as `recovery_required`, inspect its last exchange and offered recovery options. Use the current `recoveryVersion`; do not guess whether a request reached the peer. Follow [journey recovery](/guide/run-a-charging-journey#when-a-run-pauses-for-a-recovery-decision). ### Run integrity is degraded or invalid `runIntegrity` describes ChargerDojo's evidence, not the endpoint's conformance. A degraded run can have an action skipped after a backend outage or continued after a recovery decision. Invalid integrity can accompany an uncertain dispatch awaiting a decision or an interrupted run. Inspect the run state and recorded exchanges; do not count incomplete evidence as a partner failure. ### A journey start returns 503 No healthy Charging journeys worker is available for the target. The health check runs before admission, so nothing was admitted and nothing reached the endpoint. Retry later with the same `Idempotency-Key` and body. This is a service availability error, not an endpoint verdict. ## Verdicts ### Passed with warnings The graded checks passed and the report includes advice. Warnings do not increment the failed-check count; inspect scope and ungraded checks before drawing a broader conclusion. [Verdicts and counts](/guide/verdicts) explains the summary. ### Can a passing check fail? Yes. Each conformance check is run against deliberately broken peers to show it detects the defect it targets; [how checks are tested](/guide/coverage#how-checks-are-tested) describes that evidence and its limits. ## Shared reports A recipient needs the full share URL, not an API key. If it no longer opens, ask the owner to check retention, plan access or revocation. A new share link invalidates the old one. [Sharing guidance](/guide/share-a-report) covers signed-out inspection and revocation. ## Ask for help Send [support](mailto:support@chargerdojo.com) the operation, HTTP status, response code/message, connection or report id and first relevant exchange. Include the OCPI version and what you expected. Keep API keys, pairing tokens and public share tokens out of tickets and captures. A check that was not sent has no request or response to attach. # Verdicts, counts and run states Source: https://docs.chargerdojo.com/guide/verdicts The five verdicts, conformance and journey counters, run states, and how warnings and ChargerDojo recommendations differ from failed requirements. Read the run state before interpreting its counts. A queued or active run has no final result. A report's verdict describes only its recorded scope; [coverage](/guide/coverage) explains what lies outside it. ## The five verdicts | Verdict | What happened | Next action | | - | - | - | | **All checks passed** | Graded checks passed with no failures, warnings or missing intended coverage. | Confirm the selected scope covers your release. | | **Passed with warnings** | Graded checks passed; recommendations or observations produced warnings. | Read the warnings. They do not fail the run. | | **Not compliant** | At least one graded required rule failed. | Investigate the first failed exchange, then retest. | | **Partial coverage** | Nothing failed, but some intended evidence was ungraded or scope was withheld. | Read the named limits. The tested subset proves nothing about what was omitted. | | **No checks ran** | No check received a conformance grade. This can include a run containing only ungraded checks. | Resolve the missing evidence or select runnable checks. This is not a pass. | A failure takes priority over the other verdicts. With no failures, zero graded evidence takes priority over partial coverage, warnings and a clean pass. The app derives these labels from counts and evidence. The API returns summary fields and run status rather than a verdict word. ## Conformance counters `data.summary` contains: | Field | Meaning | | - | - | | `total` | All checks counted in this summary. | | `passed` | Checks that passed their required validations. | | `failed` | Checks that failed a required validation. | | `warned` | Checks with a declined OCPI recommendation or an advisory observation. This count can overlap graded checks. | | `unobservable` | **Not tested**. Nothing supplied a grade, or an earlier step left this check without what it needed. Read its reason. | | `notApplicable` | **Not applicable**. Outside the endpoint's responsibilities, including an interface it does not advertise or a role ChargerDojo did not register with. | For a conformance run: ```text theme={null} total = passed + failed + unobservable + notApplicable ``` `warned` overlaps graded checks, so adding it again double-counts them. Not tested and not applicable are separate counts; neither is a failure. Older reports can omit `notApplicable`. ## Journey counters and authority A charging journey counts exclusive outcomes: ```text theme={null} total = passed + failed + warned + unobservable + notApplicable ``` Read the report's authority lanes as well as the aggregate counters. **OCPI conformance** checks protocol obligations. **Business checks** concern the chosen contract or configuration. **Observations** record behaviour that is not graded as an OCPI requirement. A partner agreement does not become an OCPI rule because it appears in the same report. A journey's coverage and integrity fields also affect whether it provides a usable result. Follow the [journey guide](/guide/run-a-charging-journey) for its completion policy; a suite's scoped-pass policy is not a substitute for a journey's required coverage. ## Run states | `data.status` | What to do | | - | - | | `queued` | Wait for execution to start. | | `running` | Follow progress; do not call the current counts final. | | `recovering` | A recovery action is in progress. Read the current state again. | | `recovery_required` | Read the server-offered recovery options in the journey. It still holds its run slot. | | `completed` | Inspect summary, scope and integrity before accepting the result. | | `failed` | Read the run error and recorded evidence. The state alone does not identify a failed protocol clause. | | `cancelled` | Work was stopped; it is not a successful run. | | `interrupted` | The run did not finish. A missing summary is not a summary of zeroes. | The final states are `completed`, `failed`, `cancelled` and `interrupted`. An HTTP `200` from a report read can still contain an active state. Poll `data.status` with a deadline; use the [suite CI recipe](/guide/run-a-suite#gate-your-build-on-it) rather than accepting a successful HTTP response alone. ## Why a warning is not a failure OCPI requirement keywords distinguish required behaviour from recommendations. Declining a `SHOULD` is not a broken requirement, and a warning does not increment `failed`. A few warnings come from ChargerDojo's own rules rather than a `SHOULD`, and the summary names them as ours. Sources: [OCPI 2.2.1 requirement keywords](https://github.com/ocpi/ocpi/blob/ca8c04c5c8cc10ad1be2a82f61b19377d98e2a67/terminology.asciidoc#terminology_terminology_and_definitions) and [RFC 2119 section 3](https://www.rfc-editor.org/rfc/rfc2119#section-3). ## ChargerDojo recommendations are not OCPI rules A check can carry a **ChargerDojo recommendation**: advice from us where OCPI is silent, shown in blue with a bulb beside the status and explained when you open the check. It names its source and the date we read it. It is not a warning, never passes or fails a check, and changes no count and no verdict. The API returns it as `recommendations` on each check, and the MCP checks tool labels it as ours. Response time follows two separate rules: * **OCPI sets no response time.** When one of ChargerDojo's own limits stops a request (30 seconds of silence, or 60 seconds for the whole response), the check is **Not tested**, with the time it waited and the label `ChargerDojo limit`. It is never failed and never retried, because OCPI tells a client not to queue and resend a failed request. A run that reaches its own 10-minute limit stops as `interrupted`, keeps every check it already graded and sends no more. * **We recommend answering within 10 seconds.** Real counterparties give up sooner: Plugsurfing's [Roam OCPI FAQ](https://developer.plugsurfing.com/docs/roam-ocpi-faq) documents a real-time authorization timeout configurable from 1 to 10 seconds. A slower answer is flagged on its check. ## Use the counts in CI Zero failures alone is insufficient for a CI pass. Confirm completion, a nonempty valid summary and graded evidence, then apply the policy for that run type. [Diagnose a report](/guide/read-your-report) when a required rule fails. # Work with a colleague Source: https://docs.chargerdojo.com/guide/work-with-a-colleague Invite someone into your organisation, what each role can do, what a colleague shares with you, and what happens to their work when they leave. Everything you create in ChargerDojo belongs to an **organisation**, not to you personally: the partner endpoints, the runs, the reports and the schedules. Inviting a colleague into yours gives them the same work to look at, on the plan you already pay for. Connectors are the exception, and there is a section on them below. Seats are free. We do not charge per person, and no plan sells a number of people. There is a ceiling of 200 in one organisation, which is a limit on abuse rather than a rung you can buy past; if you need more, write to us. ## Invite someone 1. Sign in and open **Settings**, then **Members**. 2. Check the organisation named at the top of the page is the one you want them in. If you belong to more than one, the switcher is in the account menu, under your initial in the top right, and it shows which organisation holds your plan. 3. Choose **Invite**, enter their work email, and pick a role. 4. Send them the link the invitation gives you. It is shown once and it expires. The link is bound to the address you invited. Opening it signed in as anybody else is refused, and so is opening it before that address has been verified, so a forwarded link joins nobody. They do not need an account first: the link takes them through signing in with that address and drops them straight into your organisation. If they tell you the link says the invitation was sent to a different address, they are signed in as someone else. Sign out, then open it again as the invited address. > [!NOTE] > > Invite them into the organisation that holds your subscription, rather than creating a new one > for the team. A new organisation starts on the free plan and your subscription stays where it > is. We cannot move a subscription between organisations for you yet. ## What each role can do | | Member | Admin | Owner | | - | - | - | - | | See every endpoint, run, report and schedule | Yes | Yes | Yes | | Add endpoints, run suites, run journeys | Yes | Yes | Yes | | Delete or re-point what **they** created | Yes | Yes | Yes | | Delete or re-point what **anyone** created | No | Yes | Yes | | Invite people, change roles, remove people | No | Yes | Yes | | Pair and revoke connectors, create API keys | No | Yes | Yes | | Set up scheduled runs | No | Yes | Yes | | Rename the organisation | No | Yes | Yes | | Buy, change or cancel the plan | No | Yes | Yes | | Read the audit log | No | Yes | Yes | | Hand the organisation to somebody else | No | No | Yes | Invite an engineer as a **Member** unless they need to manage the team or the plan. A member adds endpoints, runs suites and journeys, reads every report and shares any of them. What they cannot do is undo somebody else's work, pair a connector, or set up a scheduled run. Two things the table cannot say in a column. An admin cannot remove, suspend or re-role an **owner**, and nobody can invite somebody straight in as one: ownership moves only by handing it over. And "what they created" means a row that records who made it. A handful of older endpoints record no creator, so they belong to nobody and need an admin to remove. Owner is one step above admin and holds one thing: handing the organisation over. Everything else an owner can do, an admin can do too. ## What a colleague shares with you, and what they do not **Partner endpoints are shared, and they are the meter.** Your plan's endpoint allowance belongs to the organisation, so two people on Integrate hold three partner endpoints between them, not three each. A colleague brings no extra capacity with them. See [Plans and pricing](/guide/plans). **Runs are counted per person.** Your colleague's suites do not eat into your rate limit. **Reports are shared.** Anybody in the organisation can open, read and share any report the organisation produced, whoever started the run. **Connectors are personal.** A connector runs on one person's machine and is paired to them, and pairing one needs **admin**, so a member asks an admin to pair theirs. Nobody shares a connector: each of you gets your own. See [Test a private endpoint](/guide/connect-a-local-endpoint). **The simulator is per browser.** The chargers and sessions on the simulator screens belong to the browser session you are in, so you and your colleague will not see each other's. That surface is for learning and demos; the paid testing surfaces are all organisation-wide. ## When somebody leaves Remove them in **Settings**, then **Members**. Removing someone: * takes away their access at once, on every device; * revokes the API keys they created, so anything running with one stops; * revokes the connectors they paired, and closes the sockets those connectors were holding; * pauses any scheduled run they set up, because the run acted for them. Re-save the schedule to take it over. Everything else they made stays: the endpoints, the reports, the journey presets and the runs all belong to the organisation and are still there. You cannot remove whoever is paying for the organisation, because their card is what the plan runs on. Move the subscription to somebody else first, in **Settings**, then **Billing**. > [!WARNING] > > If any of your partner endpoints ran over a connector **they** paired, those endpoints stop > working until you point them at a connector that is still live. Pair one of your own in > **Settings**, then **Credentials**, then open **Testing**, then **Endpoints**: the affected > endpoint offers **Move to connector**. You do not need to register with the partner again. ## Leaving an organisation yourself Open **Settings**, then **Members**, and choose **Leave**. You lose access to that organisation's endpoints, runs and reports. Anything in your own organisation is untouched. Two things stop you leaving. If your card is paying for the organisation, move the subscription first, in **Settings**, then **Billing**. And an owner cannot leave while they are the only owner: open **Settings**, then **Members**, and choose **Make owner** on the person taking it over. You stay an admin afterwards, so you keep everything except the ability to hand it on again. # API documentation Source: https://docs.chargerdojo.com/index Automate ChargerDojo: register partner endpoints, run OCPI conformance suites and charging journeys, and read the graded reports. [ChargerDojo](https://chargerdojo.com) tells you where your OCPI implementation departs from the specification, and shows you the exchange that proves it. You can drive all of it in the browser; these pages are for the parts you want to automate. The end of a run looks like this: ```json theme={null} { "total": 51, "passed": 46, "failed": 2, "warned": 3, "unobservable": 3, "notApplicable": 0 } ``` Each of those two failures names the check, the rule it broke, and the request and response that produced it. The three warnings are separate on purpose: they mark a recommendation or an observation, so they never fail a build. `total` is `passed + failed + unobservable + notApplicable`; `warned` overlaps graded checks, so do not add it to `total`. ## Start here [Try a sandbox test in the browser](/guide/browser-quickstart), with no account or API key. Read [what ChargerDojo tests](/guide/coverage) before connecting an endpoint. > [card] [What is free](/guide/plans#what-is-free) > > The sandbox, the simulator and the MCP server cost nothing. Where the paid line falls, and > why. > [card] [Quickstart](/guide/quickstart) > > One conformance run against the sandbox from the command line, start to verdict. Needs an > API key. > [card] [Connect a coding agent](/guide/connect-a-coding-agent) > > Ask OCPI questions from Claude Code, Codex or Cursor. The question half needs no > account. > [card] [Connect a partner](/guide/connect-a-partner) > > Point it at a real endpoint and run the suite against that instead. > [card] [Read your report](/guide/read-your-report) > > What a failure is telling you, and what to change. > [card] [Run a charging journey](/guide/run-a-charging-journey) > > Follow a timed charging interaction and inspect its recorded exchanges. > [card] [Plans and pricing](/guide/plans) > > What each plan costs, and the capability behind every line of the table. > [card] [Create an API key](/guide/create-an-api-key) > > Needed once, before the API or your own account's data works from a terminal. > [card] [API reference](/api) > > Every public operation, its authentication, and the response envelope. ## What is public Only the operations in the **API reference** section are the public API. Everything else the application does, including the interactive simulator, entity editing, and account and key management, is browser functionality, not part of the automated contract.