Logoelepay
Invoices

Create invoice

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

POST
/invoices
インボイス件名
インボイスメモ
カスタマID
length ≤ 32
支払い金額
通貨コード (ISO_4217)
length 3–3 · default: JPY
税区分 - included 内税 - excluded 外税
税計算方法 - floor 切り捨て - ceil 切り上げ - round5 四捨五入
請求日(エポックミリ秒)
format: int64
支払い請求有効時間(エポックミリ秒)
format: int64
インボイスフィールドリスト
追加説明
メタデータ
自動支払いを有効にするかどうか。 true 有効、false 無効
default: false
自動支払いの時間(エポックミリ秒)
format: int64

Response Body

application/json

Created

TypeScript Definitions

Use the response body type in TypeScript.

response?InvoiceDto

インボイスオブジェクト

curl -X POST "https://api.elepay.io/invoices" \  -H "Content-Type: application/json" \  -d '{    "customerId": "string",    "amount": 0  }'
{
  "id": "string",
  "object": "invoice",
  "liveMode": true,
  "customer": {
    "id": "string",
    "object": "customer",
    "liveMode": true,
    "defaultSource": "string",
    "name": "string",
    "description": "string",
    "email": "string",
    "phone": "string",
    "remark": "string",
    "operator": "string",
    "status": "active",
    "metadata": {},
    "updateTime": 0
  },
  "invoiceNo": "string",
  "name": "string",
  "memo": "string",
  "amount": 0,
  "currency": "JPY",
  "status": "draft",
  "operator": "string",
  "invoiceTime": 0,
  "sendTime": 0,
  "paidTime": 0,
  "expiryTime": 0,
  "createTime": 0,
  "fields": [
    "string"
  ],
  "items": [
    {
      "id": "string",
      "object": "invoiceItem",
      "name": "string",
      "unitPrice": 0,
      "currency": "JPY",
      "quantity": 0,
      "unit": "string",
      "taxRateType": "standard",
      "transactionTime": 0
    }
  ],
  "remark": "string",
  "metadata": {},
  "enableAutoCharge": true
}