Scalebase ペイメント API (1.0.0-alpha1)

Download OpenAPI specification:

Scalebase ペイメントへ接続するAPIのリファレンスです

Scalebaseペイメントヘルプ

Scalebase ペイメントの製品・概念説明、基本操作方法などについては こちら をご確認ください

サービスエンドポイント

https://api.payment.scalebase.com

APIキー

発行されたAPIキーを X-API-Key ヘッダーに設定することでリクエスト可能です。

入金

入金の一括作成

Request Body schema: application/json
required
Array of objects (controllers.v1.DepositController.BulkCreate.Request.Item)

Responses

Request samples

Content type
application/json
{
  • "deposits": [
    ]
}

Response samples

Content type
application/json
{
  • "ids": [
    ]
}

入金の作成

bankAccountName に使用できる文字は半角数字 (0-9), 半角英大文字 (A-Z), 半角カタカナ (ア-ン), 濁点・半濁点 (゙ ゚), 長音 (ー), 記号 (. , - ( )), 空白のみです (1〜255 文字)。

Request Body schema: application/json
amount
required
integer <int64>
bankAccountName
string or null
date
required
string <date>
interofficeMemo
string or null
partnerId
string or null
recipientBankAccountText
string or null

Responses

Request samples

Content type
application/json
{
  • "amount": 0,
  • "bankAccountName": "string",
  • "date": "2019-08-24",
  • "interofficeMemo": "string",
  • "partnerId": "string",
  • "recipientBankAccountText": "string"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

入金の取得

指定した ID の入金を 1 件返します。

Request Body schema: application/json
depositId
required
string

Responses

Request samples

Content type
application/json
{
  • "depositId": "string"
}

Response samples

Content type
application/json
{
  • "bankAccountName": "string",
  • "depositAmount": 0,
  • "depositDate": "2019-08-24",
  • "depositId": "string",
  • "interofficeMemo": "string",
  • "isArchived": true,
  • "partner": {
    },
  • "recipientBankAccountText": "string",
  • "unreconciledBalance": 0
}

入金の更新

指定したフィールドのみ更新します。省略したフィールドは変更されません。partnerId / interofficeMemo に null を指定するとクリア (取引先は紐付け解除) します。partnerId と interofficeMemo の少なくとも一方の指定が必須です。

Request Body schema: application/json
depositId
required
string
interofficeMemo
string or null
partnerId
string or null

Responses

Request samples

Content type
application/json
{
  • "depositId": "string",
  • "interofficeMemo": "string",
  • "partnerId": "string"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

事業者

事業者情報の取得

API キーに紐づく事業者の情報を返します。

Responses

Response samples

Content type
application/json
{
  • "displayName": "string",
  • "ownerId": "string"
}

取引先

取引先の作成

Request Body schema: application/json
code
string or null
interofficeMemo
string or null
name
required
string

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "interofficeMemo": "string",
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "partnerId": "string"
}

取引先の取得

指定した ID の取引先を 1 件返します。アーカイブ済みの取引先も返します (isArchived で判別できます)。

Request Body schema: application/json
id
required
string

Responses

Request samples

Content type
application/json
{
  • "id": "string"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "id": "string",
  • "interofficeMemo": "string",
  • "isArchived": true,
  • "name": "string"
}

取引先の更新

指定したフィールドのみ更新します。省略したフィールドは変更されません。code / interofficeMemo に null を指定するとクリアします。name は必須項目のため null を指定できません。name / code / interofficeMemo の少なくとも一方の指定が必須です。

Request Body schema: application/json
code
string or null
id
required
string
interofficeMemo
string or null
name
string or null

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "id": "string",
  • "interofficeMemo": "string",
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

商品

商品の作成

code に使用できる文字は半角英数・ハイフン・アンダースコアのみです (255 文字以内)。quantity は 1 以上の整数です。

Request Body schema: application/json
code
string or null
name
required
string
quantity
integer or null <int64>
revenueRecognitionRuleId
string or null
scalebaseCatalogChargeItemId
string or null

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "name": "string",
  • "quantity": 0,
  • "revenueRecognitionRuleId": "string",
  • "scalebaseCatalogChargeItemId": "string"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

商品の取得

指定した ID の商品を 1 件返します。アーカイブ済みの商品も返します。

Request Body schema: application/json
id
required
string

Responses

Request samples

Content type
application/json
{
  • "id": "string"
}

Response samples

Content type
application/json
{
  • "code": "string",
  • "id": "string",
  • "isArchived": true,
  • "name": "string",
  • "quantity": 0,
  • "revenueRecognitionRuleId": "string",
  • "scalebaseCatalogChargeItemId": "string"
}

商品の部分更新

指定したフィールドのみ更新します。省略したフィールドは変更されません。code / quantity / scalebaseCatalogChargeItemId / revenueRecognitionRuleId に null を指定するとクリアします。name に null は指定できません。

Request Body schema: application/json
code
string or null
id
required
string
name
string or null
quantity
integer or null <int64>
revenueRecognitionRuleId
string or null
scalebaseCatalogChargeItemId
string or null

Responses

Request samples

Content type
application/json
{
  • "code": "string",
  • "id": "string",
  • "name": "string",
  • "quantity": 0,
  • "revenueRecognitionRuleId": "string",
  • "scalebaseCatalogChargeItemId": "string"
}

Response samples

Content type
application/json
{
  • "id": "string"
}

債権

債権の取得

指定した ID の債権を 1 件返します。アーカイブ済みの債権も返します (isArchived で判別できます)。

Request Body schema: application/json
receivableId
required
string

Responses

Request samples

Content type
application/json
{
  • "receivableId": "string"
}

Response samples

Content type
application/json
{
  • "billingDate": "2019-08-24",
  • "endDate": "2019-08-24",
  • "invoiceId": "string",
  • "invoiceName": "string",
  • "invoiceNumber": "string",
  • "isArchived": true,
  • "itemCode": "string",
  • "partnerCode": "string",
  • "partnerId": "string",
  • "partnerName": "string",
  • "paymentDueDate": "2019-08-24",
  • "paymentMethodDisplayName": "string",
  • "paymentMethodId": "string",
  • "productCode": "string",
  • "productId": "string",
  • "productName": "string",
  • "receivableAmount": 0,
  • "receivableId": "string",
  • "receivableName": "string",
  • "startDate": "2019-08-24",
  • "taxClass": "string",
  • "unpaidBalance": 0
}

消込

消込の取消

Request Body schema: application/json
reconciliationProcessIds
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "reconciliationProcessIds": [
    ]
}

Response samples

Content type
application/json
{
  • "failures": [
    ],
  • "successes": [
    ]
}

消込の取得

指定した ID の消込処理を 1 件返します。diff は「債権 - 入金」の差額です。

Request Body schema: application/json
reconciliationProcessId
required
string

Responses

Request samples

Content type
application/json
{
  • "reconciliationProcessId": "string"
}

Response samples

Content type
application/json
{
  • "reconciliationProcess": {
    }
}

消込の実行

receivableAdjustments / depositAdjustments は省略できません。調整金がない場合は空配列を指定してください。

Request Body schema: application/json
required
Array of objects (com.scalebase.payment.matching.reconciliationprocess.Adjustment.Input)
required
Array of objects (com.scalebase.payment.matching.reconciliationprocess.ReconciliationTarget.DepositItem.Input)
interofficeMemo
string or null
required
Array of objects (com.scalebase.payment.matching.reconciliationprocess.Adjustment.Input)
required
Array of objects (com.scalebase.payment.matching.reconciliationprocess.ReconciliationTarget.ReceivableItem.Input)

Responses

Request samples

Content type
application/json
{
  • "depositAdjustments": [
    ],
  • "depositItems": [
    ],
  • "interofficeMemo": "string",
  • "receivableAdjustments": [
    ],
  • "receivableItems": [
    ]
}

Response samples

Content type
application/json
{
  • "reconciliationProcessId": "string"
}