Importez les clés d'identité des demandes CEE existantes par lot
L'API peut être utilisée jusqu'à 20.000x par minute.
Body object Required
Précédente demande de CEE.
S'il s'agit d'une opération spécifique, le payload est le même que sur
l'import, en ajoutant le champs "cee_application_type": "specific"
.
S'il s'agit d'une opération standarisée, il convient d'envoyer l'UUID de la demande tel que :
{
"cee_application_type": "standardized",
"cee_application_uuid": "{{uuid de la demande}}",
"identity_key": "{{identity_key}}"
}
POST
/policies/cee/import/identity
curl \
-X POST https://api.covoiturage.beta.gouv.fr/v3.1/policies/cee/import/identity \
-H "Content-Type: application/json" \
-d '[{"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": [
{
"error": "string",
"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 (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"
}