Files
medusa-store/docs/api/admin/paths/tax-rates_:id_shipping-options_batch.yaml
2022-08-05 14:06:12 +02:00

97 lines
2.4 KiB
YAML

post:
operationId: PostTaxRatesTaxRateShippingOptions
summary: Add Tax Rate to Product Types
description: Associates a Tax Rate with a list of Shipping Options
parameters:
- in: query
name: fields
description: Which fields should be included in the result.
style: form
explode: false
schema:
type: array
items:
type: string
- in: query
name: expand
description: Which fields should be expanded and retrieved in the result.
style: form
explode: false
schema:
type: array
items:
type: string
x-authenticated: true
requestBody:
content:
application/json:
schema:
required:
- shipping_options
properties:
shipping_options:
type: array
description: The IDs of the shipping options to associate with this tax rate
items:
type: string
tags:
- Tax Rate
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
tax_rate:
$ref: ../components/schemas/tax_rate.yaml
delete:
operationId: DeleteTaxRatesTaxRateShippingOptions
summary: Removes a Tax Rate from Product Types
description: Removes a Tax Rate from a list of Product Types
parameters:
- in: query
name: fields
description: Which fields should be included in the result.
style: form
explode: false
schema:
type: array
items:
type: string
- in: query
name: expand
description: Which fields should be expanded and retrieved in the result.
style: form
explode: false
schema:
type: array
items:
type: string
x-authenticated: true
requestBody:
content:
application/json:
schema:
required:
- shipping_options
properties:
shipping_options:
type: array
description: >-
The IDs of the shipping options to remove association with this
tax rate
items:
type: string
tags:
- Tax Rate
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
tax_rate:
$ref: ../components/schemas/tax_rate.yaml