---
updatedAt: 2026-05-11T10:32:40.000Z
agentTools:
  projectIndex: https://guides.sterasmartone.com/llms.txt
---

# Create invoice

インボイスを作成します。

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "version": "1.3.0",
    "title": "elepay API リファレンス",
    "description": "elepay APIはRESTをベースに構成された決済APIです。支払い処理、返金処理など、決済に関わる運用における様々なことができます。",
    "contact": {
      "name": "ELESTYLE, INC",
      "url": "https://elepay.io",
      "email": "support@elestyle.jp"
    }
  },
  "servers": [
    {
      "url": "https://api.elepay.io"
    }
  ],
  "tags": [
    {
      "name": "Invoice"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    },
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/invoices": {
      "post": {
        "tags": [
          "Invoice"
        ],
        "summary": "Create invoice",
        "description": "インボイスを作成します。",
        "operationId": "createInvoice",
        "requestBody": {
          "content": {
            "application/json;charset=utf-8": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceReq"
              }
            }
          },
          "description": "インボイスリクエスト",
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json;charset=utf-8": {
                "schema": {
                  "$ref": "#/components/schemas/InvoiceDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic",
        "description": "API呼出すの認証は、秘密鍵をユーザーネームとして扱い、パスワードは省略して、Basic 認証経由で行われます。\n秘密鍵は、全ての API リクエスト操作が可能となる重要なキーなので、取扱いにご注意ください。\n"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API呼出すの認証は、秘密鍵を認証トークンとして扱い、Bearer 認証経由で行われます。\n秘密鍵は、全ての API リクエスト操作が可能となる重要なキーなので、取扱いにご注意ください。\n"
      }
    },
    "schemas": {
      "CustomerStatusType": {
        "description": "状態\n",
        "type": "string",
        "enum": [
          "active",
          "deleted"
        ]
      },
      "CustomerDto": {
        "description": "カスタマオブジェクト",
        "properties": {
          "id": {
            "description": "Customer ID",
            "type": "string",
            "maxLength": 32
          },
          "object": {
            "description": "対象種類の表記",
            "type": "string",
            "default": "customer"
          },
          "liveMode": {
            "description": "本番モードかどうか\n- false テストモード\n- true 本番モード\n",
            "type": "boolean"
          },
          "defaultSource": {
            "description": "デフォルトカスタマソースID",
            "type": "string",
            "maxLength": 32
          },
          "name": {
            "description": "名前",
            "type": "string",
            "maxLength": 255
          },
          "description": {
            "description": "カスタマに関する説明",
            "type": "string",
            "maxLength": 255
          },
          "email": {
            "description": "メールアドレス",
            "type": "string",
            "maxLength": 255
          },
          "phone": {
            "description": "電話番号",
            "type": "string",
            "maxLength": 255
          },
          "remark": {
            "description": "備考",
            "type": "string"
          },
          "operator": {
            "description": "操作者",
            "type": "string",
            "maxLength": 255
          },
          "status": {
            "$ref": "#/components/schemas/CustomerStatusType"
          },
          "metadata": {
            "description": "メタデータ",
            "type": "object",
            "maxProperties": 20,
            "propertyNames": {
              "type": "string",
              "maxLength": 20
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "updateTime": {
            "description": "update time",
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "TaxType": {
        "description": "税区分\n- included 内税\n- excluded 外税\n",
        "type": "string",
        "enum": [
          "included",
          "excluded"
        ]
      },
      "TaxCalcType": {
        "description": "税計算方法\n- floor 切り捨て\n- ceil 切り上げ\n- round5 四捨五入\n",
        "type": "string",
        "enum": [
          "floor",
          "ceil",
          "round5"
        ]
      },
      "TaxRateType": {
        "description": "税率区分\n- standard 税率10%\n- reduced 税率8%\n- free 税率0%\n",
        "type": "string",
        "enum": [
          "standard",
          "reduced",
          "free"
        ]
      },
      "InvoiceStatusType": {
        "description": "インボイス状態\n- draft 下書き\n- submit 確定済み\n- sent 送信済み\n- paid 支払い済み\n- expired 期限切れ\n- canceled キャンセル済み\n",
        "type": "string",
        "enum": [
          "draft",
          "submit",
          "sent",
          "paid",
          "expired",
          "canceled"
        ]
      },
      "InvoiceReq": {
        "description": "インボイスリクエスト",
        "type": "object",
        "required": [
          "customerId",
          "amount"
        ],
        "properties": {
          "name": {
            "description": "インボイス件名",
            "type": "string"
          },
          "memo": {
            "description": "インボイスメモ",
            "type": "string"
          },
          "customerId": {
            "description": "カスタマID",
            "type": "string",
            "maxLength": 32
          },
          "amount": {
            "description": "支払い金額",
            "type": "integer"
          },
          "currency": {
            "description": "通貨コード (ISO_4217)",
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "default": "JPY"
          },
          "taxType": {
            "$ref": "#/components/schemas/TaxType"
          },
          "taxCalcType": {
            "$ref": "#/components/schemas/TaxCalcType"
          },
          "invoiceTime": {
            "description": "請求日（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          },
          "expiryTime": {
            "description": "支払い請求有効時間（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          },
          "fields": {
            "description": "インボイスフィールドリスト",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceItem"
            }
          },
          "remark": {
            "description": "追加説明",
            "type": "string"
          },
          "metadata": {
            "description": "メタデータ",
            "type": "object",
            "maxProperties": 20,
            "propertyNames": {
              "type": "string",
              "maxLength": 20
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "enableAutoCharge": {
            "description": "自動支払いを有効にするかどうか。\ntrue 有効、false 無効\n",
            "type": "boolean",
            "default": false
          },
          "autoChargeTime": {
            "description": "自動支払いの時間（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "InvoiceDto": {
        "description": "インボイスオブジェクト",
        "properties": {
          "id": {
            "description": "Invoice ID",
            "type": "string",
            "maxLength": 32
          },
          "object": {
            "description": "対象種類の表記",
            "type": "string",
            "default": "invoice"
          },
          "liveMode": {
            "description": "本番モードかどうか\n- false テストモード\n- true 本番モード\n",
            "type": "boolean"
          },
          "customer": {
            "$ref": "#/components/schemas/CustomerDto"
          },
          "invoiceNo": {
            "description": "Invoice Number",
            "type": "string",
            "maxLength": 255
          },
          "name": {
            "description": "インボイス件名",
            "type": "string",
            "maxLength": 255
          },
          "memo": {
            "description": "インボイスメモ",
            "type": "string",
            "maxLength": 255
          },
          "amount": {
            "description": "支払い金額",
            "type": "integer"
          },
          "currency": {
            "description": "通貨コード (ISO_4217)",
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "default": "JPY"
          },
          "status": {
            "$ref": "#/components/schemas/InvoiceStatusType"
          },
          "operator": {
            "description": "操作者",
            "type": "string",
            "maxLength": 255
          },
          "invoiceTime": {
            "description": "請求日（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          },
          "sendTime": {
            "description": "送信時間（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          },
          "paidTime": {
            "description": "支払い時間（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          },
          "expiryTime": {
            "description": "支払い請求有効時間（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          },
          "createTime": {
            "description": "作成時間（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          },
          "fields": {
            "description": "インボイスフィールドリスト",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "items": {
            "description": "インボイスアイテムリスト",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoiceItem"
            }
          },
          "remark": {
            "description": "追加説明",
            "type": "string"
          },
          "metadata": {
            "description": "メタデータ",
            "type": "object",
            "maxProperties": 20,
            "propertyNames": {
              "type": "string",
              "maxLength": 20
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "enableAutoCharge": {
            "description": "自動支払いを有効にするかどうか。\ntrue 有効、false 無効\n",
            "type": "boolean"
          }
        }
      },
      "InvoiceItem": {
        "description": "インボイスアイテムオブジェクト",
        "properties": {
          "id": {
            "description": "Invoice Item ID",
            "type": "string",
            "maxLength": 32
          },
          "object": {
            "description": "対象種類の表記",
            "type": "string",
            "default": "invoiceItem"
          },
          "name": {
            "description": "商品名",
            "type": "string",
            "maxLength": 255
          },
          "unitPrice": {
            "description": "単価",
            "type": "integer"
          },
          "currency": {
            "description": "通貨コード (ISO_4217)",
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "default": "JPY"
          },
          "quantity": {
            "description": "件数",
            "type": "integer"
          },
          "unit": {
            "description": "単位",
            "type": "string"
          },
          "taxRateType": {
            "$ref": "#/components/schemas/TaxRateType"
          },
          "transactionTime": {
            "description": "取引時間（エポックミリ秒）",
            "type": "integer",
            "format": "int64"
          }
        }
      }
    }
  }
}
```