コンテンツにスキップ

税ルール取得

GET
/tax_rules/{tax_rule_id}
curl --request GET \
--url https://api.smaregi.dev/TARGET-CONTRACT-ID/ec-b2b/tax_rules/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

税ルールを取得します。

tax_rule_id
required
string format: uuid

税ルールID

取得成功

Media typeapplication/json
TaxRuleResponse
object
id

税ルールID

string format: uuid
taxRate

税率(%)

integer
calcRule

端数処理ルール

  • 0: 処理無し
  • 1: 四捨五入
  • 2: 切り捨て
  • 3: 切り上げ
integer
Allowed values: 0 1 2 3
taxCalcType

税計算タイプ

  • 2: 明細単位
  • 3: 伝票単位
integer
Allowed values: 2 3
applyAt

適用開始日時[YYYY-MM-DDThh:mm:ssTZD]

string format: date-time
Examples
Exampledefault
{
"id": "12345678-1234-1234-1234-1234567890ab",
"taxRate": 10,
"calcRule": 2,
"taxCalcType": 3,
"applyAt": "2019-10-01T00:00:00+09:00"
}

指定されたIDのリソースが見つからない場合

Media typeapplication/json
object
type
required
string
title
required
string
detail
string
status
integer
Example
{
"type": "about:blank",
"title": "Not Found",
"detail": "指定されたIDのリソースが見つかりません",
"status": 404
}