All error codes

document_not_final

HTTP 409 The document is not issued yet

What happened

The PDF of an unpaid top-up receipt was asked for. The receipt document is issued when the receipt is paid; until then there is no final document to give.

What to do

Pay the top-up in the client area, or read the receipt itself with GET /v1/billing/receipts/{id}. An unpaid receipt is not debt.

Retrying

Change the state this refers to, then repeat the same request with the same idempotency key.

How it arrives

{
    "type": "https://docs.fiberax.com/errors/document_not_final",
    "title": "The document is not issued yet",
    "status": 409,
    "code": "document_not_final",
    "request_id": "a277dcd1ca652c65"
}

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