Importez les clés d'identité des demandes CEE existantes par lot

POST /policies/cee/import/identity

L'API peut être utilisée jusqu'à 20.000x par minute.

application/json

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}}"
}
One of:

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • imported number Required

      Nombre de demandes importées avec succès

      Minimum value is 0, maximum value is 1000.

    • failed number Required

      Nombre de demandes non importées

      Minimum value is 0, maximum value is 1000.

    • failed_details array[object] Required

      At least 0 but not more than 1000 elements.

      One of:
  • 401 application/json

    Non authentifié. Le token applicatif est manquant ou invalide.

  • 403 application/json

    Non autorisé

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"
}