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"
}
}충전 청구서 조회 API: 은행 송금 추적
Didit 충전 청구서를 조회해 상태, 입금된 금액, 잔액에 추가된 금액, 아직 은행 송금으로 보내야 할 금액을 확인하세요.
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"
}
}상태와 금액 확인하기
status | 의미 |
|---|---|
open | 이체를 기다리는 중입니다. |
part_paid | total의 일부가 입금되었고, 그 비율만큼의 크레딧이 추가되었습니다. due_at 전에 같은 참조 번호와 함께 amount_open을 보내십시오. |
paid | total 전액이 입금되었고 credit_amount가 추가되었습니다. |
expired | total 전액이 입금되기 전에 due_at이 지났습니다. 이미 입금된 금액은 그대로 추가된 상태로 남고, 참조 번호와 함께 나중에 도착한 이체는 그 이체 금액만큼 추가됩니다. |
cancelled | 입금이 도착하기 전에 사람이 콘솔에서 취소한 경우입니다. |
failed | 청구서를 발행할 수 없었습니다. 지불할 금액은 없습니다. |
amount_received는 입금된 금액,amount_credited는 잔액에 추가된 금액,amount_open은 아직 보내야 하는 금액입니다.bank_details는 청구서가 이체를 받을 수 있는 상태(open또는part_paid)일 때만 포함됩니다. 이 경우에만, 그리고amount_open이 0보다 큰 동안에만 입금 안내를 제공하십시오.status가paid,expired,cancelled또는failed이면 더 이상 따르지 마십시오.due_at은 청구서에 명시된 날짜입니다. 반환된 값을 그대로 사용하십시오. 새 청구서는 발행일로부터 45일 후에 지불 기한이 됩니다. 이전 조건으로 발행된 청구서는 자체 기한을 유지합니다.- 정산은
status와 금액을 기준으로 하십시오.confirmed_at은 부분 입금을 포함하여 가장 최근에 확인된 이체 시각이며, 전액이 결제된 청구서의closed_at은 null입니다.
오류
| HTTP | code | 설명 |
|---|---|---|
| 404 | top_up_not_found | 귀하의 조직에 이 ID를 가진 충전 청구서가 없습니다. |
| 404 | billing_not_available | 귀하의 조직에서는 아직 결제 기능을 사용할 수 없습니다. |
인증
귀사 애플리케이션의 API 키입니다. Business Console의 Developers -> API keys에서 확인할 수 있습니다. 기본 키는 모든 권한을 가집니다. 명명된 키는 범위를 지정할 수 있습니다. 리소스별로 권한 없음, 읽기 또는 쓰기를 설정할 수 있고, 일부 워크플로나 승인된 세션으로 제한할 수 있으며, 허용된 IP 목록으로 제한할 수 있고, 만료일을 설정할 수 있습니다. 401은 키가 잘못되었거나, 취소되었거나, 만료되었음을 의미합니다. 403은 키가 전송되지 않았거나, 키에 해당 리소스 또는 작업에 대한 권한이 없거나, 요청이 IP 목록 밖의 주소에서 왔음을 의미합니다. 세션 경로에서 발생한 404는 세션이 키의 워크플로 또는 상태 범위를 벗어났음을 의미합니다. 미디어 접근 권한이 없는 키는 이미지, 동영상 및 PDF URL을 null로 받으며, 세션 쓰기 권한이 없는 키는 세션 링크와 토큰을 null로 받습니다. 자세한 내용은 https://docs.didit.me/console/api-keys 를 참조합니다.
응답
현재 상태의 청구서입니다.
은행 이체로 결제하는 충전 청구서입니다. 콘솔의 충전 대화상자에서 발행되는 것과 같은 청구서입니다. 현재 상태는 status와 금액으로 확인하십시오. 타임스탬프는 이벤트 기록만 남깁니다.
open: 송금을 기다리는 중입니다. part_paid: total의 일부가 입금되었으며 해당 금액에 대한 크레딧이 추가되었습니다. 같은 참조 번호와 함께 due_at 이전에 amount_open을 보내야 합니다. paid: total이 입금되었으며 credit_amount가 추가되었습니다. expired: total 전액이 입금되기 전에 due_at이 지났습니다. 이미 입금된 금액은 그대로 추가된 상태로 유지되며, 참조 번호가 포함된 송금이 여전히 도착하면 그 송금액만큼 추가됩니다. cancelled: 입금이 도착하기 전에 사용자가 콘솔에서 취소했습니다(입금이 도착한 후에는 청구서를 더 이상 취소할 수 없습니다). failed: 청구서를 발행할 수 없었으며 아무것도 발행되지 않았습니다.
open, part_paid, paid, expired, cancelled, failed