idempotency_key_reused
Idempotency-Key reused
HTTP 422
This key was already used for a different request: for an enrollment, another VIN or the other mode; for a referral, a body that differs from the first. Send a new key with a new request.
At launchFor a referral, sent from launch, to a v2 key or a signed credential: once intake checks enforce, or at once for one that can't read referrals. Until then a referral's reused key answers the first referral as a replay.
The problem body
Sent as application/problem+json, with the request id in request_id and the X-Request-Id header. Branch on code: the error and detail sentences can change, and some operations add members of their own.
{
"error": "Idempotency-Key reused",
"code": "idempotency_key_reused",
"type": "https://secondappraisal.com/developers/errors/idempotency_key_reused",
"title": "Idempotency-Key reused",
"status": 422,
"detail": "Idempotency-Key reused",
"instance": "/api/gap/v1/referrals",
"request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}Operations that can send it
- POST /api/gap/v1/referrals · HTTP 422 · Create a referral
- POST /api/gap/v1/plans/enrollments · HTTP 422 · Enroll one vehicle
- PATCH /api/gap/v1/plans/enrollments/{id} · HTTP 422 · Cancel, swap the VIN, or edit contact details