chore(docs): Generated API Reference (#6755)

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-03-27 18:24:22 +01:00
committed by GitHub
co-authored by olivermrbl
parent 9766266b97
commit 8e3e49fbbf
14 changed files with 934 additions and 81 deletions
@@ -34,12 +34,6 @@ tags:
externalDocs: externalDocs:
description: How to manage currencies description: How to manage currencies
url: https://docs.medusajs.com/modules/regions-and-currencies/admin/manage-currencies url: https://docs.medusajs.com/modules/regions-and-currencies/admin/manage-currencies
- name: Customers
description: |
Customers can either be created when they register through the Store APIs, or created by the admin using the Admin APIs.
externalDocs:
description: How to manage customers
url: https://docs.medusajs.com/modules/customers/admin/manage-customers
- name: Customer Groups - name: Customer Groups
description: | description: |
Customer Groups can be used to organize customers that share similar data or attributes into dedicated groups. Customer Groups can be used to organize customers that share similar data or attributes into dedicated groups.
@@ -47,6 +41,12 @@ tags:
externalDocs: externalDocs:
description: How to manage customer groups description: How to manage customer groups
url: https://docs.medusajs.com/modules/customers/admin/manage-customer-groups url: https://docs.medusajs.com/modules/customers/admin/manage-customer-groups
- name: Customers
description: |
Customers can either be created when they register through the Store APIs, or created by the admin using the Admin APIs.
externalDocs:
description: How to manage customers
url: https://docs.medusajs.com/modules/customers/admin/manage-customers
- name: Discounts - name: Discounts
description: | description: |
Admins can create discounts with conditions and rules, providing them with advanced settings for variety of cases. Admins can create discounts with conditions and rules, providing them with advanced settings for variety of cases.
@@ -86,6 +86,12 @@ tags:
description: | description: |
Notifications are sent to customers to inform them of new updates. For example, a notification can be sent to the customer when their order is place or its state is updated. Notifications are sent to customers to inform them of new updates. For example, a notification can be sent to the customer when their order is place or its state is updated.
The notification's type, such as an email or SMS, is determined by the notification provider installed on the Medusa backend. The notification's type, such as an email or SMS, is determined by the notification provider installed on the Medusa backend.
- name: Order Edits
description: |
An admin can edit an order to remove, add, or update an item's quantity. When an admin edits an order, they're stored as an `OrderEdit`.
externalDocs:
description: How to edit an order
url: https://docs.medusajs.com/modules/orders/admin/edit-order
- name: Orders - name: Orders
description: | description: |
Orders are purchases made by customers, typically through a storefront using the Store API. Draft orders created by the admin are also transformed to an Order once the payment is captured. Orders are purchases made by customers, typically through a storefront using the Store API. Draft orders created by the admin are also transformed to an Order once the payment is captured.
@@ -93,30 +99,18 @@ tags:
externalDocs: externalDocs:
description: How to manage orders description: How to manage orders
url: https://docs.medusajs.com/modules/orders/admin/manage-orders url: https://docs.medusajs.com/modules/orders/admin/manage-orders
- name: Order Edits
description: |
An admin can edit an order to remove, add, or update an item's quantity. When an admin edits an order, they're stored as an `OrderEdit`.
externalDocs:
description: How to edit an order
url: https://docs.medusajs.com/modules/orders/admin/edit-order
- name: Payments
description: |
A payment can be related to an order, swap, return, or more. It can be captured or refunded.
- name: Payment Collections - name: Payment Collections
description: | description: |
A payment collection is useful for managing additional payments, such as for Order Edits, or installment payments. A payment collection is useful for managing additional payments, such as for Order Edits, or installment payments.
- name: Payments
description: |
A payment can be related to an order, swap, return, or more. It can be captured or refunded.
- name: Price Lists - name: Price Lists
description: | description: |
A price list are special prices applied to products based on a set of conditions, such as customer group. A price list are special prices applied to products based on a set of conditions, such as customer group.
externalDocs: externalDocs:
description: How to manage price lists description: How to manage price lists
url: https://docs.medusajs.com/modules/price-lists/admin/manage-price-lists url: https://docs.medusajs.com/modules/price-lists/admin/manage-price-lists
- name: Products
description: |
Products are saleable items in a store. This also includes [saleable gift cards](https://docs.medusajs.com/modules/gift-cards/admin/manage-gift-cards#manage-gift-card-product) in a store.
externalDocs:
description: How to manage products
url: https://docs.medusajs.com/modules/products/admin/manage-products
- name: Product Categories - name: Product Categories
description: | description: |
Products can be categoriezed into categories. A product can be added into more than one category. Products can be categoriezed into categories. A product can be added into more than one category.
@@ -141,6 +135,12 @@ tags:
externalDocs: externalDocs:
description: How to manage product variants description: How to manage product variants
url: https://docs.medusajs.com/modules/products/admin/manage-products#manage-product-variants url: https://docs.medusajs.com/modules/products/admin/manage-products#manage-product-variants
- name: Products
description: |
Products are saleable items in a store. This also includes [saleable gift cards](https://docs.medusajs.com/modules/gift-cards/admin/manage-gift-cards#manage-gift-card-product) in a store.
externalDocs:
description: How to manage products
url: https://docs.medusajs.com/modules/products/admin/manage-products
- name: Publishable API Keys - name: Publishable API Keys
description: | description: |
Publishable API Keys can be used to scope Store API calls with an API key, determining what resources are retrieved when querying the API. Publishable API Keys can be used to scope Store API calls with an API key, determining what resources are retrieved when querying the API.
@@ -150,13 +150,6 @@ tags:
externalDocs: externalDocs:
description: How to manage publishable API keys description: How to manage publishable API keys
url: https://docs.medusajs.com/development/publishable-api-keys/admin/manage-publishable-api-keys url: https://docs.medusajs.com/development/publishable-api-keys/admin/manage-publishable-api-keys
- name: Reservations
description: |
Reservations, provided by the [Inventory Module](https://docs.medusajs.com/modules/multiwarehouse/inventory-module), are quantities of an item that are reserved, typically when an order is placed but not yet fulfilled.
Reservations can be associated with any resources, but commonly with line items of an order.
externalDocs:
description: How to manage item allocations in orders
url: https://docs.medusajs.com/modules/multiwarehouse/admin/manage-item-allocations-in-orders
- name: Regions - name: Regions
description: | description: |
Regions are different countries or geographical regions that the commerce store serves customers in. Regions are different countries or geographical regions that the commerce store serves customers in.
@@ -164,6 +157,13 @@ tags:
externalDocs: externalDocs:
description: How to manage regions description: How to manage regions
url: https://docs.medusajs.com/modules/regions-and-currencies/admin/manage-regions url: https://docs.medusajs.com/modules/regions-and-currencies/admin/manage-regions
- name: Reservations
description: |
Reservations, provided by the [Inventory Module](https://docs.medusajs.com/modules/multiwarehouse/inventory-module), are quantities of an item that are reserved, typically when an order is placed but not yet fulfilled.
Reservations can be associated with any resources, but commonly with line items of an order.
externalDocs:
description: How to manage item allocations in orders
url: https://docs.medusajs.com/modules/multiwarehouse/admin/manage-item-allocations-in-orders
- name: Return Reasons - name: Return Reasons
description: | description: |
Return reasons are key-value pairs that are used to specify why an order return is being created. Return reasons are key-value pairs that are used to specify why an order return is being created.
@@ -1257,6 +1257,11 @@ paths:
description: a term to search collections by their title or handle. description: a term to search collections by their title or handle.
schema: schema:
type: string type: string
- in: query
name: order
description: A field to sort-order the retrieved collections by.
schema:
type: string
- in: query - in: query
name: discount_condition_id name: discount_condition_id
description: Filter collections by a discount condition ID associated with them. description: Filter collections by a discount condition ID associated with them.
@@ -2261,6 +2266,11 @@ paths:
description: Comma-separated relations that should be expanded in the returned customer groups. description: Comma-separated relations that should be expanded in the returned customer groups.
schema: schema:
type: string type: string
- in: query
name: fields
description: Comma-separated fields that should be included in the returned customer groups.
schema:
type: string
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetCustomerGroupsParams queryParams: AdminGetCustomerGroupsParams
@@ -3030,7 +3040,12 @@ paths:
default: 0 default: 0
- in: query - in: query
name: expand name: expand
description: Comma-separated relations that should be expanded in the returned customer. description: Comma-separated relations that should be expanded in the returned customers.
schema:
type: string
- in: query
name: fields
description: Comma-separated fields that should be included in the returned customers.
schema: schema:
type: string type: string
- in: query - in: query
@@ -3038,6 +3053,16 @@ paths:
description: term to search customers' email, first_name, and last_name fields. description: term to search customers' email, first_name, and last_name fields.
schema: schema:
type: string type: string
- in: query
name: has_account
description: Filter customers by whether they have an account.
schema:
type: boolean
- in: query
name: order
description: A field to sort-order the retrieved customers by.
schema:
type: string
- in: query - in: query
name: groups name: groups
style: form style: form
@@ -3047,6 +3072,50 @@ paths:
type: array type: array
items: items:
type: string type: string
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetCustomersParams queryParams: AdminGetCustomersParams
@@ -3465,6 +3534,55 @@ paths:
description: Comma-separated relations that should be expanded in each returned discount. description: Comma-separated relations that should be expanded in each returned discount.
schema: schema:
type: string type: string
- in: query
name: order
description: A discount field to sort-order the retrieved discounts by.
schema:
type: string
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetDiscountsParams queryParams: AdminGetDiscountsParams
@@ -5101,6 +5219,77 @@ paths:
description: a term to search draft orders' display IDs and emails in the draft order's cart description: a term to search draft orders' display IDs and emails in the draft order's cart
schema: schema:
type: string type: string
- in: query
name: order
description: Field to sort retrieved draft orders by.
schema:
type: string
- in: query
name: expand
description: A comma-separated list of fields to expand.
schema:
type: string
- in: query
name: fields
description: A comma-separated list of fields to include in the response.
schema:
type: string
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: status
style: form
explode: false
description: Filter by status
schema:
type: array
items:
type: string
enum:
- open
- completed
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetDraftOrdersParams queryParams: AdminGetDraftOrdersParams
@@ -5946,6 +6135,11 @@ paths:
description: a term to search gift cards' code or display ID description: a term to search gift cards' code or display ID
schema: schema:
type: string type: string
- in: query
name: order
description: A gift card field to sort-order the retrieved gift cards by.
schema:
type: string
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetGiftCardsParams queryParams: AdminGetGiftCardsParams
@@ -6396,6 +6590,11 @@ paths:
description: term to search inventory item's sku, title, and description. description: term to search inventory item's sku, title, and description.
schema: schema:
type: string type: string
- in: query
name: order
description: Field to sort-order inventory items by.
schema:
type: string
- in: query - in: query
name: location_id name: location_id
style: form style: form
@@ -9654,7 +9853,7 @@ paths:
type: string type: string
- in: query - in: query
name: order name: order
description: A order field to sort-order the retrieved orders by. description: Field to sort retrieved orders by.
schema: schema:
type: string type: string
x-codegen: x-codegen:
@@ -13958,9 +14157,17 @@ paths:
type: string type: string
- in: query - in: query
name: id name: id
description: Filter by product ID style: form
explode: false
description: Filter by product IDs.
schema: schema:
type: string oneOf:
- type: string
description: ID of the product.
- type: array
items:
type: string
description: ID of a product.
- in: query - in: query
name: status name: status
description: Filter by product status description: Filter by product status
@@ -14012,7 +14219,7 @@ paths:
name: is_giftcard name: is_giftcard
description: A boolean value to filter by whether the product is a gift card or not. description: A boolean value to filter by whether the product is a gift card or not.
schema: schema:
type: string type: boolean
- in: query - in: query
name: type name: type
description: Filter product type. description: Filter product type.
@@ -16775,8 +16982,6 @@ paths:
summary: List a Product's Variants summary: List a Product's Variants
description: | description: |
Retrieve a list of Product Variants associated with a Product. The variants can be paginated. Retrieve a list of Product Variants associated with a Product. The variants can be paginated.
By default, each variant will only have the `id` and `variant_id` fields. You can use the `expand` and `fields` request parameters to retrieve more fields or relations.
x-authenticated: true x-authenticated: true
parameters: parameters:
- in: path - in: path
@@ -16785,6 +16990,11 @@ paths:
description: ID of the product. description: ID of the product.
schema: schema:
type: string type: string
- in: query
name: id
description: IDs to filter product variants by.
schema:
type: string
- in: query - in: query
name: fields name: fields
description: Comma-separated fields that should be included in the returned product variants. description: Comma-separated fields that should be included in the returned product variants.
@@ -16807,6 +17017,70 @@ paths:
schema: schema:
type: integer type: integer
default: 100 default: 100
- in: query
name: q
description: Search term to search product variants' title, sku, and products' title.
schema:
type: string
- in: query
name: order
description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.
schema:
type: string
- in: query
name: manage_inventory
description: Filter product variants by whether their inventory is managed or not.
schema:
type: boolean
- in: query
name: allow_backorder
description: Filter product variants by whether they are allowed to be backordered or not.
schema:
type: boolean
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
x-codegen: x-codegen:
method: listVariants method: listVariants
queryParams: AdminGetProductsVariantsParams queryParams: AdminGetProductsVariantsParams
@@ -17228,6 +17502,80 @@ paths:
description: Comma-separated fields that should be included in the returned publishable API keys. description: Comma-separated fields that should be included in the returned publishable API keys.
schema: schema:
type: string type: string
- in: query
name: order
description: A field to sort-order the retrieved publishable API keys by.
schema:
type: string
- in: query
name: created_at
required: false
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
required: false
description: Filter by a update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: revoked_at
required: false
description: Filter by a revocation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
x-codegen: x-codegen:
method: list method: list
queryParams: GetPublishableApiKeysParams queryParams: GetPublishableApiKeysParams
@@ -23727,6 +24075,72 @@ paths:
description: Filter by code. description: Filter by code.
schema: schema:
type: string type: string
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: deleted_at
description: Filter by a deletion date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query - in: query
name: rate name: rate
style: form style: form
@@ -23749,6 +24163,16 @@ paths:
gte: gte:
type: number type: number
description: filter by rates greater than or equal to this number description: filter by rates greater than or equal to this number
- in: query
name: q
description: Term used to search tax rates by name.
schema:
type: string
- in: query
name: order
description: A tax rate field to sort-order the retrieved tax rates by.
schema:
type: string
- in: query - in: query
name: offset name: offset
description: The number of tax rates to skip when retrieving the tax rates. description: The number of tax rates to skip when retrieving the tax rates.
+36 -36
View File
@@ -50,13 +50,6 @@ tags:
description: How to manage currencies description: How to manage currencies
url: >- url: >-
https://docs.medusajs.com/modules/regions-and-currencies/admin/manage-currencies https://docs.medusajs.com/modules/regions-and-currencies/admin/manage-currencies
- name: Customers
description: >
Customers can either be created when they register through the Store APIs,
or created by the admin using the Admin APIs.
externalDocs:
description: How to manage customers
url: https://docs.medusajs.com/modules/customers/admin/manage-customers
- name: Customer Groups - name: Customer Groups
description: > description: >
Customer Groups can be used to organize customers that share similar data Customer Groups can be used to organize customers that share similar data
@@ -67,6 +60,13 @@ tags:
externalDocs: externalDocs:
description: How to manage customer groups description: How to manage customer groups
url: https://docs.medusajs.com/modules/customers/admin/manage-customer-groups url: https://docs.medusajs.com/modules/customers/admin/manage-customer-groups
- name: Customers
description: >
Customers can either be created when they register through the Store APIs,
or created by the admin using the Admin APIs.
externalDocs:
description: How to manage customers
url: https://docs.medusajs.com/modules/customers/admin/manage-customers
- name: Discounts - name: Discounts
description: > description: >
Admins can create discounts with conditions and rules, providing them with Admins can create discounts with conditions and rules, providing them with
@@ -124,6 +124,13 @@ tags:
The notification's type, such as an email or SMS, is determined by the The notification's type, such as an email or SMS, is determined by the
notification provider installed on the Medusa backend. notification provider installed on the Medusa backend.
- name: Order Edits
description: >
An admin can edit an order to remove, add, or update an item's quantity.
When an admin edits an order, they're stored as an `OrderEdit`.
externalDocs:
description: How to edit an order
url: https://docs.medusajs.com/modules/orders/admin/edit-order
- name: Orders - name: Orders
description: > description: >
Orders are purchases made by customers, typically through a storefront Orders are purchases made by customers, typically through a storefront
@@ -135,21 +142,14 @@ tags:
externalDocs: externalDocs:
description: How to manage orders description: How to manage orders
url: https://docs.medusajs.com/modules/orders/admin/manage-orders url: https://docs.medusajs.com/modules/orders/admin/manage-orders
- name: Order Edits
description: >
An admin can edit an order to remove, add, or update an item's quantity.
When an admin edits an order, they're stored as an `OrderEdit`.
externalDocs:
description: How to edit an order
url: https://docs.medusajs.com/modules/orders/admin/edit-order
- name: Payments
description: >
A payment can be related to an order, swap, return, or more. It can be
captured or refunded.
- name: Payment Collections - name: Payment Collections
description: > description: >
A payment collection is useful for managing additional payments, such as A payment collection is useful for managing additional payments, such as
for Order Edits, or installment payments. for Order Edits, or installment payments.
- name: Payments
description: >
A payment can be related to an order, swap, return, or more. It can be
captured or refunded.
- name: Price Lists - name: Price Lists
description: > description: >
A price list are special prices applied to products based on a set of A price list are special prices applied to products based on a set of
@@ -157,14 +157,6 @@ tags:
externalDocs: externalDocs:
description: How to manage price lists description: How to manage price lists
url: https://docs.medusajs.com/modules/price-lists/admin/manage-price-lists url: https://docs.medusajs.com/modules/price-lists/admin/manage-price-lists
- name: Products
description: >
Products are saleable items in a store. This also includes [saleable gift
cards](https://docs.medusajs.com/modules/gift-cards/admin/manage-gift-cards#manage-gift-card-product)
in a store.
externalDocs:
description: How to manage products
url: https://docs.medusajs.com/modules/products/admin/manage-products
- name: Product Categories - name: Product Categories
description: > description: >
Products can be categoriezed into categories. A product can be added into Products can be categoriezed into categories. A product can be added into
@@ -203,6 +195,14 @@ tags:
description: How to manage product variants description: How to manage product variants
url: >- url: >-
https://docs.medusajs.com/modules/products/admin/manage-products#manage-product-variants https://docs.medusajs.com/modules/products/admin/manage-products#manage-product-variants
- name: Products
description: >
Products are saleable items in a store. This also includes [saleable gift
cards](https://docs.medusajs.com/modules/gift-cards/admin/manage-gift-cards#manage-gift-card-product)
in a store.
externalDocs:
description: How to manage products
url: https://docs.medusajs.com/modules/products/admin/manage-products
- name: Publishable API Keys - name: Publishable API Keys
description: > description: >
Publishable API Keys can be used to scope Store API calls with an API key, Publishable API Keys can be used to scope Store API calls with an API key,
@@ -221,6 +221,16 @@ tags:
description: How to manage publishable API keys description: How to manage publishable API keys
url: >- url: >-
https://docs.medusajs.com/development/publishable-api-keys/admin/manage-publishable-api-keys https://docs.medusajs.com/development/publishable-api-keys/admin/manage-publishable-api-keys
- name: Regions
description: >
Regions are different countries or geographical regions that the commerce
store serves customers in.
Admins can manage these regions, their providers, and more.
externalDocs:
description: How to manage regions
url: >-
https://docs.medusajs.com/modules/regions-and-currencies/admin/manage-regions
- name: Reservations - name: Reservations
description: > description: >
Reservations, provided by the [Inventory Reservations, provided by the [Inventory
@@ -234,16 +244,6 @@ tags:
description: How to manage item allocations in orders description: How to manage item allocations in orders
url: >- url: >-
https://docs.medusajs.com/modules/multiwarehouse/admin/manage-item-allocations-in-orders https://docs.medusajs.com/modules/multiwarehouse/admin/manage-item-allocations-in-orders
- name: Regions
description: >
Regions are different countries or geographical regions that the commerce
store serves customers in.
Admins can manage these regions, their providers, and more.
externalDocs:
description: How to manage regions
url: >-
https://docs.medusajs.com/modules/regions-and-currencies/admin/manage-regions
- name: Return Reasons - name: Return Reasons
description: > description: >
Return reasons are key-value pairs that are used to specify why an order Return reasons are key-value pairs that are used to specify why an order
@@ -34,6 +34,11 @@ get:
description: a term to search collections by their title or handle. description: a term to search collections by their title or handle.
schema: schema:
type: string type: string
- in: query
name: order
description: A field to sort-order the retrieved collections by.
schema:
type: string
- in: query - in: query
name: discount_condition_id name: discount_condition_id
description: Filter collections by a discount condition ID associated with them. description: Filter collections by a discount condition ID associated with them.
@@ -125,6 +125,13 @@ get:
customer groups. customer groups.
schema: schema:
type: string type: string
- in: query
name: fields
description: >-
Comma-separated fields that should be included in the returned customer
groups.
schema:
type: string
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetCustomerGroupsParams queryParams: AdminGetCustomerGroupsParams
@@ -22,7 +22,14 @@ get:
name: expand name: expand
description: >- description: >-
Comma-separated relations that should be expanded in the returned Comma-separated relations that should be expanded in the returned
customer. customers.
schema:
type: string
- in: query
name: fields
description: >-
Comma-separated fields that should be included in the returned
customers.
schema: schema:
type: string type: string
- in: query - in: query
@@ -30,6 +37,16 @@ get:
description: term to search customers' email, first_name, and last_name fields. description: term to search customers' email, first_name, and last_name fields.
schema: schema:
type: string type: string
- in: query
name: has_account
description: Filter customers by whether they have an account.
schema:
type: boolean
- in: query
name: order
description: A field to sort-order the retrieved customers by.
schema:
type: string
- in: query - in: query
name: groups name: groups
style: form style: form
@@ -39,6 +56,50 @@ get:
type: array type: array
items: items:
type: string type: string
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetCustomersParams queryParams: AdminGetCustomersParams
@@ -59,6 +59,55 @@ get:
discount. discount.
schema: schema:
type: string type: string
- in: query
name: order
description: A discount field to sort-order the retrieved discounts by.
schema:
type: string
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetDiscountsParams queryParams: AdminGetDiscountsParams
@@ -25,6 +25,77 @@ get:
order's cart order's cart
schema: schema:
type: string type: string
- in: query
name: order
description: Field to sort retrieved draft orders by.
schema:
type: string
- in: query
name: expand
description: A comma-separated list of fields to expand.
schema:
type: string
- in: query
name: fields
description: A comma-separated list of fields to include in the response.
schema:
type: string
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: status
style: form
explode: false
description: Filter by status
schema:
type: array
items:
type: string
enum:
- open
- completed
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetDraftOrdersParams queryParams: AdminGetDraftOrdersParams
@@ -23,6 +23,11 @@ get:
description: a term to search gift cards' code or display ID description: a term to search gift cards' code or display ID
schema: schema:
type: string type: string
- in: query
name: order
description: A gift card field to sort-order the retrieved gift cards by.
schema:
type: string
x-codegen: x-codegen:
method: list method: list
queryParams: AdminGetGiftCardsParams queryParams: AdminGetGiftCardsParams
@@ -40,6 +40,11 @@ get:
description: term to search inventory item's sku, title, and description. description: term to search inventory item's sku, title, and description.
schema: schema:
type: string type: string
- in: query
name: order
description: Field to sort-order inventory items by.
schema:
type: string
- in: query - in: query
name: location_id name: location_id
style: form style: form
@@ -217,7 +217,7 @@ get:
type: string type: string
- in: query - in: query
name: order name: order
description: A order field to sort-order the retrieved orders by. description: Field to sort retrieved orders by.
schema: schema:
type: string type: string
x-codegen: x-codegen:
@@ -21,9 +21,17 @@ get:
type: string type: string
- in: query - in: query
name: id name: id
description: Filter by product ID style: form
explode: false
description: Filter by product IDs.
schema: schema:
type: string oneOf:
- type: string
description: ID of the product.
- type: array
items:
type: string
description: ID of a product.
- in: query - in: query
name: status name: status
description: Filter by product status description: Filter by product status
@@ -79,7 +87,7 @@ get:
name: is_giftcard name: is_giftcard
description: A boolean value to filter by whether the product is a gift card or not. description: A boolean value to filter by whether the product is a gift card or not.
schema: schema:
type: string type: boolean
- in: query - in: query
name: type name: type
description: Filter product type. description: Filter product type.
@@ -4,11 +4,6 @@ get:
description: > description: >
Retrieve a list of Product Variants associated with a Product. The variants Retrieve a list of Product Variants associated with a Product. The variants
can be paginated. can be paginated.
By default, each variant will only have the `id` and `variant_id` fields.
You can use the `expand` and `fields` request parameters to retrieve more
fields or relations.
x-authenticated: true x-authenticated: true
parameters: parameters:
- in: path - in: path
@@ -17,6 +12,11 @@ get:
description: ID of the product. description: ID of the product.
schema: schema:
type: string type: string
- in: query
name: id
description: IDs to filter product variants by.
schema:
type: string
- in: query - in: query
name: fields name: fields
description: >- description: >-
@@ -45,6 +45,74 @@ get:
schema: schema:
type: integer type: integer
default: 100 default: 100
- in: query
name: q
description: Search term to search product variants' title, sku, and products' title.
schema:
type: string
- in: query
name: order
description: >-
The field to sort the data by. By default, the sort order is ascending.
To change the order to descending, prefix the field name with `-`.
schema:
type: string
- in: query
name: manage_inventory
description: Filter product variants by whether their inventory is managed or not.
schema:
type: boolean
- in: query
name: allow_backorder
description: >-
Filter product variants by whether they are allowed to be backordered or
not.
schema:
type: boolean
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
x-codegen: x-codegen:
method: listVariants method: listVariants
queryParams: AdminGetProductsVariantsParams queryParams: AdminGetProductsVariantsParams
@@ -40,6 +40,80 @@ get:
publishable API keys. publishable API keys.
schema: schema:
type: string type: string
- in: query
name: order
description: A field to sort-order the retrieved publishable API keys by.
schema:
type: string
- in: query
name: created_at
required: false
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
required: false
description: Filter by a update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: revoked_at
required: false
description: Filter by a revocation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
x-codegen: x-codegen:
method: list method: list
queryParams: GetPublishableApiKeysParams queryParams: GetPublishableApiKeysParams
@@ -27,6 +27,72 @@ get:
description: Filter by code. description: Filter by code.
schema: schema:
type: string type: string
- in: query
name: created_at
description: Filter by a creation date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: updated_at
description: Filter by an update date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query
name: deleted_at
description: Filter by a deletion date range.
schema:
type: object
properties:
lt:
type: string
description: filter by dates less than this date
format: date
gt:
type: string
description: filter by dates greater than this date
format: date
lte:
type: string
description: filter by dates less than or equal to this date
format: date
gte:
type: string
description: filter by dates greater than or equal to this date
format: date
- in: query - in: query
name: rate name: rate
style: form style: form
@@ -49,6 +115,16 @@ get:
gte: gte:
type: number type: number
description: filter by rates greater than or equal to this number description: filter by rates greater than or equal to this number
- in: query
name: q
description: Term used to search tax rates by name.
schema:
type: string
- in: query
name: order
description: A tax rate field to sort-order the retrieved tax rates by.
schema:
type: string
- in: query - in: query
name: offset name: offset
description: The number of tax rates to skip when retrieving the tax rates. description: The number of tax rates to skip when retrieving the tax rates.