All error codes

invalid_transfer_code

HTTP 422 The confirmation code is not valid

What happened

The code does not match the one e-mailed for this request. The detail says how many attempts are left for this code. Each code allows five attempts: this is what protects the transfer if the token leaks, since no account password is asked.

What to do

Check the code in the latest e-mail and send it again with a NEW idempotency key: this refusal is stored against the key, and the same key would replay it. When no attempts are left, request a new code with POST /v1/transfers/{id}/actions/resend.

Retrying

Fix the request and send it again.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/invalid_transfer_code",
    "title": "The confirmation code is not valid",
    "status": 422,
    "code": "invalid_transfer_code",
    "request_id": "a277dcd1ca652c65"
}

Branch your code on code, never on the wording of title.