curl 'https://verification.didit.me/v3/billing/top-up-invoices/9a4f2c1e-7b3d-4e8a-a1c5-6f0d2b9e8c47/' \
-H 'x-api-key: YOUR_API_KEY'import requests
url = "https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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"
}
}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.
curl 'https://verification.didit.me/v3/billing/top-up-invoices/9a4f2c1e-7b3d-4e8a-a1c5-6f0d2b9e8c47/' \
-H 'x-api-key: YOUR_API_KEY'import requests
url = "https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/billing/top-up-invoices/{top_up_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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"
}
}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_receivedis what arrived,amount_creditedwhat was added to your balance andamount_openwhat is still to send.bank_detailsis present while the invoice can take a transfer (openorpart_paid). Give payment instructions only then, and only whileamount_openis above zero.- Stop following it once
statusispaid,expired,cancelledorfailed. due_atis 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
statusand the amounts.confirmed_atis the latest confirmed transfer, a part payment included, andclosed_atis 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. |
Authorizations
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
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.
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.
open, part_paid, paid, expired, cancelled, failed 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.