Files
medusa-store/docs/api/admin/components/schemas/region.yaml
2022-08-05 14:06:12 +02:00

103 lines
3.2 KiB
YAML

title: Region
description: >-
Regions hold settings for how Customers in a given geographical location shop.
The is, for example, where currencies and tax rates are defined. A Region can
consist of multiple countries to accomodate common shopping settings across
countries.
x-resourceId: region
required:
- name
- currency_code
- tax_rate
properties:
id:
type: string
description: The cart's ID
example: reg_01G1G5V26T9H8Y0M4JNE3YGA4G
name:
description: >-
The name of the region as displayed to the customer. If the Region only
has one country it is recommended to write the country name.
type: string
example: EU
currency_code:
description: The 3 character currency code that the Region uses.
type: string
example: usd
externalDocs:
url: https://en.wikipedia.org/wiki/ISO_4217#Active_codes
description: See a list of codes.
currency:
description: Available if the relation `currency` is expanded.
$ref: ./currency.yaml
tax_rate:
description: The tax rate that should be charged on purchases in the Region.
type: number
example: 0
tax_rates:
description: >-
The tax rates that are included in the Region. Available if the relation
`tax_rates` is expanded.
type: array
items:
$ref: ./tax_rate.yaml
tax_code:
description: >-
The tax code used on purchases in the Region. This may be used by other
systems for accounting purposes.
type: string
example: null
gift_cards_taxable:
description: Whether the gift cards are taxable or not in this region.
type: boolean
default: true
automatic_taxes:
description: Whether taxes should be automated in this region.
type: boolean
default: true
countries:
description: >-
The countries that are included in the Region. Available if the relation
`countries` is expanded.
type: array
items:
$ref: ./country.yaml
tax_provider_id:
type: string
description: The ID of the tax provider used in this region
example: null
tax_provider:
description: Available if the relation `tax_provider` is expanded.
$ref: ./tax_provider.yaml
payment_providers:
description: >-
The Payment Providers that can be used to process Payments in the Region.
Available if the relation `payment_providers` is expanded.
type: array
items:
$ref: ./payment_provider.yaml
fulfillment_providers:
description: >-
The Fulfillment Providers that can be used to fulfill orders in the
Region. Available if the relation `payment_providers` is expanded.
type: array
items:
$ref: ./fulfillment_provider.yaml
created_at:
type: string
description: The date with timezone at which the resource was created.
format: date-time
updated_at:
type: string
description: The date with timezone at which the resource was updated.
format: date-time
deleted_at:
type: string
description: The date with timezone at which the resource was deleted.
format: date-time
metadata:
type: object
description: An optional key-value map with additional details
example:
car: white