TaxProvider

iRetail PRO store node 1.0.0-m1

← Вся документация · Источник: контракты, openapi/store-v1.yaml на коммите 8000474.

Справочники на английском — на языке контрактов, из которых они созданы.

← iRetail PRO store node 1.0.0-m1

TaxProviderAddress object

line1 обязательный string
city обязательный string
region обязательный string
postal_code обязательный string

TaxRateChange object

code обязательный string
from_ppm обязательный integer
to_ppm обязательный integer

TaxProviderStatus object

state обязательный "never" | "ok" | "failed"
last_attempt_at обязательный string (date-time) | null
last_success_at обязательный string (date-time) | null
error обязательный "key_missing" | "provider_unreachable" | "provider_refused" | "bad_answer" | null
changed обязательный array of TaxRateChange The codes the last successful sync moved, in store order.

TaxProvider object

provider обязательный "avalara" | "taxjar" | null
account_id обязательный string | null Avalara's account number; null for TaxJar.
key_name обязательный string | null The node reads the key from IRETAIL_TAX_KEY_<NAME> or the file IRETAIL_TAX_KEY_<NAME>_FILE names; never the key itself.
key_present обязательный boolean Whether the node finds the named key; the key never leaves the node.
sandbox обязательный boolean
address обязательный TaxProviderAddress | null
mapping обязательный object Which tax code takes each jurisdiction's rate.
status обязательный TaxProviderStatus