> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chargerdojo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Journey manifest fields

> Look up the JSON types, valid values, defaults and examples for each field in a ChargerDojo charging journey manifest before you preview it.

Use this reference while editing a JSON manifest. For a complete file and the
import-to-report workflow, see [Author a custom journey](https://docs.chargerdojo.com/guide/author-a-scenario.md)
and [Custom journey examples](https://docs.chargerdojo.com/guide/custom-journey-examples.md).

Examples show individual JSON fields. A dotted name means the field goes inside
the named object. `[]` marks a field on each entry in an array. A JSON value in the
Default column is filled in when ChargerDojo reads the file. Where the column says
None, supply a required field or leave an optional field out.

## Fields to choose first

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `journey` | Required string. Allowed values are `custom`, `first-successful-charge`, `rough-session`, `charger-reset`, `partner-connection`, `catalogue-trust`, `remote-start-stop`, `live-price-parking`, `reservation`, `cdr-desk`, `offline-catch-up`, `book-arrive-charge`, `direct-terminal-payment`, `smart-charging-control`, `hub-connection-status`, `invalid-charging-data`, `roaming-hub-identity`, `roaming-hub-relay`, `roaming-hub-routing-modes`, `hub-routed-charge`, `partner-delivery-recovery`, `gireve-emsp-dialect`, `roam-cdr-delivery`, `roam-location-sync`. Use `custom` to run your own actions. | None | `"journey": "custom"` |
| `roleUnderTest` | Required string. Allowed values are `CPO`, `EMSP`, `PTP`, `OTHER`, `SCSP` or `HUB`. Match the role of the endpoint under test. Use `HUB` with a built-in roaming hub journey. | None | `"roleUnderTest": "CPO"` |
| `clock.mode` | Required string. Allowed values are `real` and `accelerated`. Real follows wall-clock time. Accelerated advances at 20 times real time by default. Use real time when your partner needs time to answer or change state. | None | `"clock": { "mode": "real", "durationSeconds": 300 }` |
| `session` | Required object. The [Session settings](#session-updates) configure the updates that a built-in journey generates. Custom files use `actions` for step timing and payload values. | None | `"session": { "cadenceSeconds": 60, "strategy": "put-and-patch", "updates": ["status"] }` |

## Target and journey

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `schemaVersion` | Required integer. Allowed value is `1`. | None | `"schemaVersion": 1` |
| `targetId` | Required string, 1 to 64 characters in the schema. Supply the 24-character hexadecimal ID of an endpoint in your workspace. Configure requires a registered endpoint before Preview. Choose **Use selected endpoint** to replace a placeholder or a different ID. API Preview can return `runAllowed: false` for an unregistered endpoint. Register it and request a new preview before starting. | None | `"targetId": "000000000000000000000001"` |
| `ocpiVersion` | Required string. Allowed values are `2.1.1`, `2.2`, `2.2.1` or `2.3.0`. Match the registered endpoint. Action and journey support may vary by version. | None | `"ocpiVersion": "2.2.1"` |
| `journeyPack`  | Required string. Allowed values are `core-charging`, `foundation`, `catalogue`, `commands`, `billing`, `recovery`, `hub`, `booking`, `direct-payment`, `charging-profiles`, `hub-client-info`, `negative` or `roaming-hub`. It labels the group a journey belongs to, such as `commands` for remote commands. A custom file accepts any of these values, and the pack does not change its plan. For a built-in journey, use the `packId` and `roleUnderTest` from its template in [`GET /testing/journeys`](https://docs.chargerdojo.com/api-reference/journeys/browse-the-journey-catalogue-for-a-target). Pick an `ocpiVersion` from its `supportedVersions` that matches your endpoint. To get a file with these fields filled in, open the built-in journey in **Configure**, choose **Edit definition JSON**, then **Export definition**. | None | `"journeyPack": "commands"` |
| `templateRevision` | Optional string, 1 to 128 characters. Omit it for a new file. A saved definition can carry a revision label. | The compiler's current revision for the journey | `"templateRevision": "1"` |
| `extensions` | Array of up to 2 strings. Allowed values are `ocpi-2.3.0-booking-1.1` and `direct-payment-2.2.1`. Both `book-arrive-charge` and custom Booking actions require OCPI 2.3.0 and the Booking extension. A built-in Direct Payment run on 2.2.1 requires the Direct Payment extension. | `[]` | `"extensions": ["direct-payment-2.2.1"]` |
| `coverageDepth` | String. Allowed values are `happy-path`, `edge-cases` or `adversarial`. Only the built-in Direct Payment journey reads it. `adversarial` adds harder steps, such as requests the terminal provider should refuse. `happy-path` and `edge-cases` run the same plan. Leave it out of a custom file. | `"happy-path"` | `"coverageDepth": "edge-cases"` |
| `seed` | Required string, 1 to 128 characters. Any label you choose. It fixes the choices made when data is generated, such as Session update timing within the jitter, and the start of the Session ID: `JRN-` and the seed's first 20 letters and digits, or `JRN-SESSION` when it has none. `"seed": "start-stop-test"` gives IDs that start with `JRN-startstoptest`. What repeats is those choices and that prefix. Each run still changes its times, the suffix a custom journey adds to the Session ID, and other run-specific IDs. | None | `"seed": "start-stop-test"` |
| `topology` | Required object containing `kind` and `profile`. The object may be empty to use their defaults. | None | `"topology": { "kind": "direct", "profile": "core-ocpi" }` |
| `topology.kind` | String. Allowed values are `direct` or `hub`. Keep `direct` for a custom file and most built-in journeys. Use `hub` for the hub journeys that require it, listed [below](#journeys-with-a-required-hub-profile). | `"direct"` | `"topology": { "kind": "direct" }` |
| `topology.profile` | String. Allowed values are `core-ocpi`, `gireve-2.2.1` or `plugsurfing-roam-2.2.1`. The profile sets which partner rules apply. `core-ocpi` names no partner profile: OCPI rules and the business terms in your file still grade, and partner-profile rules report not tested. Keep it unless your journey's row [below](#journeys-with-a-required-hub-profile) names another. `gireve-2.2.1` and `plugsurfing-roam-2.2.1` add the published rules of the Gireve and Plugsurfing Roam hubs. Named profiles require OCPI 2.2.1. | `"core-ocpi"` | `"topology": { "profile": "core-ocpi" }` |

### Journeys with a required hub profile

Use the combination from your journey's row. Set `topology.kind` explicitly because
it defaults to `"direct"`.

| `journey` | `journeyPack` | `topology.profile` | `roleUnderTest` | `topology.kind` | `ocpiVersion` |
| - | - | - | - | - | - |
| `partner-delivery-recovery` | `hub` | `gireve-2.2.1` | `CPO` | `hub` | `2.2.1` |
| `gireve-emsp-dialect` | `hub` | `gireve-2.2.1` | `EMSP` | `hub` | `2.2.1` |
| `roam-cdr-delivery` | `hub` | `plugsurfing-roam-2.2.1` | `EMSP` | `hub` | `2.2.1` |
| `roam-location-sync` | `hub` | `plugsurfing-roam-2.2.1` | `EMSP` | `hub` | `2.2.1` |

Select a hub registration that advertises the interfaces for the role under test.

### Hub-routed charge

The app offers `hub-routed-charge` as a hub journey for eMSPs on OCPI 2.2.1.
With `topology.kind: "hub"`, use a named profile and a hub registration.
A file with `topology.kind: "direct"` can compile with `core-ocpi` or either named
profile. Configure requires a registered endpoint before Preview. API Preview reports
whether registration and the advertised interfaces allow the plan to run.

### Roaming hub targets

These settings apply to the [built-in roaming hub journeys](https://docs.chargerdojo.com/guide/test-a-roaming-hub.md).

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `pairedTargetId` | String, 1 to 64 characters in the schema. Required for the paired hub journeys and absent elsewhere. Use the distinct eMSP registration ID. | None | `"pairedTargetId": "000000000000000000000002"` |
| `groupTargetIds` | Optional array of 1 to 4 distinct additional eMSP registration IDs, each 24 hexadecimal characters. Only for a paired hub journey. | None | `"groupTargetIds": ["000000000000000000000003"]` |
| `routingModesConfirmed` | Boolean. Allowed value is `true`. Required for `roaming-hub-routing-modes` to confirm the hub is a test environment. Omit it elsewhere. | None | `"routingModesConfirmed": true` |

## Time

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `clock` | Required object with `mode` and `durationSeconds`. It also accepts `accelerationFactor`. | None | `"clock": { "mode": "real", "durationSeconds": 300 }` |
| `clock.durationSeconds` | Required integer, 60 to 172,800. This is the planned duration. A custom action scheduled later extends the plan. | None | `"clock": { "mode": "real", "durationSeconds": 300 }` |
| `clock.accelerationFactor` | Optional integer, 1 to 3,600. Only affects the accelerated clock. | The run uses `20` when accelerated | `"clock": { "mode": "accelerated", "durationSeconds": 300, "accelerationFactor": 10 }` |

## Session updates

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `session.cadenceSeconds` | Required integer, 1 to 86,400. Seconds between generated updates. | None | `"cadenceSeconds": 60` |
| `session.jitterSeconds` | Integer, 0 to 3,600, smaller than `cadenceSeconds`. Varies the interval between updates. | `0` | `"jitterSeconds": 5` |
| `session.strategy` | Required string. Allowed values are `put-only` and `put-and-patch`. The first sends full PUT updates. The second starts with PUT and follows with PATCH updates. | None | `"strategy": "put-and-patch"` |
| `session.updates` | Required array of 1 to 4 strings. Allowed values are `kwh`, `total_cost`, `status` and `charging_periods`. Choose the fields to include in generated PATCHes. | None | `"updates": ["kwh", "status"]` |
| `session.parallelSessions` | Optional object for `first-successful-charge`. Supply `count`. The other fields have defaults. | None | `"parallelSessions": { "count": 3 }` |
| `session.parallelSessions.count` | Required integer, 2 to 6. Supply it when `parallelSessions` is present. | None | `"count": 3` |
| `session.parallelSessions.mix` | String. Allowed values are `uniform` or `mixed-ac-dc`. | `"uniform"` | `"mix": "mixed-ac-dc"` |
| `session.parallelSessions.spread` | String. Allowed values are `same-location` or `multi-location`. | `"same-location"` | `"spread": "multi-location"` |
| `session.parallelSessions.failureFraction` | Number, 0 to 0.5. A positive fraction must produce at least one failed Session after multiplying by `count` and rounding. | `0` | `"failureFraction": 0.5` |

## Catalogue, completion and faults

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `catalogue` | Object with toggles for built-in catalogue updates. | `{"locationUpdates":false,"tariffUpdates":false}` | `"catalogue": { "locationUpdates": true }` |
| `catalogue.locationUpdates` | Boolean. Enable generated Location updates for journeys that use them. | `false` | `"locationUpdates": true` |
| `catalogue.tariffUpdates` | Boolean. Enable generated Tariff updates for journeys that use them. | `false` | `"tariffUpdates": true` |
| `completion` | Required object. It may be empty to use the default CDR delay. | None | `"completion": {}` |
| `completion.cdrDelaySeconds` | Integer, 0 to 172,800. Delay from the end of the Session to the CDR in a built-in journey that sends one. Custom files schedule `cdr_post` directly. | `0` | `"completion": { "cdrDelaySeconds": 30 }` |
| `disturbances` | Array of up to 12 strings. Allowed values are `skip_intermediate_update`, `duplicate_full_put`, `zero_energy_pause`, `non_monotonic_meter`, `cdr_before_terminal_session`, `delay_cdr`, `early_cdr`, `duplicate_cdr`, `credit_cdr`, `corrected_cdr`, `tariff_boundary`, `parking_period`, `callback_timeout`, `callback_duplicate`, `callback_out_of_order`, `transport_outage`, `patch_before_put`, `session_never_closes`, `reboot_energy_gap`, `session_invalid_close`, `offline_replay_burst`, `pending_start`. See [which journeys support each fault](https://docs.chargerdojo.com/guide/author-a-scenario.md#disturbances). Omit for custom journeys. | `[]` in the schema. Each built-in journey decides what an empty list runs. | `"disturbances": ["callback_timeout"]` |

## Partner contract

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `contract` | Object of settings specific to your partner. Use the fields below. | `{}` | `"contract": { "repeatedStop": "refused" }` |
| `contract.callbackWithinSeconds` | Optional integer, 1 to 3,600. Fallback command-result wait when the response supplies no usable timeout. A custom command can provide its own [wait value](https://docs.chargerdojo.com/guide/author-a-scenario.md#command-values-and-checks). | The run uses `30` seconds when no fallback is set | `"callbackWithinSeconds": 60` |
| `contract.repeatedStop` | Optional string. Allowed values are `accepted` or `refused`. Sets the expected result of STOP for a Session an earlier STOP stopped. | Without it C10 is not tested | `"repeatedStop": "refused"` |
| `contract.replayWithinSeconds` | Optional integer, 1 to 3,600. Agreed replay deadline for the delivery-recovery journey. Also sets how long the run watches. | The run watches for `900` seconds. A contract deadline requires an explicit value. | `"replayWithinSeconds": 120` |
| `contract.minRetryDelaySeconds` | Optional integer, 1 to 3,600. Agreed minimum wait after a 425 or 429 in the delivery-recovery journey. | None | `"minRetryDelaySeconds": 60` |
| `contract.catalogueFreshWithinSeconds` | Optional integer, 1 to 2,592,000. Maximum age of Locations and Tariffs for the G12 freshness check. | None | `"catalogueFreshWithinSeconds": 3600` |
| `contract.cdrWithinSeconds` | Optional integer, 0 to 172,800. Accepted in older files for compatibility. It has no effect on the plan or verdicts. | None | `"cdrWithinSeconds": 300` |

## Actions

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `actions` | Array of 1 to 200 action objects. Required for `custom`. Omit it for a built-in journey. | None | `"actions": [{ "action": "session_put", "atSeconds": 0, "scenarioIds": ["S01"] }]` |
| `actions[].action` | Required string. Allowed values are `prepare_token`, `token_put`, `token_get`, `token_authorize`, `versions_get`, `version_details_get`, `credentials_get`, `location_get`, `location_put`, `location_patch`, `location_serve`, `tariff_get`, `tariff_put`, `tariff_delete`, `command_post`, `await_callback`, `session_get`, `session_put`, `session_patch`, `wait`, `session_complete`, `cdr_post`, `cdr_get`, `cdr_delete`, `booking_get`, `booking_put`, `booking_patch`, `booking_post`, `payment_get`, `payment_post`, `payment_put`, `payment_patch`, `expect_inbound`, `await_inbound`, `sandbox_ptp_step`, `charging_profile_get`, `charging_profile_put`, `charging_profile_delete`, `hub_client_info_get`, `hub_client_info_put`, `hub_client_info_delete`, `hub_push_receipts`, `transport_cut`, `transport_restore`, `transport_latency`. Check [which actions run on your endpoint](https://docs.chargerdojo.com/guide/author-a-scenario.md#the-actions-you-can-write). | None | `"action": "session_put"` |
| `actions[].atSeconds` | Required integer, 0 to 172,800. Seconds from the start of the journey. | None | `"atSeconds": 10` |
| `actions[].scenarioIds` | Required array of 1 to 12 strings. The checks that grade this action. Each ID is one uppercase letter for the check's group followed by two digits, such as `C01` for the first Remote commands check. See [what check IDs mean](https://docs.chargerdojo.com/guide/author-a-scenario.md#what-do-check-ids-like-c01-mean) and [checks that match the action](https://docs.chargerdojo.com/guide/author-a-scenario.md#which-checks-can-an-action-carry). | None | `"scenarioIds": ["S01"]` |
| `actions[].values` | Optional object. Supply up to 40 scalar values. Names may have up to 64 characters. Values may be strings, numbers, booleans or `null`. The [action table](https://docs.chargerdojo.com/guide/author-a-scenario.md#which-action-do-i-need) lists the keys each action uses. [Command values](https://docs.chargerdojo.com/guide/author-a-scenario.md#command-values-and-checks) and the [value rules table](https://docs.chargerdojo.com/guide/author-a-scenario.md#which-keys-does-the-runner-check) describe required keys and their accepted values. [What can a value be?](https://docs.chargerdojo.com/guide/author-a-scenario.md#what-can-a-value-be) lists reserved names. | Depends on the action and key. | `"values": { "kwh": 1 }` |

## Direct Payment

These fields apply only to the [built-in Direct Payment journey](https://docs.chargerdojo.com/guide/test-a-payment-terminal.md).
Set `roleUnderTest` to `"PTP"` and select a PTP endpoint.

| Field | Type and allowed values | Default | Example |
| - | - | - | - |
| `payment` | Optional object. Use the fields below. | Absent. The journey uses its built-in payment settings. | `"payment": { "invoiceCreator": "CPO" }` |
| `payment.invoiceCreator` | String. Allowed values are `CPO` or `PTP`. | `"CPO"` | `"invoiceCreator": "PTP"` |
| `payment.stopPath` | String. Allowed values are `cpo`, `ptp` or `preauthorization_limit`. | `"cpo"` | `"stopPath": "ptp"` |
| `payment.terminalId` | Optional string, 1 to 36 characters. Supply the terminal's ID when the run needs to address a specific terminal. | A generated ID for this run | `"terminalId": "test-terminal"` |
| `payment.captureOutcome` | Optional string. Allowed values are `SUCCESS`, `PARTIAL_SUCCESS` or `FAILED`. | The run uses `"SUCCESS"` in the payment flow | `"captureOutcome": "PARTIAL_SUCCESS"` |
| `payment.waitSeconds` | Optional integer, 1 to 300. Maximum wait for each terminal request. | The run uses `300` seconds | `"waitSeconds": 90` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.