Files
medusa-store/www/apps/api-reference/specs/admin/components/schemas/AdminTaxRate.yaml
github-actions[bot] 21badd069d chore(docs): Updated API Reference (v2) (#9437)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-10-03 07:48:54 +00:00

81 lines
1.9 KiB
YAML

type: object
description: The tax rate's details.
x-schemaName: AdminTaxRate
required:
- id
- rate
- code
- name
- metadata
- tax_region_id
- is_combinable
- is_default
- created_at
- updated_at
- deleted_at
- created_by
- tax_region
- rules
properties:
id:
type: string
title: id
description: The tax rate's ID.
rate:
type: number
title: rate
description: The rate to charge.
example: 10
code:
type: string
title: code
description: The code the tax rate is identified by.
name:
type: string
title: name
description: The tax rate's name.
metadata:
type: object
description: The tax rate's metadata, can hold custom key-value pairs.
tax_region_id:
type: string
title: tax_region_id
description: The ID of the tax region this rate belongs to.
is_combinable:
type: boolean
title: is_combinable
description: Whether the tax rate should be combined with parent rates.
externalDocs:
url: >-
https://docs.medusajs.com/v2/resources/commerce-modules/tax/tax-rates-and-rules#combinable-tax-rates
is_default:
type: boolean
title: is_default
description: Whether this tax rate is the default in the tax region.
created_at:
type: string
format: date-time
title: created_at
description: The date the tax rate was created.
updated_at:
type: string
format: date-time
title: updated_at
description: The date the tax rate was updated.
deleted_at:
type: string
format: date-time
title: deleted_at
description: The date the tax rate was deleted.
created_by:
type: string
title: created_by
description: The ID of the user that created the tax rate.
tax_region:
$ref: ./AdminTaxRegion.yaml
rules:
type: array
description: The tax rate's rules.
items:
$ref: ./AdminTaxRateRule.yaml