Importez les clés d'identité des demandes CEE existantes par lot
L'API peut être utilisée jusqu'à 20.000x par minute.
POST
/policies/cee/import/identity
curl \
--request POST 'https://api.demo.covoiturage.beta.gouv.fr/v3.3/policies/cee/import/identity' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '[{"cee_application_type":"specific","cee_application_uuid":"string","identity_key":"string","journey_type":"short","phone_trunc":"+336010203","last_name_trunc":"string","datetime":"string"}]'
Request examples
[
{
"cee_application_type": "specific",
"cee_application_uuid": "string",
"identity_key": "string",
"journey_type": "short",
"phone_trunc": "+336010203",
"last_name_trunc": "string",
"datetime": "string"
}
]
Response examples (200)
{
"imported": 42.0,
"failed": 42.0,
"failed_details": [
{
"cee_application_type": "specific",
"cee_application_uuid": "string",
"identity_key": "string",
"journey_type": "short",
"phone_trunc": "+336010203",
"last_name_trunc": "string",
"datetime": "string",
"error": "string"
}
]
}
Response examples (400)
{
"id": 1,
"error": {
"code": -32602,
"data": "data/driver/identity/phone_trunc must match format \"phonetrunc\", data/driver/identity/phone_trunc must pass \"macro\" keyword validation",
"message": "Invalid params"
},
"jsonrpc": "2.0"
}
Response examples (401)
{
"id": 1,
"error": {
"code": -32501,
"data": "Unauthorized application",
"message": "Unauthorized Error"
},
"jsonrpc": "2.0"
}
Response examples (403)
{
"id": 1,
"error": {
"code": -32503,
"data": "Invalid permissions",
"message": "Forbidden Error"
},
"jsonrpc": "2.0"
}