medusa_client library

Classes

AdditionalItem
Address
AddressCreatePayload
AddressPayload
AdminAppsListRes
AdminAppsRes
AdminAuthRes
AdminBatchJobListRes
AdminBatchJobRes
AdminBearerAuthRes
AdminCollectionsDeleteRes
AdminCollectionsListRes
AdminCollectionsRes
AdminCreateUserRequest
AdminCurrenciesListRes
AdminCurrenciesRes
AdminCustomerGroupsDeleteRes
AdminCustomerGroupsListRes
AdminCustomerGroupsRes
AdminCustomersListRes
AdminCustomersRes
AdminDeleteCustomerGroupsGroupCustomerBatchReq
AdminDeleteDiscountsDiscountConditionsConditionBatchReq
AdminDeleteDiscountsDiscountConditionsConditionParams
AdminDeletePriceListPricesPricesReq
AdminDeletePriceListsPriceListProductsPricesBatchReq
AdminDeleteProductCategoriesCategoryProductsBatchParams
AdminDeleteProductCategoriesCategoryProductsBatchReq
AdminDeleteProductsFromCollectionReq
AdminDeleteProductsFromCollectionRes
AdminDeletePublishableApiKeySalesChannelsBatchReq
AdminDeleteSalesChannelsChannelProductsBatchReq
AdminDeleteSalesChannelsChannelStockLocationsReq
AdminDeleteShippingProfileRes
AdminDeleteTaxRatesTaxRateProductsParams
AdminDeleteTaxRatesTaxRateProductsReq
AdminDeleteTaxRatesTaxRateProductTypesParams
AdminDeleteTaxRatesTaxRateProductTypesReq
AdminDeleteTaxRatesTaxRateShippingOptionsParams
AdminDeleteTaxRatesTaxRateShippingOptionsReq
AdminDeleteUploadsReq
AdminDeleteUploadsRes
AdminDeleteUserRes
AdminDiscountConditionsDeleteRes
AdminDiscountConditionsRes
AdminDiscountsDeleteRes
AdminDiscountsListRes
AdminDiscountsRes
AdminDraftOrdersDeleteRes
AdminDraftOrdersListRes
AdminDraftOrdersRes
AdminExtendedStoresRes
AdminGetBatchParams
AdminGetCollectionsParams
AdminGetCurrenciesParams
AdminGetCustomerGroupsGroupParams
AdminGetCustomerGroupsParams
AdminGetCustomersParams
AdminGetDiscountParams
AdminGetDiscountsDiscountCodeParams
AdminGetDiscountsDiscountConditionsConditionParams
AdminGetDiscountsParams
AdminGetDraftOrdersParams
AdminGetGiftCardsParams
AdminGetGroupsGroupCustomersParams
AdminGetInventoryItemsItemLocationLevelsParams
AdminGetInventoryItemsItemParams
AdminGetInventoryItemsParams
AdminGetNotesParams
AdminGetNotificationsParams
AdminGetOrdersOrderParams
AdminGetOrdersParams
AdminGetPaymentCollectionsParams
AdminGetPriceListPaginationParams
AdminGetPriceListsPriceListProductsParams
AdminGetProductCategoriesParams
AdminGetProductCategoryParams
AdminGetProductsParams
AdminGetProductsVariantsParams
AdminGetProductTagsParams
AdminGetProductTypesParams
AdminGetRegionsParams
AdminGetRegionsRegionFulfillmentOptionsRes
AdminGetReservationsParams
AdminGetReturnsParams
AdminGetSalesChannelsParams
AdminGetShippingOptionsParams
AdminGetStockLocationsLocationParams
AdminGetStockLocationsParams
AdminGetSwapsParams
AdminGetTaxRatesParams
AdminGetTaxRatesTaxRateParams
AdminGetUsersParams
AdminGetVariantParams
AdminGetVariantsParams
AdminGetVariantsVariantInventoryRes
AdminGiftCardsDeleteRes
AdminGiftCardsListRes
AdminGiftCardsRes
AdminInventoryItemsDeleteRes
AdminInventoryItemsListRes
AdminInventoryItemsListWithVariantsAndLocationLevelsRes
AdminInventoryItemsLocationLevelsRes
AdminInventoryItemsRes
AdminInviteDeleteRes
AdminListInvitesRes
AdminNotesDeleteRes
AdminNotesListRes
AdminNotesRes
AdminNotificationsListRes
AdminNotificationsRes
AdminOrderEditDeleteRes
AdminOrderEditItemChangeDeleteRes
AdminOrderEditsListRes
AdminOrderEditsRes
AdminOrdersListRes
AdminOrdersOrderLineItemReservationReq
AdminOrdersRes
AdminPaymentCollectionDeleteRes
AdminPaymentCollectionsRes
AdminPaymentRes
AdminPostAppsReq
AdminPostAuthReq
AdminPostBatchesReq
AdminPostCollectionsCollectionReq
AdminPostCollectionsReq
AdminPostCurrenciesCurrencyReq
AdminPostCustomerGroupsGroupCustomersBatchReq
AdminPostCustomerGroupsGroupReq
AdminPostCustomerGroupsReq
AdminPostCustomersCustomerReq
AdminPostCustomersReq
AdminPostDiscountsDiscountConditionsConditionBatchParams
AdminPostDiscountsDiscountConditionsConditionBatchReq
AdminPostDiscountsDiscountConditionsConditionParams
AdminPostDiscountsDiscountConditionsParams
AdminPostDiscountsDiscountDynamicCodesReq
AdminPostDiscountsDiscountParams
AdminPostDiscountsDiscountReq
AdminPostDiscountsParams
AdminPostDiscountsReq
AdminPostDraftOrdersDraftOrderLineItemsItemReq
AdminPostDraftOrdersDraftOrderLineItemsReq
AdminPostDraftOrdersDraftOrderRegisterPaymentRes
AdminPostDraftOrdersDraftOrderReq
AdminPostDraftOrdersReq
AdminPostGiftCardsGiftCardReq
AdminPostGiftCardsReq
AdminPostInventoryItemsInventoryItemParams
AdminPostInventoryItemsInventoryItemReq
AdminPostInventoryItemsItemLocationLevelsLevelParams
AdminPostInventoryItemsItemLocationLevelsLevelReq
AdminPostInventoryItemsItemLocationLevelsParams
AdminPostInventoryItemsItemLocationLevelsReq
AdminPostInventoryItemsParams
AdminPostInventoryItemsReq
AdminPostInvitesInviteAcceptReq
AdminPostInvitesReq
AdminPostNotesNoteReq
AdminPostNotesReq
AdminPostNotificationsNotificationResendReq
AdminPostOrderEditsEditLineItemsLineItemReq
AdminPostOrderEditsEditLineItemsReq
AdminPostOrderEditsOrderEditReq
AdminPostOrderEditsReq
AdminPostOrdersOrderClaimsClaimFulfillmentsReq
AdminPostOrdersOrderClaimsClaimReq
AdminPostOrdersOrderClaimsClaimShipmentsReq
AdminPostOrdersOrderClaimsReq
AdminPostOrdersOrderFulfillmentsReq
AdminPostOrdersOrderRefundsReq
AdminPostOrdersOrderReq
AdminPostOrdersOrderReturnsReq
AdminPostOrdersOrderShipmentReq
AdminPostOrdersOrderShippingMethodsReq
AdminPostOrdersOrderSwapsParams
AdminPostOrdersOrderSwapsReq
AdminPostOrdersOrderSwapsSwapFulfillmentsReq
AdminPostOrdersOrderSwapsSwapShipmentsReq
AdminPostPaymentRefundsReq
AdminPostPriceListPricesPricesReq
AdminPostPriceListsPriceListPriceListReq
AdminPostPriceListsPriceListReq
AdminPostProductCategoriesCategoryParams
AdminPostProductCategoriesCategoryProductsBatchParams
AdminPostProductCategoriesCategoryProductsBatchReq
AdminPostProductCategoriesCategoryReq
AdminPostProductCategoriesParams
AdminPostProductCategoriesReq
AdminPostProductsProductMetadataReq
AdminPostProductsProductOptionsReq
AdminPostProductsProductReq
AdminPostProductsProductReqSalesChannel
AdminPostProductsProductReqTag
AdminPostProductsProductReqType
AdminPostProductsProductReqVariant
AdminPostProductsProductVariantsReq
AdminPostProductsProductVariantsVariantReq
AdminPostProductsReq
AdminPostProductsReqCategory
AdminPostProductsReqOption
AdminPostProductsReqSalesChannel
AdminPostProductsReqTag
AdminPostProductsReqType
AdminPostProductsReqVariant
AdminPostProductsToCollectionReq
AdminPostPublishableApiKeySalesChannelsBatchReq
AdminPostPublishableApiKeysPublishableApiKeyReq
AdminPostPublishableApiKeysReq
AdminPostRegionsRegionCountriesReq
AdminPostRegionsRegionFulfillmentProvidersReq
AdminPostRegionsRegionPaymentProvidersReq
AdminPostRegionsRegionReq
AdminPostRegionsReq
AdminPostReservationsReq
AdminPostReservationsReservationReq
AdminPostReturnReasonsReasonReq
AdminPostReturnReasonsReq
AdminPostReturnsReturnReceiveReq
AdminPostSalesChannelsChannelProductsBatchReq
AdminPostSalesChannelsChannelStockLocationsReq
AdminPostSalesChannelsReq
AdminPostSalesChannelsSalesChannelReq
AdminPostShippingOptionsOptionReq
TODO: Check requirements type and move to separate file
AdminPostShippingOptionsReq
AdminPostShippingProfilesProfileReq
AdminPostShippingProfilesReq
AdminPostStockLocationsLocationReq
AdminPostStockLocationsReq
AdminPostStoreReq
AdminPostTaxRatesParams
AdminPostTaxRatesReq
AdminPostTaxRatesTaxRateParams
AdminPostTaxRatesTaxRateProductsParams
AdminPostTaxRatesTaxRateProductsReq
AdminPostTaxRatesTaxRateProductTypesParams
AdminPostTaxRatesTaxRateProductTypesReq
AdminPostTaxRatesTaxRateReq
AdminPostTaxRatesTaxRateShippingOptionsParams
AdminPostTaxRatesTaxRateShippingOptionsReq
AdminPostUploadsDownloadUrlReq
AdminPriceListDeleteBatchRes
AdminPriceListDeleteProductPricesRes
AdminPriceListDeleteRes
AdminPriceListDeleteVariantPricesRes
AdminPriceListRes
AdminPriceListsListRes
AdminPriceListsProductsListRes
AdminProductCategoriesCategoryDeleteRes
AdminProductCategoriesCategoryRes
AdminProductCategoriesListRes
AdminProductsDeleteOptionRes
AdminProductsDeleteRes
AdminProductsDeleteVariantRes
AdminProductsListRes
AdminProductsListTagsRes
AdminProductsListTypesRes
AdminProductsListVariantsRes
AdminProductsRes
AdminProductTagsListRes
AdminProductTypesListRes
AdminPublishableApiKeyDeleteRes
AdminPublishableApiKeysListRes
AdminPublishableApiKeysListSalesChannelsRes
AdminPublishableApiKeysRes
AdminRefundRes
AdminRegionsDeleteRes
AdminRegionsListRes
AdminRegionsRes
AdminReservationsDeleteRes
AdminReservationsListRes
AdminReservationsRes
AdminResetPasswordRequest
AdminResetPasswordTokenRequest
AdminReturnReasonsDeleteRes
AdminReturnReasonsListRes
AdminReturnReasonsRes
AdminReturnsCancelRes
AdminReturnsListRes
AdminReturnsRes
AdminSalesChannelsDeleteLocationRes
AdminSalesChannelsDeleteRes
AdminSalesChannelsListRes
AdminSalesChannelsRes
AdminShippingOptionsDeleteRes
AdminShippingOptionsListRes
AdminShippingOptionsRes
AdminShippingProfilesListRes
AdminShippingProfilesRes
AdminStockLocationsDeleteRes
AdminStockLocationsListRes
AdminStockLocationsRes
AdminStoresRes
AdminSwapsListRes
AdminSwapsRes
AdminTaxRatesDeleteRes
AdminTaxRatesListRes
AdminTaxRatesRes
AdminUpdatePaymentCollectionsReq
AdminUpdateUserRequest
AdminUploadsDownloadUrlRes
AdminUploadsRes
AdminUserRes
AdminUsersListRes
AdminVariantsListRes
AdminVariantsRes
BatchJob
Cart
CartItem
ClaimImage
The details of an image attached to a claim.
ClaimItem
A claim item is an item created as part of a claim. It references an item in the order that should be exchanged or refunded.
ClaimOrder
Configuration
The configuration for the API client
Country
Country details
CreatedAtFilter
CreatedAtParams
CreatedAtRange
Currency
Currency
Customer
A customer can make purchases in your store and manage their profile.
CustomerGroup
A customer group that can be used to organize customers into groups of similar traits.
CustomShippingOption
DateFilter
DateRange
DecoratedInventoryItemDTO
DeletedAtFilter
Discount
A discount can be applied to a cart for promotional purposes.
DiscountCondition
Holds rule conditions for when a discount is applicable
DiscountConditionCustomerGroup
Associates a discount condition with a customer group
DiscountConditionProduct
This represents the association between a discount condition and a product
DiscountConditionProductCollection
This represents the association between a discount condition and a product collection
DiscountConditionProductType
This represents the association between a discount condition and a product type
DiscountRule
DiscountRuleConditionPayload
DiscountRulePayload
DraftOrder
A draft order is created by an admin without direct involvement of the customer. Once its payment is marked as captured, it is transformed into an order.
Error
ExtendedReservationItem
ExtendedStoreDTO
FeatureFlag
FeatureFlagsResponse
Fulfillment
FulfillmentItem
This represents the association between a Line Item and a Fulfillment.
FulfillmentOption
FulfillmentProvider
A fulfillment provider represents a fulfillment service installed in the Medusa backend, either through a plugin or backend customizations. It holds the fulfillment service's installation status.
GetOrderEditsOrderEditParams
GetOrderEditsParams
GetPaymentsParams
GetPublishableApiKeySalesChannelsParams
GetPublishableApiKeysParams
GiftCard
Gift Cards are redeemable and represent a value that can be used towards the payment of an Order.
GiftCardTransaction
Gift Card Transactions are created once a Customer uses a Gift Card to pay for their Order.
IdempotencyKey
Idempotency Key is used to continue a process in case of any failure that might occur.
Image
An Image is used to store details about uploaded images. Images are uploaded by the File Service, and the URL is provided by the File Service.
InventoryItem
InventoryItemDTO
InventoryLevel
InventoryLevelDTO
InventoryQuantity
Invite
An invite is created when an admin user invites a new user to join the store's team. Once the invite is accepted, it's deleted.
LineItem
Line Items are created when a product is added to a Cart. When Line Items are purchased they will get copied to the resulting order, swap, or claim, and can eventually be referenced in Fulfillments and Returns. Line items may also be used for order edits.
LineItemAdjustment
A Line Item Adjustment includes details on discounts applied on a line item.
LineItemTaxLine
A Line Item Tax Line represents the taxes applied on a line item.
LocationLevel
Medusa
The main class for the Medusa API client
Module
ModulesResponse
MoneyAmount
MultipleErrors
Note
A Note is an element that can be used in association with different resources to allow admin users to describe additional information. For example, they can be used to add additional information about orders.
Notification
A notification is an alert sent, typically to customers, using the installed Notification Provider as a reaction to internal events such as order.placed. Notifications can be resent.
NotificationProvider
A notification provider represents a notification service installed in the Medusa backend, either through a plugin or backend customizations. It holds the notification service's installation status.
OAuth
An Oauth app is typically created by a plugin to handle authentication to third-party services.
Order
An order is a purchase made by a customer. It holds details about payment and fulfillment of the order. An order may also be created from a draft order, which is created by an admin user.
OrderEdit
OrderItemChange
An order item change is a change made within an order edit to an order's items. These changes are not reflected on the original order until the order edit is confirmed.
Payment
A payment is originally created from a payment session. Once a payment session is authorized, the payment is created to represent the authorized amount with a given payment method. Payments can be captured, canceled or refunded. Payments can be made towards orders, swaps, order edits, or other resources.
PaymentCollection
A payment collection allows grouping and managing a list of payments at one. This can be helpful when making additional payment for order edits or integrating installment payments.
PaymentMethod
PaymentProvider
A payment provider represents a payment service installed in the Medusa backend, either through a plugin or backend customizations. It holds the payment service's installation status.
PaymentSession
Price
PricedProduct
PricedShippingOption
PricedShippingOptionTaxRate
PricedVariant
PriceList
Product
A product is a saleable item that holds general information such as name or description. It must include at least one Product Variant, where each product variant defines different options to purchase the product with (for example, different sizes or colors). The prices and inventory of the product are defined on the variant level.
ProductCategory
A product category can be used to categorize products into a hierarchy of categories.
ProductCollection
A Product Collection allows grouping together products for promotional purposes. For example, an admin can create a Summer collection, add products to it, and showcase it on the storefront.
ProductOption
A Product Option defines properties that may vary between different variants of a Product. Common Product Options are "Size" and "Color". Admins are free to create any product options.
ProductOptionValue
An option value is one of the possible values of a Product Option. Product Variants specify a unique combination of product option values.
ProductTaxRate
This represents the association between a tax rate and a product to indicate that the product is taxed in a way different than the default.
ProductType
A Product Type can be added to Products for filtering and reporting purposes.
ProductTypeTaxRate
This represents the association between a tax rate and a product type to indicate that the product type is taxed in a different way than the default.
ProductVariant
A Product Variant represents a Product with a specific set of Product Option configurations. The maximum number of Product Variants that a Product can have is given by the number of available Product Option combinations. A product must at least have one product variant.
ProductVariantInventoryItem
A Product Variant Inventory Item links variants with inventory items and denotes the required quantity of the variant.
ProductVariantOption
PublishableApiKey
A Publishable API key defines scopes that resources are available in. Then, it can be used in request to infer the resources without having to directly pass them. For example, a publishable API key can be associated with one or more sales channels. Then, when the publishable API key is passed in the header of a request, it is inferred what sales channel is being used without having to pass the sales channel as a query or body parameter of the request. Publishable API keys can only be used with sales channels, at the moment.
PublishableApiKeySalesChannel
This represents the association between the Publishable API keys and Sales Channels
QuantityFilter
Refund
A refund represents an amount of money transferred back to the customer for a given reason. Refunds may occur in relation to Returns, Swaps, and Claims, but can also be initiated by an admin for an order.
Region
Requirement
Requirements
ReservationDescriptionFilter
ReservationItemDTO
ResponseInventoryItem
Return
A Return holds information about Line Items that a Customer wishes to send back, along with how the items will be returned. Returns can also be used as part of a Swap or a Claim.
ReturnItem
A return item represents a line item in an order that is to be returned. It includes details related to the return and the reason behind it.
ReturnReason
A Return Reason is a value defined by an admin. It can be used on Return Items in order to indicate why a Line Item was returned.
RevokedAtRange
Rule
SalesChannel
A Sales Channel is a method a business offers its products for purchase for the customers. For example, a Webshop can be a sales channel, and a mobile app can be another.
SalesChannelAvailability
SalesChannelLocation
This represents the association between a sales channel and a stock locations.
Session
ShippingMethod
A Shipping Method represents a way in which an Order or Return can be shipped. Shipping Methods are created from a Shipping Option, but may contain additional details that can be necessary for the Fulfillment Provider to handle the shipment. If the shipping method is created for a return, it may be associated with a claim or a swap that the return is
ShippingMethodTaxLine
A Shipping Method Tax Line represents the taxes applied on a shipping method in a cart.
ShippingOption
ShippingOptionRequirement
A shipping option requirement defines conditions that a Cart must satisfy for the Shipping Option to be available for usage in the Cart.
ShippingProfile
A Shipping Profile has a set of defined Shipping Options that can be used to fulfill a given set of Products. For example, gift cards are shipped differently than physical products, so a shipping profile with the type gift_card groups together the shipping options that can only be used for gift cards.
ShippingTaxRate
This represents the tax rates applied on a shipping option.
StagedJob
A staged job resource
StockLocationAddressDTO
StockLocationAddressInput
StockLocationDTO
StockLocationExpandedDTO
Store
A store holds the main settings of the commerce shop. By default, only one store is created and used within the Medusa backend. It holds settings related to the name of the store, available currencies, and more.
StoreAuthRes
StoreBearerAuthRes
StoreCartShippingOptionsListRes
StoreCartsRes
StoreCollectionsListRes
StoreCollectionsRes
StoreCompleteCartRes
StoreCustomersListOrdersRes
StoreCustomersListPaymentMethodsRes
StoreCustomersRes
StoreCustomersResetPasswordRes
StoreGetAuthEmailRes
StoreGetCollectionsParams
StoreGetCustomersCustomerOrdersParams
StoreGetOrdersParams
StoreGetPaymentCollectionsParams
StoreGetProductCategoriesCategoryParams
StoreGetProductCategoriesCategoryRes
StoreGetProductCategoriesParams
StoreGetProductCategoriesRes
StoreGetProductsParams
StoreGetProductsProductParams
StoreGetProductTagsParams
StoreGetProductTypesParams
StoreGetRegionsParams
StoreGetShippingOptionsParams
StoreGetVariantsParams
StoreGetVariantsVariantParams
StoreGiftCardsRes
StoreOrderEditsRes
StoreOrdersRes
StorePaymentCollectionSessionsReq
StorePaymentCollectionsRes
StorePaymentCollectionsSessionRes
StorePostAuthReq
StorePostCartReq
StorePostCartsCartLineItemsItemReq
StorePostCartsCartLineItemsReq
StorePostCartsCartPaymentSessionReq
StorePostCartsCartPaymentSessionUpdateReq
StorePostCartsCartReq
StorePostCartsCartShippingMethodReq
StorePostCustomersCustomerAcceptClaimReq
StorePostCustomersCustomerAddressesAddressReq
StorePostCustomersCustomerAddressesReq
StorePostCustomersCustomerOrderClaimReq
StorePostCustomersCustomerPasswordTokenReq
StorePostCustomersCustomerReq
StorePostCustomersReq
StorePostCustomersResetPasswordReq
StorePostPaymentCollectionsBatchSessionsAuthorizeReq
StorePostPaymentCollectionsBatchSessionsReq
StorePostReturnsReq
StorePostSearchReq
StorePostSearchRes
StorePostSwapsReq
StoreProductsListRes
StoreProductsRes
StoreProductTagsListRes
StoreProductTypesListRes
StoreRegionsListRes
StoreRegionsRes
StoreReturnReasonsListRes
StoreReturnReasonsRes
StoreReturnsRes
StoreShippingOptionsListRes
StoreSwapsRes
StoreVariantsListRes
StoreVariantsRes
Swap
Tag
TaxLine
A tax line represents the taxes amount applied to a line item.
TaxProvider
A tax provider represents a tax service installed in the Medusa backend, either through a plugin or backend customizations. It holds the tax service's installation status.
TaxRate
A Tax Rate can be used to define a custom rate to charge on specified products, product types, and shipping options within a given region.
A tracking link holds information about tracking numbers for a Fulfillment. Tracking Links can optionally contain a URL that can be visited to see the status of the shipment. Typically, the tracking link is provided from the third-party service integrated through the used fulfillment provider.
UpdatedAtFilter
UpdatedAtParams
UpdatedAtRange
Upload
User
A User is an administrator who can manage store settings and data.
VariantInventory
VariantPricePayload

Exceptions / Errors

MedusaException