Send a command
Starts, stops, unlocks or reserves. response is the immediate answer; the final result arrives on X-Command-Callback-Url and on GET /emsp/commands/{tracking_id}. X-Tracking-Id (or Idempotency-Key) makes the call safe to retry: the same id returns the first outcome without sending again.
emsp-gateway decides whether the charger is yours (sent over OCPP) or a roaming CPO’s (sent over OCPI in the partner’s version); route says which. Session and CDR updates for this authorization go to the session and CDR callback URLs.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Headers
Idempotency key and command id (≤36 printable ASCII). Generated when absent.
Same as X-Tracking-Id; send one of the two.
CPO country code, when location_id alone is ambiguous.
CPO party id, when location_id alone is ambiguous.
Your request id; echoed on every callback.
Your correlation id; echoed on every callback.
Request
START_SESSION and RESERVE_NOW: the driver’s token.
STOP_SESSION: the OCPI session id to stop.
RESERVE_NOW and CANCEL_RESERVATION: your reservation id.
RESERVE_NOW: when the reservation ends.
Response
The route and the immediate answer; status is PENDING until the final result.
The CPO’s / charger’s immediate OCPI CommandResponse.