Source: https://cryptanio.com/ja/docs/reference/list-invoices/
Contract / release / updated: v1 / 1.0.0 62 / 2026-10-10

[API リファレンス](https://cryptanio.com/ja/docs.html#reference)

# 請求書一覧を取得

GET `/v1/invoices`

契約 v1 / 1.0.0 62 / 2026-10-10

[Markdown](https://cryptanio.com/ja/docs/reference/list-invoices/index.md) [OpenAPI](https://cryptanio.com/openapi.json)

寄付は含まず、請求書のみを新しい ID 順に返します。応答は next_before のない data を含むため、続けるには最後の項目の ID を before に指定します。空のページで終了してください。

キー権限：`invoices` / read / `payments`。

## パラメーター

| パラメーター | 入金 | 必須 | 説明 |
| --- | --- | --- | --- |
| `project` | query | いいえ | プロジェクト ID。監視対象の一覧取得または作成では、キーがプロジェクトに制限されていない限り必須です。その他の操作では、省略すると操作のアカウント／プロジェクトのコンテキストを使用します。明示的に指定してください。; `string` |
| `chain` | query | いいえ | ネットワークコードのフィルター。; `string` |
| `status` | query | いいえ | 請求書の状態。; `string` `pending`、`seen`、`paid`、`underpaid`、`partial`、`overpaid`、`expired`、`late`、`canceled` |
| `limit` | query | いいえ | ページサイズ：最大 200 件。無効な値では既定値を使用し、200 を超える値は上限に制限されます。; `integer` 既定値：`50`、minimum: `1`、maximum: `200` |
| `before` | query | いいえ | next_before または前ページの最後の項目の ID を使うカーソル。新しい順です。; `string` minLength: `1` |

## リクエスト例

サンプルはお客様のアカウントで実際の操作を行います。コードで指定された環境変数を設定してください。キーは秘密に保管します。書き込みリクエストは自動再試行されません。



### Shell / cURL

```bash
#!/usr/bin/env bash
set -euo pipefail
: "${CRYPTANIO_PROJECT_ID:?Set CRYPTANIO_PROJECT_ID}"
: "${CRYPTANIO_API_KEY:?Set CRYPTANIO_API_KEY}"
response_file="$(mktemp)"
trap 'rm -f "$response_file"' EXIT
transfer_status=0
http_status="$(curl \
  --silent --show-error --max-time 30 --request GET \
  --header "Authorization: Bearer $CRYPTANIO_API_KEY" \
  --header 'Accept: application/json' \
  --get \
  --data-urlencode "project=$CRYPTANIO_PROJECT_ID" \
  --data-urlencode 'limit=50' \
  "https://api.cryptanio.com/v1/invoices" \
  --output "$response_file" --write-out '%{http_code}')" || transfer_status=$?
if [[ "$http_status" == 2?? ]]; then
  cat "$response_file"
  exit "$transfer_status"
fi
printf 'HTTP %s\n' "$http_status" >&2
cat "$response_file" >&2
exit 1
```



[サンプルをダウンロード](https://cryptanio.com/files/examples/api/list-invoices.sh)



### Go

```go
// Go; standard library only. Run: go run request.go
package main

import (
    "fmt"
    "io"
    "net/http"
    "net/url"
    "os"
    "time"
)

func env(name string) string {
    value := os.Getenv(name)
    if value == "" { fmt.Fprintln(os.Stderr, "Set", name); os.Exit(1) }
    return value
}
func run() error {
    path := "/v1/invoices"

    endpoint, err := url.Parse("https://api.cryptanio.com" + path)
    if err != nil { return err }
    query := endpoint.Query()
    query.Set("project", env("CRYPTANIO_PROJECT_ID"))
    query.Set("limit", "50")
    endpoint.RawQuery = query.Encode()

    request, err := http.NewRequest("GET", endpoint.String(), nil)
    if err != nil { return err }
    request.Header.Set("Authorization", "Bearer " + env("CRYPTANIO_API_KEY"))
    request.Header.Set("Accept", "application/json")
    client := &http.Client{Timeout: 30 * time.Second, CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}
    response, err := client.Do(request)
    if err != nil { return err }
    defer response.Body.Close()
    if response.StatusCode < 200 || response.StatusCode >= 300 {
        body, err := io.ReadAll(response.Body)
        if err != nil { return err }
        return fmt.Errorf("HTTP %d: %s", response.StatusCode, body)
    }
    _, err = io.Copy(os.Stdout, response.Body)
    return err
}
func main() {
    if err := run(); err != nil { fmt.Fprintln(os.Stderr, err); os.Exit(1) }
}
```



[サンプルをダウンロード](https://cryptanio.com/files/examples/api/list-invoices.go)



### Rust

```rust
// Cargo.toml dependencies:
// reqwest = { version = "=0.12.24", features = ["blocking", "json"] }
// serde_json = "=1.0.145"
use std::{error::Error, io, time::Duration};
use reqwest::{blocking::Client, redirect::Policy, Method, Url};

fn env(name: &str) -> Result<String, Box<dyn Error>> {
    let value = std::env::var(name)?;
    if value.is_empty() { return Err(format!("Set {name}").into()); }
    Ok(value)
}
fn run() -> Result<(), Box<dyn Error>> {
    let mut url = Url::parse("https://api.cryptanio.com")?;
    {
        let mut segments = url.path_segments_mut().map_err(|_| "Invalid base URL")?;
        segments.clear();
        segments.push("v1");
        segments.push("invoices");
    }
    url.query_pairs_mut()
        .append_pair("project", &env("CRYPTANIO_PROJECT_ID")?)
        .append_pair("limit", &"50".to_owned());
    let client = Client::builder().timeout(Duration::from_secs(30)).redirect(Policy::none()).build()?;
    let request = client.request(Method::GET, url)
        .header("Authorization", format!("Bearer {}", env("CRYPTANIO_API_KEY")?))
        .header("Accept", "application/json".to_owned());
    let mut response = request.send()?;
    let status = response.status();
    if !status.is_success() { return Err(format!("HTTP {}: {}", status.as_u16(), response.text()?).into()); }
    io::copy(&mut response, &mut io::stdout())?;
    Ok(())
}
fn main() {
    if let Err(error) = run() { eprintln!("{error}"); std::process::exit(1); }
}
```



[サンプルをダウンロード](https://cryptanio.com/files/examples/api/list-invoices.rs)



### PHP

```php
<?php
// PHP 8 with the cURL extension. Run this on your server.
function env(string $name): string {
    $value = getenv($name);
    if ($value === false || $value === '') throw new RuntimeException('Set ' . $name);
    return $value;
}
try {
    $path = '/v1/invoices';

    $query = [
        'project' => env('CRYPTANIO_PROJECT_ID'),
        'limit' => '50',
    ];
    $url = 'https://api.cryptanio.com' . $path . ($query ? '?' . http_build_query($query, '', '&', PHP_QUERY_RFC3986) : '');
    $headers = [
        'Authorization: ' . 'Bearer ' . env('CRYPTANIO_API_KEY'),
        'Accept: ' . 'application/json',
    ];
    $curl = curl_init($url);
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_HTTPHEADER => $headers,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_FOLLOWLOCATION => false,
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_TIMEOUT => 30,
    ]);
    $response = curl_exec($curl);
    if ($response === false) throw new RuntimeException(curl_error($curl));
    $status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
    if ($status < 200 || $status >= 300) throw new RuntimeException('HTTP ' . $status . ': ' . $response);
    echo $response;
} catch (Throwable $error) {
    fwrite(STDERR, $error->getMessage() . PHP_EOL);
    exit(1);
}
```



[サンプルをダウンロード](https://cryptanio.com/files/examples/api/list-invoices.php)



### Python

```python
# Python 3; standard library only.
import json
import os
import sys
from urllib.error import HTTPError, URLError
from urllib.parse import quote, urlencode
from urllib.request import HTTPRedirectHandler, Request, build_opener

def env(name):
    result = os.environ.get(name)
    if not result:
        raise ValueError("Set " + name)
    return result

class NoRedirect(HTTPRedirectHandler):
    def redirect_request(self, req, fp, code, msg, headers, newurl):
        return None

try:
    path = "/v1/invoices"

    query = {
        "project": env("CRYPTANIO_PROJECT_ID"),
        "limit": "50",
    }
    url = "https://api.cryptanio.com" + path + ("?" + urlencode(query) if query else "")
    headers = {
        "Authorization": "Bearer " + env("CRYPTANIO_API_KEY"),
        "Accept": "application/json",
    }
    data = None
    request = Request(url, data=data, headers=headers, method="GET")
    with build_opener(NoRedirect()).open(request, timeout=30) as response:
        if not 200 <= response.status < 300:
            raise ValueError("HTTP " + str(response.status))
        sys.stdout.buffer.write(response.read())
except HTTPError as error:
    print("HTTP " + str(error.code) + ": " + error.read().decode("utf-8", errors="replace"), file=sys.stderr)
    sys.exit(1)
except (ValueError, URLError, OSError) as error:
    print(str(error), file=sys.stderr)
    sys.exit(1)
```



[サンプルをダウンロード](https://cryptanio.com/files/examples/api/list-invoices.py)



### Node.js

```javascript
// Node.js 18+. Run on your server, never in a browser.
const env = name => {
  const result = process.env[name];
  if (!result) throw new Error(`Set ${name}`);
  return result;
};
try {
  let path = "/v1/invoices";

  const url = new URL(path, "https://api.cryptanio.com");
  url.searchParams.set("project", env("CRYPTANIO_PROJECT_ID"));
  url.searchParams.set("limit", "50");
  const headers = {
    "Authorization": "Bearer " + env("CRYPTANIO_API_KEY"),
    "Accept": "application/json",
  };
  const response = await fetch(url, {
    method: "GET", headers, redirect: "manual",
    signal: AbortSignal.timeout(30_000),
  });
  if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
  if (response.body) {
    for await (const chunk of response.body) process.stdout.write(chunk);
  }
} catch (error) {
  console.error(error.message);
  process.exitCode = 1;
}
```



[サンプルをダウンロード](https://cryptanio.com/files/examples/api/list-invoices.mjs)

## 応答とエラー

### 200 成功応答。

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `data` | `object[]` | はい |  |

### 401 有効で使用可能な API キーがありません（unauthorized）。

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `object` | はい |  |



### 401 application/json

```json
{
  "error": {
    "code": "forbidden",
    "message": "this API key is read-only"
  }
}
```



### 403 キーが操作、プロジェクト、サービス、IP を許可していないか、メールアドレスが未確認です。

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `object` | はい |  |



### 403 application/json

```json
{
  "error": {
    "code": "forbidden",
    "message": "this API key is read-only"
  }
}
```



### 429 リクエストが多すぎます（rate_limited）。Retry-After の後に再試行してください。

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `object` | はい |  |



### 429 application/json

```json
{
  "error": {
    "code": "forbidden",
    "message": "this API key is read-only"
  }
}
```



### 500 内部エラー（internal）。

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `object` | はい |  |



### 500 application/json

```json
{
  "error": {
    "code": "forbidden",
    "message": "this API key is read-only"
  }
}
```



### 503 一時的に利用できません（unavailable）。バックオフを設けて再試行してください。

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `object` | はい |  |



### 503 application/json

```json
{
  "error": {
    "code": "forbidden",
    "message": "this API key is read-only"
  }
}
```



[エラー処理と安全な再試行](https://cryptanio.com/ja/docs.html#errors)

## 入れ子のオブジェクト

### `InvoiceList`

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `data` | `object[]` | はい |  |

### `Invoice`

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `checkout_url` | `string` | いいえ | Cryptanioが提供する決済ページです。支払者が方法を選ぶ請求書の作成時と再試行時には、支払いが検出されるまで方法を選択できる操作用アクセスリンクを返します。固定方法での作成時とすべてのGET・一覧では、別の読み取り専用リンクを返します。いずれのリンクも指定した支払者だけに共有してください。アカウントやAPIキーへのアクセス権は与えません。支払いは請求書APIまたは検証済みWebhookで確認し、ブラウザーのリダイレクトで判断しないでください。; `uri` |
| `id` | `string` | はい | 内部構造を持たない識別子。文字列のまま保持してください。; minLength: `1` |
| `status` | `string` | はい | pending は支払い待ち、seen は検出済み、partial は一部支払い済み、paid は支払い完了、underpaid/overpaid/late は判断が必要、expired は期限切れ、canceled はキャンセル済みです。; `pending`、`seen`、`paid`、`underpaid`、`partial`、`overpaid`、`expired`、`late`、`canceled` |
| `project_id` | `string` | はい | 内部構造を持たない識別子。文字列のまま保持してください。; minLength: `1` |
| `reference` | `string` | いいえ | 注文参照番号。 |
| `customer` | `object` | いいえ |  |
| `product` | `object` | いいえ |  |
| `payer` | `object` | いいえ |  |
| `metadata` | `object` | いいえ | 最大 20 組、JSON は最大 8192 バイト。シークレットを含めないでください。 |
| `invoice_currency` | `string` | いいえ | 注文の見積もり通貨。 |
| `invoice_amount` | `string` | いいえ | 正確な小数の金額を表す文字列。浮動小数点は使用しないでください。; pattern: `^[0-9]+(?:\.[0-9]+)?$` |
| `chain` | `string` | はい | ネットワークコード。 |
| `asset` | `string` | はい | 支払い資産。 |
| `address` | `string` | はい | 支払いアドレス。 |
| `payment_route` | `object` | いいえ | 自動ソースが tag、memo、TON comment、Solana Pay reference を発行する場合に必要なオンチェーンの決済識別子です。受取アドレスとともに保存してください。加盟店の注文参照は別のフィールドです。 |
| `payment_uri` | `string` | いいえ | 受取人、正確な金額、対応トークンの mint、必須の reference を含む Solana Pay の送金リクエストです。決済 QR には受取アドレスだけでなく、この URI をエンコードしてください。; `uri` |
| `amount` | `string \| string` | はい | 購入者が実際に送る金額です。請求書を区別するため、要求額と異なる場合があります。方法が選択されるまでは空です。 |
| `amount_raw` | `string \| string` | はい | 最小単位の整数金額を文字列で表した値です。方法が選択されるまでは空です。 |
| `asked` | `string \| string` | はい | 最初に要求された暗号資産の金額です。方法が選択されるまでは空です。 |
| `decimals` | `integer` | はい | 資産の小数点以下の桁数。; minimum: `0` |
| `tolerance` | `string` | いいえ | 最小単位での許容額。request.tolerance とは異なります。; pattern: `^[0-9]+$` |
| `sandbox` | `boolean` | はい | テスト請求書は実際のブロックチェーン決済を証明しません。 |
| `needs_decision` | `boolean` | いいえ | 不足払い、過払い、期限後の支払いには判断が必要です。 |
| `paid` | `string` | いいえ | 最小単位での受領額。; pattern: `^[0-9]+$` |
| `tx_id` | `string` | いいえ | 支払い取引の識別子。 |
| `paid_at` | `string` | いいえ | RFC 3339 形式の UTC 日時。; `date-time` |
| `expires_at` | `string` | はい | RFC 3339 形式の UTC 日時。; `date-time` |
| `created_at` | `string` | はい | RFC 3339 形式の UTC 日時。; `date-time` |

### `ID`

内部構造を持たない識別子。形式は保証されないため、数値に変換しないでください。

`string` 不透明な識別子。形式は保証されていません。数値に変換しないでください。

### `InvoiceStatus`

pending は支払い待ち、seen は検出済み、partial は一部支払い済み、paid は支払い完了、underpaid/overpaid/late は判断が必要、expired は期限切れ、canceled はキャンセル済みです。

`string` pending は支払い待ち、seen は検出済み、partial は一部支払い済み、paid は支払い完了、underpaid/overpaid/late は判断が必要、expired は期限切れ、canceled はキャンセル済みです。

### `Customer`

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | はい | お客様のシステム内の顧客識別子。; maxLength: `120` |

### `Product`

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `id` | `string` | いいえ | 自分のシステム内の製品識別子。; maxLength: `120` |
| `name` | `string` | いいえ | 製品名。; maxLength: `200` |
| `quantity` | `integer` | いいえ | 数量。; minimum: `1`、maximum: `1000000` |

### `Payer`

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `comment` | `string` | はい | 支払者のコメント。; maxLength: `500` |

### `InvoiceMetadata`

最大 20 組、JSON は最大 8192 バイト。シークレットを含めないでください。

`object` 最大 20 組、JSON は最大 8192 バイト。シークレットを含めないでください。

### `Decimal`

`string`

### `RawAmount`

`string`

### `Error`

| フィールド | 型 | 必須 | 説明 |
| --- | --- | --- | --- |
| `error` | `object` | はい |  |
