- Get Started
- Product
- Build
- User Guide
- Cloud
- Get Started
- Product
- Build
- Tools
- Reference
- User Guide
- Cloud
This documentation provides a reference to the sdk.admin.taxRate
set of methods used to send requests to Medusa's Admin API routes.
This method creates a tax rate. It sends a request to the Create Tax Rate API route.
Promise
Promise<AdminTaxRateResponse>This method updates a tax rate. It sends a request to the Update Tax Rate API route.
id
stringPromise
Promise<AdminTaxRateResponse>This method deletes a tax rate. It sends a request to the Delete Tax Rate API route.
id
stringPromise
Promise<AdminTaxRateDeleteResponse>This method retrieves a tax rate. It sends a request to the Get Tax Rate API route.
To retrieve a tax rate by its ID:
To specify the fields and relations to retrieve:
Learn more about the fields
property in the API reference.
id
stringPromise
Promise<AdminTaxRateResponse>This method retrieves a list of tax rates. It sends a request to the List Tax Rates API route.
To retrieve the list of tax rates:
To configure the pagination, pass the limit
and offset
query parameters.
For example, to retrieve only 10 items and skip 10 items:
Using the fields
query parameter, you can specify the fields and relations to retrieve
in each tax rate:
Learn more about the fields
property in the API reference.
Promise
Promise<AdminTaxRateListResponse>