Provision a token
Creates the token as PROVISIONED; with auto_activate it is pushed to roaming partners and stored ACTIVE. If the push to roaming partners fails the call answers 502 and the token is left as it was; retry with the same Idempotency-Key.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
Idempotency-Key
A unique key you choose for this call, e.g. a UUID. Retrying with the same key returns the first result instead of acting twice.
Request
This endpoint expects an object.
uid
type
Allowed values:
contract_id
issuer
visual_number
group_id
whitelist
Allowed values:
language
valid_from
valid_until
country_code
party_id
ocpi_version
Allowed values:
metadata
auto_activate
Response
The token; ACTIVE when auto_activate was set, else PROVISIONED.
id
organization_id
uid
type
contract_id
issuer
country_code
party_id
whitelist
ocpi_version
status
created_at
last_updated
visual_number
group_id
language
valid_from
valid_until
metadata
status_reason
invalidated_at
Errors
400
Bad Request Error
401
Unauthorized Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
502
Bad Gateway Error
504
Gateway Timeout Error