> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Top-Up Invoice API: Track a Bank Transfer

> Read a Didit top-up invoice: its status, what arrived, what was added to your balance and what is still to send by bank transfer.

Didit's get top-up invoice API returns one of your top-up invoices in its current state, so your finance automation knows whether it is paid, what is still to send and what was added to your balance.
Create the invoice with [Create top-up invoice](https://docs.didit.me/management-api/billing/create-top-up-invoice.md).

Get Top-Up Invoice Prompt
        Copy prompt to clipboard



      
      

\<pre>

\`Goal: Read a Didit top-up invoice to know whether it is paid, what is still to send and what was added to the balance.

Endpoint: GET https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/
Auth header: x-api-key: <DIDIT_API_KEY>
top_up_id: the id returned by POST /v3/billing/top-up-invoices/.

curl:
curl 'https://verification.didit.me/v3/billing/top-up-invoices/9a4f2c1e-7b3d-4e8a-a1c5-6f0d2b9e8c47/' \
-H 'x-api-key: YOUR_API_KEY'

Response 200: the same invoice body as the create call, in its current state.
Settle on status and the amounts: open (waiting), part_paid (send amount_open with the same reference before due_at), paid (credit_amount was added), expired (due_at passed; what arrived stays added), cancelled (cancelled in the console before anything arrived), failed (never issued, nothing owed).
confirmed_at is the latest confirmed transfer, a part payment included; closed_at is null for a paid invoice. Never use them to decide settlement. Give payment instructions only while status is open or part_paid and amount_open is above 0, and stop polling once status is paid, expired, cancelled or failed. Use due_at as returned: new invoices are due 45 days after issue, older ones keep their own date.
404 top_up_not_found for an id that is not one of the organization's top-up invoices; 404 billing_not_available when billing is not available yet.`

\</pre>



      
      

Paste into

## Read the status and the amounts| `status` | Meaning |
| - | - |
| `open` | Waiting for the transfer. |
| `part_paid` | Part of `total` arrived and its share of the credit was added. Send `amount_open` with the same reference before `due_at`. |
| `paid` | All of `total` arrived and `credit_amount` was added. |
| `expired` | `due_at` passed before all of `total` arrived. What arrived stays added, and a transfer that still arrives with the reference is added for what it pays. |
| `cancelled` | A person cancelled it in the console before anything arrived. |
| `failed` | The invoice could not be issued. Nothing is owed. |- `amount_received` is what arrived, `amount_credited` what was added to your balance and `amount_open` what is still to send.
- `bank_details` is present while the invoice can take a transfer (`open` or `part_paid`). Give payment instructions only then, and only while `amount_open` is above zero.
- Stop following it once `status` is `paid`, `expired`, `cancelled` or `failed`.
- `due_at` is the date stated on the invoice: use it as returned. New invoices are due 45 days after they are issued; an invoice issued under earlier terms keeps its own date.
- Settle on `status` and the amounts. `confirmed_at` is the latest confirmed transfer, a part payment included, and `closed_at` is null for a paid invoice.## Errors| HTTP | `code` | Meaning |
| - | - | - |
| 404 | `top_up_not_found` | No top-up invoice of your organization has this id. |
| 404 | `billing_not_available` | Billing is not available for your organization yet. |


## OpenAPI

````yaml openapi-25.json GET /v3/billing/top-up-invoices/{top_up_id}/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: Identity verification API. Authenticate with x-api-key header.
servers:
  - url: https://verification.didit.me
security: []
tags:
  - name: Bank Data
    description: >-
      Bank Link, connections, accounts, balances, transactions, institutions and
      coverage. One-time reads of real banks are open to live applications.
      Ongoing access with real banks is not open yet for live applications: it
      is available for sandbox applications with the Didit Test Bank, and opens
      country by country. Nothing is charged in sandbox. A call made with an API
      key needs a key that can reach Bank data: a full-access key can, and a
      scoped key needs `bank-data` in its scopes (read for reads, write for
      operations that change something). A scoped key without it is refused, and
      the call answers `403 bank_data_access_denied`. The account check is the
      exception: it needs write access to sessions, or full access, and not the
      Bank data scope. Raw bank data (accounts, balances, transactions and the
      change feed) also refuses a request that carries no API key.


      Every refusal under `/v3/bank/` except the account check's has the same
      JSON body (`code`, `message`, `request_id`, `field`, `next_action`,
      `retry_after`). A path that is not an operation, an id that is not a UUID
      or an unknown sub-resource answers `404 not_found` for every method, and
      any unexpected error answers `500 internal_error` with a `request_id`.
      Where Bank data is not available, every operation answers the platform's
      standard `404`, exactly as an unknown route does.
paths:
  /v3/billing/top-up-invoices/{top_up_id}/:
    get:
      tags:
        - Billing
      summary: Get a top-up invoice
      description: >-
        Read one of the organization's top-up invoices: its `status`, what
        arrived (`amount_received`), what was added to the balance
        (`amount_credited`), what is still to send (`amount_open`) and, while it
        can take a transfer, the `bank_details`. Settle on `status` and the
        amounts, not on the timestamps, and stop following it once `status` is
        `paid`, `expired`, `cancelled` or `failed`.
      operationId: billing_top_up_invoices_retrieve
      parameters:
        - name: top_up_id
          in: path
          required: true
          description: The invoice's `id`, from `POST /v3/billing/top-up-invoices/`.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The invoice in its current state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingTopUpInvoice'
              examples:
                Open:
                  value:
                    id: 9a4f2c1e-7b3d-4e8a-a1c5-6f0d2b9e8c47
                    lane: bank_transfer
                    status: open
                    credit_amount: '5000.00'
                    total: '5000.00'
                    tax: '0.00'
                    currency: usd
                    amount_received: '0.00'
                    amount_credited: '0.00'
                    amount_open: '5000.00'
                    presented: null
                    method:
                      type: customer_balance
                      name: Bank transfer
                    invoice_number: 7F3A2C1B-0012
                    hosted_invoice_url: https://invoice.example.com/i/7F3A2C1B-0012
                    invoice_pdf: https://invoice.example.com/i/7F3A2C1B-0012/pdf
                    po_number: PO-88213
                    due_at: '2027-01-14T10:00:00Z'
                    confirmed_at: null
                    closed_at: null
                    failure_reason: null
                    created_at: '2026-11-30T10:00:00Z'
                    bank_details:
                      currency: USD
                      amount_due: '5000.00'
                      account_holder_name: Didit
                      bank_name: Example Bank, N.A.
                      account_number: '000123456789'
                      routing_number: '000000000'
                      swift_code: EXAMUS33XXX
                      reference: 7F3A2C1B-0012
                Part paid:
                  value:
                    id: 9a4f2c1e-7b3d-4e8a-a1c5-6f0d2b9e8c47
                    lane: bank_transfer
                    status: part_paid
                    credit_amount: '1000.00'
                    total: '1100.00'
                    tax: '100.00'
                    currency: usd
                    amount_received: '550.00'
                    amount_credited: '500.00'
                    amount_open: '550.00'
                    presented: null
                    method:
                      type: customer_balance
                      name: Bank transfer
                    invoice_number: 7F3A2C1B-0012
                    hosted_invoice_url: https://invoice.example.com/i/7F3A2C1B-0012
                    invoice_pdf: https://invoice.example.com/i/7F3A2C1B-0012/pdf
                    po_number: null
                    due_at: '2027-01-14T10:00:00Z'
                    confirmed_at: '2026-12-04T09:12:00Z'
                    closed_at: null
                    failure_reason: null
                    created_at: '2026-11-30T10:00:00Z'
                    bank_details:
                      currency: USD
                      amount_due: '550.00'
                      account_holder_name: Didit
                      bank_name: Example Bank, N.A.
                      account_number: '000123456789'
                      routing_number: '000000000'
                      swift_code: EXAMUS33XXX
                      reference: 7F3A2C1B-0012
        '401':
          description: >-
            The API key or the application's access token has expired or was
            revoked: replace the credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopUpInvoiceDetailError'
              examples:
                Expired key:
                  value:
                    detail: This API key has expired.
        '403':
          description: >-
            No credential was sent, or the credential cannot use top-up invoices
            for this organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopUpInvoiceDetailError'
              examples:
                No credential:
                  value:
                    detail: Authentication credentials were not provided.
        '404':
          description: >-
            `top_up_not_found`: no top-up invoice of this organization has this
            id. `billing_not_available`: billing is not available for this
            organization yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopUpInvoiceError'
              examples:
                Not found:
                  value:
                    code: top_up_not_found
                    detail: Top-up not found.
        '429':
          description: >-
            Rate limit exceeded; back off and retry after the interval indicated
            in `Retry-After`.
          content:
            application/json:
              examples:
                Throttled:
                  value:
                    detail: >-
                      GET request rate limit exceeded. You can make up to 600
                      requests per minute.
                    reference: RL-00000000000040008000000000000001
                    limit: 600
                    remaining: 0
                    reset: 1794358860
                    window_seconds: 60
              schema:
                $ref: '#/components/schemas/RateLimitBudgetError'
          headers:
            Retry-After:
              $ref: '#/components/headers/BudgetRetryAfter'
            X-RateLimit-Scope:
              $ref: '#/components/headers/BudgetXRateLimitScope'
            X-RateLimit-Limit:
              $ref: '#/components/headers/BudgetXRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/BudgetXRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/BudgetXRateLimitReset'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl
            'https://verification.didit.me/v3/billing/top-up-invoices/9a4f2c1e-7b3d-4e8a-a1c5-6f0d2b9e8c47/'
            \
              -H 'x-api-key: YOUR_API_KEY'
components:
  schemas:
    BillingTopUpInvoice:
      type: object
      description: >-
        A top-up invoice paid by bank transfer: the same invoice the console's
        Top up dialog issues. Read `status` and the amounts to know where it
        stands; the timestamps only record events.
      required:
        - id
        - lane
        - status
        - credit_amount
        - total
        - tax
        - currency
        - amount_received
        - amount_credited
        - amount_open
        - created_at
      properties:
        id:
          type: string
          format: uuid
          description: >-
            The invoice's identifier: read it again with `GET
            /v3/billing/top-up-invoices/{top_up_id}/`.
        lane:
          type: string
          enum:
            - bank_transfer
          description: Always `bank_transfer`.
        status:
          type: string
          enum:
            - open
            - part_paid
            - paid
            - expired
            - cancelled
            - failed
          description: >-
            `open`: waiting for the transfer. `part_paid`: part of `total`
            arrived and its share of the credit was added; send `amount_open`
            with the same reference before `due_at`. `paid`: `total` arrived and
            `credit_amount` was added. `expired`: `due_at` passed before all of
            `total` arrived; what arrived stays added, and a transfer that still
            arrives with the reference is added for what it pays. `cancelled`: a
            person cancelled it in the console before anything arrived (an
            invoice can no longer be cancelled once money arrived). `failed`:
            the invoice could not be issued; nothing was issued.
        credit_amount:
          type: string
          description: >-
            What is added to the balance when `total` is paid in full, in USD,
            before tax.
          example: '5000.00'
        total:
          type: string
          description: >-
            What the invoice asks for, in USD, tax included. It can be higher
            than `credit_amount`.
          example: '5000.00'
        tax:
          type: string
          description: Tax on the invoice, in USD. `0.00` when none applies.
          example: '5000.00'
        currency:
          type: string
          enum:
            - usd
          description: Always `usd`.
        amount_received:
          type: string
          description: What has arrived so far, in USD.
          example: '5000.00'
        amount_credited:
          type: string
          description: >-
            What has been added to the balance so far, in USD. A part payment
            adds credit in proportion to the share of `total` it pays: 550.00 of
            a 1,100.00 invoice for 1,000.00 of credit adds 500.00.
          example: '5000.00'
        amount_open:
          type: string
          description: >-
            What is still to send, in USD, while `status` is `open` or
            `part_paid`: transfer exactly this, with `invoice_number` as the
            reference. Ignore it once the invoice is closed.
          example: '5000.00'
        presented:
          type: object
          nullable: true
          description: Always null for a top-up invoice.
          properties:
            amount:
              type: string
            currency:
              type: string
        method:
          type: object
          nullable: true
          description: How it is paid, as billing history names it.
          properties:
            type:
              type: string
              example: customer_balance
            name:
              type: string
              example: Bank transfer
        invoice_number:
          type: string
          nullable: true
          description: >-
            The invoice number. Put it in the transfer as the reference: a
            transfer without it cannot be matched to the invoice.
        hosted_invoice_url:
          type: string
          format: uri
          nullable: true
          description: The invoice's page, with the bank details.
        invoice_pdf:
          type: string
          format: uri
          nullable: true
          description: The invoice as a PDF.
        po_number:
          type: string
          nullable: true
          description: The purchase order number printed on the invoice, when one was sent.
        due_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            The due date stated on the invoice: use this value, never a formula.
            New invoices are due 45 days after they are issued; an invoice
            issued under earlier terms keeps the date it was issued with. If
            `total` has not all arrived by then, the status becomes `expired`; a
            paid invoice stays `paid`.
        confirmed_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            When the latest transfer was confirmed, a part payment included. It
            does not mean the invoice is settled: read `status` and
            `amount_open`.
        closed_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            When the invoice failed, expired or was cancelled. Null for an open,
            part-paid or paid invoice.
        failure_reason:
          type: string
          nullable: true
          description: Why it failed or expired, when it did.
        created_at:
          type: string
          format: date-time
          description: When it was issued.
        bank_details:
          type: object
          nullable: true
          description: >-
            Where to send the money, while the invoice can take a transfer
            (`open` or `part_paid`). Null once it is closed, and also when the
            bank details cannot be read right now: then use
            `hosted_invoice_url`, which shows them too. Not part of
            `open_invoice` in an error.
          required:
            - currency
            - amount_due
            - account_holder_name
            - bank_name
            - account_number
            - routing_number
            - swift_code
            - reference
          properties:
            currency:
              type: string
              description: Always `USD`.
            amount_due:
              type: string
              description: 'What to send, in USD: the same as `amount_open`.'
            account_holder_name:
              type: string
              description: The account the money goes to.
            bank_name:
              type: string
              description: The receiving bank.
            account_number:
              type: string
              description: The receiving account number.
            routing_number:
              type: string
              description: For ACH and US wires.
            swift_code:
              type: string
              description: For international wires.
            reference:
              type: string
              description: The invoice number. It must be in the transfer.
    TopUpInvoiceDetailError:
      type: object
      description: >-
        A refusal with only a `detail`: an expired or revoked credential (401),
        a missing key or a permission the credential lacks (403), or a body that
        is not valid JSON (400).
      required:
        - detail
      additionalProperties: false
      properties:
        detail:
          type: string
          description: Human-readable explanation.
    TopUpInvoiceError:
      type: object
      description: Error body of a top-up invoice request.
      required:
        - code
        - detail
      properties:
        code:
          type: string
          enum:
            - idempotency_key_required
            - billing_details_required
            - top_up_invoice_open
            - idempotency_key_conflict
            - top_up_not_allowed
            - top_up_not_completed
            - billing_customer_missing
            - billing_not_available
            - top_up_not_found
            - payment_provider_error
          description: Stable error code.
        detail:
          type: string
          description: Human-readable explanation.
        missing:
          type: array
          items:
            type: string
          description: >-
            On `billing_details_required`: the billing details still to save,
            such as `legal_name` or `address.line1`.
        open_invoice:
          description: >-
            On `top_up_invoice_open`: the invoice that is open or part paid,
            without `bank_details` (read it to get them). Null when it closed
            before the answer was written: create the invoice again.
          oneOf:
            - $ref: '#/components/schemas/BillingTopUpInvoice'
            - $ref: '#/components/schemas/TopUpInvoiceNoOpenInvoice'
    RateLimitBudgetError:
      type: object
      description: >-
        Returned only for a rate-limit middleware budget refusal. Other 429
        errors, including idempotency conflicts and endpoint-specific caps, do
        not promise these metadata fields.
      required:
        - detail
        - reference
        - limit
        - remaining
        - reset
        - window_seconds
      properties:
        detail:
          type: string
          description: Existing human-readable budget refusal message.
        reference:
          type: string
          pattern: ^RL-[0-9a-f]{32}$
          description: >-
            Opaque support reference: RL- followed by 32 lowercase UUID
            hexadecimal characters.
        limit:
          type: integer
          description: Budget for the exceeded scope; equals X-RateLimit-Limit.
        remaining:
          type: integer
          minimum: 0
          description: Remaining budget, clamped to zero; equals X-RateLimit-Remaining.
        reset:
          type: integer
          format: int64
          description: Window reset time in Unix seconds; equals X-RateLimit-Reset.
        window_seconds:
          type: integer
          description: >-
            Fixed-window duration in seconds, not the remaining wait. Honor
            Retry-After before retrying.
      example:
        detail: >-
          Write request rate limit exceeded. You can make up to 300 requests per
          minute.
        reference: RL-00000000000040008000000000000001
        limit: 300
        remaining: 0
        reset: 1794358860
        window_seconds: 60
    TopUpInvoiceNoOpenInvoice:
      description: 'No invoice: the open one closed before the answer was written.'
      enum:
        - null
      nullable: true
  headers:
    BudgetRetryAfter:
      description: >-
        Seconds to wait, rounded up to the next window. Present on middleware
        budget refusals.
      schema:
        type: integer
    BudgetXRateLimitScope:
      description: >-
        The scope whose budget was exceeded. Present on middleware budget
        refusals.
      schema:
        type: string
    BudgetXRateLimitLimit:
      description: >-
        Budget for the exceeded scope; equals body limit. Present on middleware
        budget refusals.
      schema:
        type: integer
    BudgetXRateLimitRemaining:
      description: >-
        Remaining budget, clamped to zero; equals body remaining. Present on
        middleware budget refusals.
      schema:
        type: integer
    BudgetXRateLimitReset:
      description: >-
        Reset time in Unix seconds; equals body reset. Present on middleware
        budget refusals.
      schema:
        type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your application's API key, from Developers -> API keys in the Business
        Console. The primary key has full access. A named key can be scoped:
        none, read or write per resource, limited to some workflows or to
        approved sessions, to a list of IP addresses, and to an expiry date. 401
        means the key is wrong, revoked or expired; 403 means no key was sent,
        the key has no access to this resource or action, or the request came
        from an address outside its IP list; 404 on a session route means the
        session is outside the key's workflows or statuses. A key without media
        access receives image, video and PDF URLs as null, and a key without
        sessions write receives session links and tokens as null. See
        https://docs.didit.me/console/api-keys.
    BearerAuth:
      type: http
      scheme: bearer
      description: The application's client-credentials access token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.