Skip to main content
GET
curl
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.

Read the status and the amounts

  • 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

Authorizations

x-api-key
string
header
required

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.

Path Parameters

top_up_id
string<uuid>
required

The invoice's id, from POST /v3/billing/top-up-invoices/.

Response

The invoice in its current state.

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.

id
string<uuid>
required

The invoice's identifier: read it again with GET /v3/billing/top-up-invoices/{top_up_id}/.

lane
enum<string>
required

Always bank_transfer.

Available options:
bank_transfer
status
enum<string>
required

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.

Available options:
open,
part_paid,
paid,
expired,
cancelled,
failed
credit_amount
string
required

What is added to the balance when total is paid in full, in USD, before tax.

Example:

"5000.00"

total
string
required

What the invoice asks for, in USD, tax included. It can be higher than credit_amount.

Example:

"5000.00"

tax
string
required

Tax on the invoice, in USD. 0.00 when none applies.

Example:

"5000.00"

currency
enum<string>
required

Always usd.

Available options:
usd
amount_received
string
required

What has arrived so far, in USD.

Example:

"5000.00"

amount_credited
string
required

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
string
required

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"

created_at
string<date-time>
required

When it was issued.

presented
object | null

Always null for a top-up invoice.

method
object | null

How it is paid, as billing history names it.

invoice_number
string | null

The invoice number. Put it in the transfer as the reference: a transfer without it cannot be matched to the invoice.

hosted_invoice_url
string<uri> | null

The invoice's page, with the bank details.

invoice_pdf
string<uri> | null

The invoice as a PDF.

po_number
string | null

The purchase order number printed on the invoice, when one was sent.

due_at
string<date-time> | null

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
string<date-time> | null

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
string<date-time> | null

When the invoice failed, expired or was cancelled. Null for an open, part-paid or paid invoice.

failure_reason
string | null

Why it failed or expired, when it did.

bank_details
object | null

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.

Last modified on December 1, 2026