main
Large file — syntax highlighting disabled.
| 1 | openapi: 3.0.0 |
| 2 | info: |
| 3 | version: 2.15.2 |
| 4 | title: Medusa Admin API |
| 5 | license: |
| 6 | name: MIT |
| 7 | url: https://github.com/medusajs/medusa/blob/develop/LICENSE |
| 8 | servers: |
| 9 | - url: http://localhost:9000 |
| 10 | - url: https://api.medusajs.com |
| 11 | tags: |
| 12 | - name: Api Keys |
| 13 | description: | |
| 14 | API keys can be used for authentication or resource-scoping. |
| 15 | |
| 16 | A secret API key can be used to authenticate admin users. A publishable API key can be used to scope client requests to one or more sales channels. |
| 17 | |
| 18 | These API routes allow admin users to manage both publishable and secret API keys. |
| 19 | externalDocs: |
| 20 | description: Learn more about the API Key Module |
| 21 | url: https://docs.medusajs.com/resources/commerce-modules/api-key |
| 22 | x-associatedSchema: |
| 23 | $ref: '#/components/schemas/AdminApiKey' |
| 24 | - name: Auth |
| 25 | description: | |
| 26 | Auth API routes allow you to manage an admin user's authentication. |
| 27 | - name: Campaigns |
| 28 | description: | |
| 29 | A campaign is a group of promotions that have the same conditions, such as start and end dates. |
| 30 | |
| 31 | These API routes allow admin users to manage campaigns, their conditions, and promotions that belong to them. |
| 32 | externalDocs: |
| 33 | description: Learn more about campaigns. |
| 34 | url: https://docs.medusajs.com/resources/commerce-modules/promotion/campaign |
| 35 | x-associatedSchema: |
| 36 | $ref: '#/components/schemas/AdminCampaign' |
| 37 | - name: Claims |
| 38 | description: | |
| 39 | An admin creates a claim for an order when a customer reports that an item is defective or incorrect. |
| 40 | |
| 41 | Using these API routes, admin users manage order claims, their items, and more. |
| 42 | x-associatedSchema: |
| 43 | $ref: '#/components/schemas/AdminClaim' |
| 44 | externalDocs: |
| 45 | description: Learn more about order claims. |
| 46 | url: https://docs.medusajs.com/resources/commerce-modules/order/claim |
| 47 | - name: Collections |
| 48 | description: | |
| 49 | A product collection organizes products into a collection for marketing purposes. For example, a summer collection. |
| 50 | |
| 51 | These API routes allow admin users to manage collections and the products in them. |
| 52 | x-associatedSchema: |
| 53 | $ref: '#/components/schemas/AdminCollection' |
| 54 | - name: Currencies |
| 55 | description: | |
| 56 | A store can use unlimited currencies, and each region must be associated with at least one currency. |
| 57 | |
| 58 | Currencies are defined by the Currency Module. Currency API Routes allow admins to list and update currencies. |
| 59 | externalDocs: |
| 60 | description: Learn more about the Currency Module |
| 61 | url: https://docs.medusajs.com/resources/commerce-modules/currency |
| 62 | x-associatedSchema: |
| 63 | $ref: '#/components/schemas/AdminCurrency' |
| 64 | - name: Customer Groups |
| 65 | description: | |
| 66 | Customers can be organized into groups. These groups are useful for segregation and marketing purposes. |
| 67 | |
| 68 | For example, you can provide different prices for specific customers by creating a price list conditioned to their group. |
| 69 | |
| 70 | These API routes allow admin users to manage groups and the customers in them. |
| 71 | externalDocs: |
| 72 | description: Learn more about the Customer Module |
| 73 | url: https://docs.medusajs.com/resources/commerce-modules/customer |
| 74 | x-associatedSchema: |
| 75 | $ref: '#/components/schemas/AdminCustomerGroup' |
| 76 | - name: Customers |
| 77 | description: | |
| 78 | Customers can either be created when they register through the Store APIs, or created by the admin using the Admin APIs. |
| 79 | |
| 80 | These API routes allow admin users to manage customers in their store. |
| 81 | externalDocs: |
| 82 | description: Learn more about the Customer Module |
| 83 | url: https://docs.medusajs.com/resources/commerce-modules/customer |
| 84 | x-associatedSchema: |
| 85 | $ref: '#/components/schemas/AdminCustomer' |
| 86 | - name: Draft Orders |
| 87 | description: | |
| 88 | A draft order is an order created by the admin user. This is useful for orders created offline or from clients other than a storefront, such as a third-party integration. |
| 89 | |
| 90 | These API routes allow admin users to create and manage draft orders. |
| 91 | externalDocs: |
| 92 | description: Learn more about the Order Module |
| 93 | url: https://docs.medusajs.com/resources/commerce-modules/order |
| 94 | x-associatedSchema: |
| 95 | $ref: '#/components/schemas/AdminDraftOrder' |
| 96 | - name: Exchanges |
| 97 | description: | |
| 98 | An exchange is the replacement of an item that the customer ordered with another. |
| 99 | |
| 100 | These API routes allow admin users to create and manage exchanges. |
| 101 | externalDocs: |
| 102 | description: Learn more about the order exchanges. |
| 103 | url: https://docs.medusajs.com/resources/commerce-modules/order/exchange |
| 104 | x-associatedSchema: |
| 105 | $ref: '#/components/schemas/AdminExchange' |
| 106 | - name: Feature Flags |
| 107 | description: | |
| 108 | Feature flags are used to enable or disable certain features in your Medusa application. |
| 109 | These API routes allow admin users to view feature flags. |
| 110 | - name: Fulfillment Providers |
| 111 | description: | |
| 112 | A fulfillment provider is a third-party integration or custom logic used to fulfill an order's items. |
| 113 | |
| 114 | Fulfillment providers are installed as module providers. |
| 115 | externalDocs: |
| 116 | description: Learn more about the fulfillment providers and how to create them. |
| 117 | url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/fulfillment-provider |
| 118 | x-associatedSchema: |
| 119 | $ref: '#/components/schemas/AdminFulfillmentProvider' |
| 120 | - name: Fulfillment Sets |
| 121 | description: | |
| 122 | A fulfillment set is a general form or way of fulfillment, such as "shipping" or "pick up". |
| 123 | |
| 124 | All fulfillment-related configurations in a store are related to a fulfillment set. |
| 125 | |
| 126 | These API routes allow admin users to manage fulfillment sets. |
| 127 | externalDocs: |
| 128 | description: Learn more about fulfillment sets. |
| 129 | url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/concepts |
| 130 | x-associatedSchema: |
| 131 | $ref: '#/components/schemas/AdminFulfillmentSet' |
| 132 | - name: Fulfillments |
| 133 | description: | |
| 134 | A fulfillment is created for items in an order, return, exchanges, or claims to deliver items to/from the customer. |
| 135 | |
| 136 | These API routes allow admin users to manage fulfillments. |
| 137 | externalDocs: |
| 138 | description: Learn more about fulfillments. |
| 139 | url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/item-fulfillment |
| 140 | x-associatedSchema: |
| 141 | $ref: '#/components/schemas/AdminFulfillment' |
| 142 | - name: Gift Cards |
| 143 | description: | |
| 144 | A gift card is a prepaid card that can be used to pay for items during checkout. |
| 145 | Gift cards can be purchased by customers, or created by admin users. When a gift card is redeemed, its amount is added to the customer's store credit account, which can then be used to pay for items during checkout. |
| 146 | These API routes allow admin users to manage gift cards, transfer gift cards between customers, and more. |
| 147 | <Note> |
| 148 | Gift Card routes are only available through the [Loyalty Plugin](https://docs.medusajs.com/resources/commerce-modules/loyalty). |
| 149 | </Note> |
| 150 | x-associatedSchema: |
| 151 | $ref: '#/components/schemas/AdminGiftCard' |
| 152 | - name: Index |
| 153 | description: | |
| 154 | The Index Module is a tool to perform high-performance queries across modules, for example, to filter linked modules. |
| 155 | The Index Module is currently experimental and is hidden behind a feature flag. Learn more about it and how to enable it in the [Index Module guide](https://docs.medusajs.com/learn/fundamentals/module-links/index-module). |
| 156 | - name: Inventory Items |
| 157 | description: | |
| 158 | An inventory item is a stock-kept product whose inventory is managed. |
| 159 | |
| 160 | These API routes allow admin users to manage inventory items. |
| 161 | externalDocs: |
| 162 | description: Learn more about inventory items. |
| 163 | url: https://docs.medusajs.com/resources/commerce-modules/inventory/concepts |
| 164 | x-associatedSchema: |
| 165 | $ref: '#/components/schemas/AdminInventoryItem' |
| 166 | - name: Invites |
| 167 | description: | |
| 168 | An admin can invite new users to manage their team. This allows new users to authenticate as admins and perform admin functionalities. |
| 169 | |
| 170 | These API routes allow admin users to manage invites. |
| 171 | externalDocs: |
| 172 | description: Learn more about the User Module |
| 173 | url: https://docs.medusajs.com/resources/commerce-modules/user |
| 174 | x-associatedSchema: |
| 175 | $ref: '#/components/schemas/AdminInvite' |
| 176 | - name: Locales |
| 177 | description: | |
| 178 | A locale is a language that content is translated into for customers to view in a storefront. |
| 179 | Medusa installs locales by default. These API routes allow admin users to retrieve and view locales. |
| 180 | externalDocs: |
| 181 | description: Learn more about locales and translations. |
| 182 | url: https://docs.medusajs.com/resources/commerce-modules/translation/concepts |
| 183 | x-associatedSchema: |
| 184 | $ref: '#/components/schemas/AdminLocale' |
| 185 | - name: Notifications |
| 186 | description: | |
| 187 | A notification informs an admin user of store changes or status changes of background tasks. |
| 188 | |
| 189 | These API routes allow admin users to view and manage notifications. |
| 190 | x-associatedSchema: |
| 191 | $ref: '#/components/schemas/AdminNotification' |
| 192 | - name: Order Changes |
| 193 | description: | |
| 194 | An order change is a proposed change to an order, such as adding or removing items, changing shipping methods, and more. They can be associated with order edits, claims, or exchanges. |
| 195 | These API routes allow admin users to manage order changes. |
| 196 | externalDocs: |
| 197 | description: Learn more about order changes. |
| 198 | url: https://docs.medusajs.com/resources/commerce-modules/order/order-change |
| 199 | x-associatedSchema: |
| 200 | $ref: '#/components/schemas/AdminOrderChange' |
| 201 | - name: Order Edits |
| 202 | description: | |
| 203 | An order edit is a change to an order's details, such as items, shipping methods, and more. |
| 204 | |
| 205 | Changes made by an order edit are only applied on the order once they're confirmed. |
| 206 | |
| 207 | The order's previous version is retained due to versioning. |
| 208 | |
| 209 | These API routes allow admin users to make edits to an order and manage those edits. |
| 210 | externalDocs: |
| 211 | description: Learn more about the Order Module |
| 212 | url: https://docs.medusajs.com/resources/commerce-modules/order |
| 213 | - name: Orders |
| 214 | description: | |
| 215 | An order is a purchase made by a customer through a storefront. |
| 216 | |
| 217 | Orders can also originally be created as draft orders. |
| 218 | |
| 219 | These API routes allow admin users to view and manage orders. |
| 220 | externalDocs: |
| 221 | description: Learn more about the orders |
| 222 | url: https://docs.medusajs.com/resources/commerce-modules/order/concepts |
| 223 | x-associatedSchema: |
| 224 | $ref: '#/components/schemas/AdminOrder' |
| 225 | - name: Payment Collections |
| 226 | description: | |
| 227 | A payment collection is one or more payments of an order. They're also used for outstanding payments due to order exchanges or claims. |
| 228 | |
| 229 | Every purchase or request for payment starts with a payment collection. |
| 230 | |
| 231 | A payment collection holds the payment sessions used to authorize the payment amount, and the payments to be captured / refunded. |
| 232 | |
| 233 | These API routes allow admin users to manage payment collections. |
| 234 | externalDocs: |
| 235 | description: Learn more about payment collections. |
| 236 | url: https://docs.medusajs.com/resources/commerce-modules/payment/payment-collection |
| 237 | x-associatedSchema: |
| 238 | $ref: '#/components/schemas/AdminPaymentCollection' |
| 239 | - name: Payments |
| 240 | description: | |
| 241 | A payment is created when a payment amount is authorized. The payment can then be captured or refunded. |
| 242 | |
| 243 | A payment is created from the payment session that was authorized, and it belongs to the payment session's collection. |
| 244 | |
| 245 | These API routes allow admin users to manage payments. |
| 246 | externalDocs: |
| 247 | description: Learn more about payments. |
| 248 | url: https://docs.medusajs.com/resources/commerce-modules/payment/payment |
| 249 | x-associatedSchema: |
| 250 | $ref: '#/components/schemas/AdminPayment' |
| 251 | - name: Plugins |
| 252 | description: | |
| 253 | A plugin is a package of reusable Medusa customizations that you can install in any Medusa application. |
| 254 | Plugins can be used to add new functionality, such as wishlists, or integrate third-party services, such as payment providers. |
| 255 | These API routes allow admin users to retrieve plugins installed in their Medusa application. |
| 256 | externalDocs: |
| 257 | description: Learn more about plugins. |
| 258 | url: https://docs.medusajs.com/learn/fundamentals/plugins |
| 259 | x-associatedSchema: |
| 260 | $ref: '#/components/schemas/AdminPlugin' |
| 261 | - name: Price Lists |
| 262 | description: | |
| 263 | A price list is a group of prices applied if the specified conditions and rules are satisfied. |
| 264 | |
| 265 | Price lists are useful for sales or special prices for special conditions, such as applying prices for a set of customers. |
| 266 | |
| 267 | These API routes allow admin users to manage price lists. |
| 268 | externalDocs: |
| 269 | description: Learn more about price lists. |
| 270 | url: https://docs.medusajs.com/resources/commerce-modules/pricing/concepts#price-list |
| 271 | x-associatedSchema: |
| 272 | $ref: '#/components/schemas/AdminPriceList' |
| 273 | - name: Price Preferences |
| 274 | description: | |
| 275 | A price preference is used to specify whether tax-inclusiveness is enabled for a context, such as a region or currency code. |
| 276 | |
| 277 | These API routes allow admin users to manage whether a region or currency is tax inclusive. |
| 278 | externalDocs: |
| 279 | description: Learn more about tax-inclusiveness and the role of a price preference. |
| 280 | url: https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing |
| 281 | x-associatedSchema: |
| 282 | $ref: '#/components/schemas/AdminPricePreference' |
| 283 | - name: Product Categories |
| 284 | description: | |
| 285 | Products can be categorized into categories. |
| 286 | |
| 287 | Categories are nested and their heirarchy can be managed, giving admin users flexibility in how they categorize their products. |
| 288 | |
| 289 | These API routes allow admin users to manage categories and the products in them. |
| 290 | externalDocs: |
| 291 | description: Learn more about the Product Module |
| 292 | url: https://docs.medusajs.com/resources/commerce-modules/product |
| 293 | x-associatedSchema: |
| 294 | $ref: '#/components/schemas/AdminProductCategory' |
| 295 | - name: Product Tags |
| 296 | description: | |
| 297 | A tag is another way of organizing a product. Each tag has a name and a value. |
| 298 | |
| 299 | Products are organized into the same tag if they have the same value. |
| 300 | |
| 301 | These API routes allow admin users to manage product tags. |
| 302 | externalDocs: |
| 303 | description: Learn more about the Product Module |
| 304 | url: https://docs.medusajs.com/resources/commerce-modules/product |
| 305 | x-associatedSchema: |
| 306 | $ref: '#/components/schemas/AdminProductTag' |
| 307 | - name: Product Types |
| 308 | description: | |
| 309 | Products can be organized into types. Each type has a name and a value. |
| 310 | |
| 311 | Products are organized into the same type if they have the same value. |
| 312 | |
| 313 | These API routes allow admin users to manage product types. |
| 314 | externalDocs: |
| 315 | description: Learn more about the Product Module |
| 316 | url: https://docs.medusajs.com/resources/commerce-modules/product |
| 317 | x-associatedSchema: |
| 318 | $ref: '#/components/schemas/AdminProductType' |
| 319 | - name: Product Variants |
| 320 | description: | |
| 321 | A product variant is a saleable form of the product. |
| 322 | |
| 323 | Each variant has different option values. For example, a "Shirt" product may have a "Blue" variant and a "Green" variant. Customers choose from these variants when they buy the product. |
| 324 | |
| 325 | These API routes allow admin users to manage product variants. |
| 326 | externalDocs: |
| 327 | description: Learn more about the Product Module |
| 328 | url: https://docs.medusajs.com/resources/commerce-modules/product |
| 329 | x-associatedSchema: |
| 330 | $ref: '#/components/schemas/AdminProductVariant' |
| 331 | - name: Products |
| 332 | description: | |
| 333 | A product is a set of variants that the customer chooses from when making a purchase. |
| 334 | |
| 335 | A product can be organized into categories or collections. |
| 336 | |
| 337 | A product can have many options, and variants for each of these options' values. |
| 338 | |
| 339 | These API routes allow admin users to manage products. |
| 340 | externalDocs: |
| 341 | description: Learn more about the Product Module |
| 342 | url: https://docs.medusajs.com/resources/commerce-modules/product |
| 343 | x-associatedSchema: |
| 344 | $ref: '#/components/schemas/AdminProduct' |
| 345 | - name: Promotions |
| 346 | description: | |
| 347 | A promotion discounts an amount or percentage off a cart's items, shipping methods, or the entire order. |
| 348 | |
| 349 | Promotions have different types, such as a `standard` promotion that just discounts an amount, or a `buyget` promotion to enforce a "buy X get Y" promotion. |
| 350 | |
| 351 | A promotion has rules to restrict how and when they're applied. |
| 352 | |
| 353 | Promotions belong to a campaign, which sets conditions on the promotion such as when it starts and ends. |
| 354 | |
| 355 | These API routes allow admin users to manage promotions. |
| 356 | externalDocs: |
| 357 | description: Learn more about promotions. |
| 358 | url: https://docs.medusajs.com/resources/commerce-modules/promotion/concepts |
| 359 | x-associatedSchema: |
| 360 | $ref: '#/components/schemas/AdminPromotion' |
| 361 | - name: Property Labels |
| 362 | x-associatedSchema: |
| 363 | $ref: '#/components/schemas/AdminPropertyLabel' |
| 364 | - name: Refund Reasons |
| 365 | description: | |
| 366 | A refund reason is a possible reason used when issuing a refund to the customer, such as when returning an item and refunding the customer. |
| 367 | |
| 368 | These API routes allow admin users to manage refund reasons. |
| 369 | x-associatedSchema: |
| 370 | $ref: '#/components/schemas/AdminRefundReason' |
| 371 | - name: Regions |
| 372 | description: | |
| 373 | Regions are different countries or geographical regions that the commerce store serves customers in. |
| 374 | |
| 375 | These API routes allow admin users to manage regions, their providers, and more. |
| 376 | externalDocs: |
| 377 | description: Learn more about the Region Module. |
| 378 | url: https://docs.medusajs.com/resources/commerce-modules/region |
| 379 | x-associatedSchema: |
| 380 | $ref: '#/components/schemas/AdminRegion' |
| 381 | - name: Reservations |
| 382 | description: | |
| 383 | A reservation is unavailable quantity of an inventory item in a location. |
| 384 | |
| 385 | A reservation is created automatically for variants in an order whose `manage_inventory` is enabled. Admin users can also create reservations manually. |
| 386 | |
| 387 | These API routes allow admin users to manage reservations. |
| 388 | externalDocs: |
| 389 | description: Learn more about reservations and other inventory concepts. |
| 390 | url: https://docs.medusajs.com/resources/commerce-modules/inventory/concepts |
| 391 | x-associatedSchema: |
| 392 | $ref: '#/components/schemas/AdminReservation' |
| 393 | - name: Return Reasons |
| 394 | description: | |
| 395 | A return reason is a possible reason that an item is returned from the customer, such as when returning an item. |
| 396 | |
| 397 | These API routes allow admin users to manage return reasons. |
| 398 | x-associatedSchema: |
| 399 | $ref: '#/components/schemas/AdminReturnReason' |
| 400 | - name: Returns |
| 401 | description: | |
| 402 | Admin users create a return when a customer returns an item to them. |
| 403 | |
| 404 | Returns can also be created by customers through the storefront, and admins will be able to manage them and make refunds, if necessary. Refunds are made through the [Payment API Routes](#payment) |
| 405 | |
| 406 | These API routes allow admin users to manage returns. |
| 407 | externalDocs: |
| 408 | description: Learn more about order returns. |
| 409 | url: https://docs.medusajs.com/resources/commerce-modules/order/return |
| 410 | x-associatedSchema: |
| 411 | $ref: '#/components/schemas/AdminReturn' |
| 412 | - name: Sales Channels |
| 413 | description: | |
| 414 | A sales channel indicates a channel where products can be sold in. For example, a webshop or a mobile app. |
| 415 | |
| 416 | These API routes allow admins to manage sales channels and the products available in them. |
| 417 | externalDocs: |
| 418 | description: Learn more about the Sales Channel Module. |
| 419 | url: https://docs.medusajs.com/resources/commerce-modules/sales-channel |
| 420 | x-associatedSchema: |
| 421 | $ref: '#/components/schemas/AdminSalesChannel' |
| 422 | - name: Shipping Option Types |
| 423 | x-associatedSchema: |
| 424 | $ref: '#/components/schemas/AdminShippingOptionType' |
| 425 | description: | |
| 426 | Shipping option types define a group of shipping options with shared shipping characterstics. For example, you may have "Standard" and "Express" shipping option types. |
| 427 | These API routes allow admins to manage shipping option types. |
| 428 | externalDocs: |
| 429 | description: Learn more about shipping option types. |
| 430 | url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profiles-and-types |
| 431 | - name: Shipping Options |
| 432 | description: | |
| 433 | A shipping option is a way of shipping an item to or from the customer. |
| 434 | |
| 435 | Shipping options are associated with the fulfillment provider used to handle their fulfillment. |
| 436 | |
| 437 | Shipping options can be restricted geographically by service zones, and by custom rules, such as an item's weight or the customer's group. |
| 438 | |
| 439 | These API routes allow admins to manage shipping options. |
| 440 | externalDocs: |
| 441 | description: Learn more about shipping options. |
| 442 | url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option |
| 443 | x-associatedSchema: |
| 444 | $ref: '#/components/schemas/AdminShippingOption' |
| 445 | - name: Shipping Profiles |
| 446 | description: | |
| 447 | A shipping profile defines a type of items that are shipping in a similar manner. For example, digital products may have a `digital` shipping profile. |
| 448 | |
| 449 | These API routes allow admin users to manage shipping profiles. |
| 450 | externalDocs: |
| 451 | description: Learn more about shipping profiles and other fulfillment concepts. |
| 452 | url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/concepts#shipping-profile |
| 453 | x-associatedSchema: |
| 454 | $ref: '#/components/schemas/AdminShippingProfile' |
| 455 | - name: Stock Locations |
| 456 | description: | |
| 457 | A stock location is where stock-kept items (products) are kept. |
| 458 | |
| 459 | Stock locations are linked to fulfillment providers used to fulfill items from this location. |
| 460 | |
| 461 | A stock location is also link to a fulfillment set, indicating where an item is fulfilled from when an order is placed. |
| 462 | |
| 463 | These API routes allow admin users to manage stock locations and their linked data. |
| 464 | externalDocs: |
| 465 | description: Learn more about stock locations. |
| 466 | url: https://docs.medusajs.com/resources/commerce-modules/stock-location/concepts |
| 467 | x-associatedSchema: |
| 468 | $ref: '#/components/schemas/AdminStockLocation' |
| 469 | - name: Store Credit Accounts |
| 470 | description: | |
| 471 | A store credit account is a ledger of store credit transactions for a customer. They hold the customer's store credit balance, including their credit and debit amounts. |
| 472 | Store credit accounts allow you to build features that let customers pay for items using their store credit balance, such as gift cards or loyalty points. |
| 473 | These API routes allow admin users to manage store credit accounts, their transactions, and more. |
| 474 | <Note> |
| 475 | Store Credit Account routes are only available for Cloud users using the [Loyalty Plugin](https://docs.medusajs.com/cloud/loyalty-plugin). |
| 476 | </Note> |
| 477 | x-associatedSchema: |
| 478 | $ref: '#/components/schemas/AdminStoreCreditAccount' |
| 479 | - name: Stores |
| 480 | description: | |
| 481 | A store holds the main configuration and information of your commerce store, such as supported currencies or default sales channel. |
| 482 | |
| 483 | By default, the Medusa application has one default store. There are no API routes to create more stores. Instead, you'd have to handle that customization manually. |
| 484 | |
| 485 | These API routes allow admin users to manage their store. |
| 486 | externalDocs: |
| 487 | description: Learn more about the Store Module. |
| 488 | url: https://docs.medusajs.com/resources/commerce-modules/store |
| 489 | x-associatedSchema: |
| 490 | $ref: '#/components/schemas/AdminStore' |
| 491 | - name: Tax Providers |
| 492 | description: | |
| 493 | A tax provider is a third-party integration or custom logic used to calculate taxes for a cart or an order. |
| 494 | These API routes allow admin users to manage tax providers installed in their Medusa application. |
| 495 | externalDocs: |
| 496 | description: Learn more about the Tax Module Providers |
| 497 | url: https://docs.medusajs.com/resources/commerce-modules/tax/tax-provider |
| 498 | x-associatedSchema: |
| 499 | $ref: '#/components/schemas/AdminTaxProvider' |
| 500 | - name: Tax Rates |
| 501 | description: | |
| 502 | A tax rate is a percentage amount used to calculate the tax amount of each taxable item's price, such as line items or shipping methods. |
| 503 | |
| 504 | Each tax region has a default tax rate. You can create tax rates that override the default using tax rules. |
| 505 | |
| 506 | These API routes allow admin users to manage tax rates and their rules. |
| 507 | externalDocs: |
| 508 | description: Learn more about tax rates and rules. |
| 509 | url: https://docs.medusajs.com/resources/commerce-modules/tax/tax-rates-and-rules |
| 510 | x-associatedSchema: |
| 511 | $ref: '#/components/schemas/AdminTaxRate' |
| 512 | - name: Tax Regions |
| 513 | description: | |
| 514 | A tax region is a region's tax settings. It has tax rates and rules. So, after you create a region, you must create a tax region for it. |
| 515 | |
| 516 | A tax region can extend settings from a parent tax region. |
| 517 | |
| 518 | These API routes allow admin users to manage tax regions. |
| 519 | externalDocs: |
| 520 | description: Learn more about tax regions. |
| 521 | url: https://docs.medusajs.com/resources/commerce-modules/tax/tax-region |
| 522 | x-associatedSchema: |
| 523 | $ref: '#/components/schemas/AdminTaxRegion' |
| 524 | - name: Translations |
| 525 | description: | |
| 526 | A translation is a localized version of content in a specific locale. For example, a product description in French. |
| 527 | These API routes allow admin users to manage translations for different locales and resources. |
| 528 | externalDocs: |
| 529 | description: Learn more about the Translation Module. |
| 530 | url: https://docs.medusajs.com/resources/commerce-modules/translation |
| 531 | x-associatedSchema: |
| 532 | $ref: '#/components/schemas/AdminTranslation' |
| 533 | - name: Uploads |
| 534 | description: | |
| 535 | Use these API routes to upload files to your Medusa application using the installed file module provider. |
| 536 | |
| 537 | You can upload public files, such as product images, or private files, such as CSV files used to import products. |
| 538 | externalDocs: |
| 539 | description: Check out available file module providers. |
| 540 | url: https://docs.medusajs.com/resources/infrastructure-modules/file |
| 541 | - name: Users |
| 542 | description: | |
| 543 | A user is an admin user that can authenticate and perform functionalities as an admin user. |
| 544 | |
| 545 | An admin user can invite other users to join their team. Once they accept the invite, they'll become admin users as well. |
| 546 | |
| 547 | These API routes allow admin users to manage their team. |
| 548 | externalDocs: |
| 549 | description: Learn more about the User Module. |
| 550 | url: https://docs.medusajs.com/resources/commerce-modules/user |
| 551 | x-associatedSchema: |
| 552 | $ref: '#/components/schemas/AdminUser' |
| 553 | - name: Views |
| 554 | - name: Workflows Executions |
| 555 | description: | |
| 556 | These API routes allow you to track workflow executions in your Medusa application. |
| 557 | |
| 558 | Depending on the workflow engine you use, executions may only be retained for a short while, or only until the Medusa application is restarted. |
| 559 | externalDocs: |
| 560 | description: Check out available Workflow Engine Modules |
| 561 | url: https://docs.medusajs.com/resources/infrastructure-modules/workflow-engine |
| 562 | paths: |
| 563 | /admin/api-keys: |
| 564 | get: |
| 565 | operationId: GetApiKeys |
| 566 | summary: List API Keys |
| 567 | description: Retrieve a list of API keys. The API keys can be filtered by fields such as `id`. The API keys can also be sorted or paginated. |
| 568 | x-authenticated: true |
| 569 | parameters: |
| 570 | - name: fields |
| 571 | in: query |
| 572 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 573 | required: false |
| 574 | schema: |
| 575 | type: string |
| 576 | title: fields |
| 577 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 578 | externalDocs: |
| 579 | url: '#select-fields-and-relations' |
| 580 | - name: offset |
| 581 | in: query |
| 582 | description: The number of items to skip when retrieving a list. |
| 583 | required: false |
| 584 | schema: |
| 585 | type: number |
| 586 | title: offset |
| 587 | description: The number of items to skip when retrieving a list. |
| 588 | externalDocs: |
| 589 | url: '#pagination' |
| 590 | - name: limit |
| 591 | in: query |
| 592 | description: Limit the number of items returned in the list. |
| 593 | required: false |
| 594 | schema: |
| 595 | type: number |
| 596 | title: limit |
| 597 | description: Limit the number of items returned in the list. |
| 598 | externalDocs: |
| 599 | url: '#pagination' |
| 600 | - name: order |
| 601 | in: query |
| 602 | 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 `-`. |
| 603 | required: false |
| 604 | schema: |
| 605 | type: string |
| 606 | title: order |
| 607 | 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 `-`. |
| 608 | externalDocs: |
| 609 | url: '#pagination' |
| 610 | - name: q |
| 611 | in: query |
| 612 | description: A search term to search the API keys' searchable properties. |
| 613 | required: false |
| 614 | schema: |
| 615 | type: string |
| 616 | title: q |
| 617 | description: The search term. |
| 618 | - name: id |
| 619 | in: query |
| 620 | required: false |
| 621 | schema: |
| 622 | oneOf: |
| 623 | - type: string |
| 624 | title: id |
| 625 | description: Filter by an API key's ID. |
| 626 | - type: array |
| 627 | description: Filter by API key IDs. |
| 628 | items: |
| 629 | type: string |
| 630 | title: id |
| 631 | description: The API key ID. |
| 632 | - name: title |
| 633 | in: query |
| 634 | required: false |
| 635 | schema: |
| 636 | oneOf: |
| 637 | - type: string |
| 638 | title: title |
| 639 | description: Filter by an API key's title. |
| 640 | - type: array |
| 641 | description: Filter by API key titles. |
| 642 | items: |
| 643 | type: string |
| 644 | title: title |
| 645 | description: The API key title. |
| 646 | - name: token |
| 647 | in: query |
| 648 | required: false |
| 649 | schema: |
| 650 | oneOf: |
| 651 | - type: string |
| 652 | title: token |
| 653 | description: Filter by an API key's token. |
| 654 | - type: array |
| 655 | description: Filter by API key tokens. |
| 656 | items: |
| 657 | type: string |
| 658 | title: token |
| 659 | description: The API key token. |
| 660 | - name: type |
| 661 | in: query |
| 662 | description: Filter by the API key's type. |
| 663 | required: false |
| 664 | schema: |
| 665 | type: string |
| 666 | enum: |
| 667 | - secret |
| 668 | - publishable |
| 669 | - name: created_at |
| 670 | in: query |
| 671 | description: Filter by the API key's creation date. |
| 672 | required: false |
| 673 | schema: |
| 674 | type: object |
| 675 | description: Filter by the API key's creation date. |
| 676 | properties: |
| 677 | $and: |
| 678 | type: array |
| 679 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 680 | items: |
| 681 | type: object |
| 682 | title: $and |
| 683 | $or: |
| 684 | type: array |
| 685 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 686 | items: |
| 687 | type: object |
| 688 | title: $or |
| 689 | $eq: |
| 690 | oneOf: |
| 691 | - type: string |
| 692 | title: $eq |
| 693 | description: Filter by an exact match. |
| 694 | - type: array |
| 695 | description: Filter by multiple exact matches. |
| 696 | items: |
| 697 | type: string |
| 698 | title: $eq |
| 699 | description: An exact match. |
| 700 | $ne: |
| 701 | type: string |
| 702 | title: $ne |
| 703 | description: Filter by values not equal to this parameter. |
| 704 | $in: |
| 705 | type: array |
| 706 | description: Filter by values in this array. |
| 707 | items: |
| 708 | type: string |
| 709 | title: $in |
| 710 | description: The value to match. |
| 711 | $nin: |
| 712 | type: array |
| 713 | description: Filter by values not in this array. |
| 714 | items: |
| 715 | type: string |
| 716 | title: $nin |
| 717 | description: The value not to match. |
| 718 | $not: |
| 719 | oneOf: |
| 720 | - type: string |
| 721 | title: $not |
| 722 | description: Filter by values not matching this parameter. |
| 723 | - type: object |
| 724 | description: Filter by values not matching the conditions in this parameter. |
| 725 | properties: |
| 726 | $and: |
| 727 | type: array |
| 728 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 729 | items: |
| 730 | type: object |
| 731 | title: $and |
| 732 | $or: |
| 733 | type: array |
| 734 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 735 | items: |
| 736 | type: object |
| 737 | title: $or |
| 738 | $eq: |
| 739 | oneOf: |
| 740 | - type: string |
| 741 | title: $eq |
| 742 | description: Filter by an exact match. |
| 743 | - type: array |
| 744 | description: Filter by multiple exact matches. |
| 745 | items: |
| 746 | type: string |
| 747 | title: $eq |
| 748 | description: The value to match. |
| 749 | $ne: |
| 750 | type: string |
| 751 | title: $ne |
| 752 | description: Filter by values not matching this parameter. |
| 753 | $in: |
| 754 | type: array |
| 755 | description: Filter by values in this array. |
| 756 | items: |
| 757 | type: string |
| 758 | title: $in |
| 759 | description: The value to match. |
| 760 | $nin: |
| 761 | type: array |
| 762 | description: Filter by values not in this array. |
| 763 | items: |
| 764 | type: string |
| 765 | title: $nin |
| 766 | description: The value to not match |
| 767 | $not: |
| 768 | oneOf: |
| 769 | - type: string |
| 770 | title: $not |
| 771 | description: Filter by values not matching this parameter |
| 772 | - type: object |
| 773 | description: Filter by values not matching the conditions in this parameter. |
| 774 | - type: array |
| 775 | description: Filter by values not matching the values of this parameter. |
| 776 | items: |
| 777 | type: string |
| 778 | title: $not |
| 779 | description: The values to not match. |
| 780 | $gt: |
| 781 | type: string |
| 782 | title: $gt |
| 783 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 784 | $gte: |
| 785 | type: string |
| 786 | title: $gte |
| 787 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 788 | $lt: |
| 789 | type: string |
| 790 | title: $lt |
| 791 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 792 | $lte: |
| 793 | type: string |
| 794 | title: $lte |
| 795 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 796 | $like: |
| 797 | type: string |
| 798 | title: $like |
| 799 | description: Apply a `like` filter. Useful for strings only. |
| 800 | $re: |
| 801 | type: string |
| 802 | title: $re |
| 803 | description: Apply a regex filter. Useful for strings only. |
| 804 | $ilike: |
| 805 | type: string |
| 806 | title: $ilike |
| 807 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 808 | $fulltext: |
| 809 | type: string |
| 810 | title: $fulltext |
| 811 | description: Filter to apply on full-text properties. |
| 812 | $overlap: |
| 813 | type: array |
| 814 | description: Filter arrays that have overlapping values with this parameter. |
| 815 | items: |
| 816 | type: string |
| 817 | title: $overlap |
| 818 | description: The value to match. |
| 819 | $contains: |
| 820 | type: array |
| 821 | description: Filter arrays that contain some of the values of this parameter. |
| 822 | items: |
| 823 | type: string |
| 824 | title: $contains |
| 825 | description: The values to match. |
| 826 | $contained: |
| 827 | type: array |
| 828 | description: Filter arrays that contain all values of this parameter. |
| 829 | items: |
| 830 | type: string |
| 831 | title: $contained |
| 832 | description: The values to match. |
| 833 | $exists: |
| 834 | type: boolean |
| 835 | title: $exists |
| 836 | description: Filter by whether a value for this parameter exists (not `null`). |
| 837 | - type: array |
| 838 | description: Filter by values not matching those in this parameter. |
| 839 | items: |
| 840 | type: string |
| 841 | title: $not |
| 842 | description: The values to not match. |
| 843 | $gt: |
| 844 | type: string |
| 845 | title: $gt |
| 846 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 847 | $gte: |
| 848 | type: string |
| 849 | title: $gte |
| 850 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 851 | $lt: |
| 852 | type: string |
| 853 | title: $lt |
| 854 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 855 | $lte: |
| 856 | type: string |
| 857 | title: $lte |
| 858 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 859 | $like: |
| 860 | type: string |
| 861 | title: $like |
| 862 | description: Apply a `like` filter. Useful for strings only. |
| 863 | $re: |
| 864 | type: string |
| 865 | title: $re |
| 866 | description: Apply a regex filter. Useful for strings only. |
| 867 | $ilike: |
| 868 | type: string |
| 869 | title: $ilike |
| 870 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 871 | $fulltext: |
| 872 | type: string |
| 873 | title: $fulltext |
| 874 | description: Filter to apply on full-text properties. |
| 875 | $overlap: |
| 876 | type: array |
| 877 | description: Filter arrays that have overlapping values with this parameter. |
| 878 | items: |
| 879 | type: string |
| 880 | title: $overlap |
| 881 | description: The values to match. |
| 882 | $contains: |
| 883 | type: array |
| 884 | description: Filter arrays that contain some of the values of this parameter. |
| 885 | items: |
| 886 | type: string |
| 887 | title: $contains |
| 888 | description: The values to match. |
| 889 | $contained: |
| 890 | type: array |
| 891 | description: Filter arrays that contain all values of this parameter. |
| 892 | items: |
| 893 | type: string |
| 894 | title: $contained |
| 895 | description: The values to match. |
| 896 | $exists: |
| 897 | type: boolean |
| 898 | title: $exists |
| 899 | description: Filter by whether a value for this parameter exists (not `null`). |
| 900 | title: created_at |
| 901 | - name: updated_at |
| 902 | in: query |
| 903 | description: Filter by the API key's update date. |
| 904 | required: false |
| 905 | schema: |
| 906 | type: object |
| 907 | description: Filter by the API key's update date. |
| 908 | properties: |
| 909 | $and: |
| 910 | type: array |
| 911 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 912 | items: |
| 913 | type: object |
| 914 | title: $and |
| 915 | $or: |
| 916 | type: array |
| 917 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 918 | items: |
| 919 | type: object |
| 920 | title: $or |
| 921 | $eq: |
| 922 | oneOf: |
| 923 | - type: string |
| 924 | title: $eq |
| 925 | description: Filter by an exact match. |
| 926 | - type: array |
| 927 | description: Filter by multiple exact matches. |
| 928 | items: |
| 929 | type: string |
| 930 | title: $eq |
| 931 | description: An exact match. |
| 932 | $ne: |
| 933 | type: string |
| 934 | title: $ne |
| 935 | description: Filter by values not equal to this parameter. |
| 936 | $in: |
| 937 | type: array |
| 938 | description: Filter by values in this array. |
| 939 | items: |
| 940 | type: string |
| 941 | title: $in |
| 942 | description: The value to match. |
| 943 | $nin: |
| 944 | type: array |
| 945 | description: Filter by values not in this array. |
| 946 | items: |
| 947 | type: string |
| 948 | title: $nin |
| 949 | description: The value not to match. |
| 950 | $not: |
| 951 | oneOf: |
| 952 | - type: string |
| 953 | title: $not |
| 954 | description: Filter by values not matching this parameter. |
| 955 | - type: object |
| 956 | description: Filter by values not matching the conditions in this parameter. |
| 957 | properties: |
| 958 | $and: |
| 959 | type: array |
| 960 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 961 | items: |
| 962 | type: object |
| 963 | title: $and |
| 964 | $or: |
| 965 | type: array |
| 966 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 967 | items: |
| 968 | type: object |
| 969 | title: $or |
| 970 | $eq: |
| 971 | oneOf: |
| 972 | - type: string |
| 973 | title: $eq |
| 974 | description: Filter by an exact match. |
| 975 | - type: array |
| 976 | description: Filter by multiple exact matches. |
| 977 | items: |
| 978 | type: string |
| 979 | title: $eq |
| 980 | description: The value to match. |
| 981 | $ne: |
| 982 | type: string |
| 983 | title: $ne |
| 984 | description: Filter by values not matching this parameter. |
| 985 | $in: |
| 986 | type: array |
| 987 | description: Filter by values in this array. |
| 988 | items: |
| 989 | type: string |
| 990 | title: $in |
| 991 | description: The value to match. |
| 992 | $nin: |
| 993 | type: array |
| 994 | description: Filter by values not in this array. |
| 995 | items: |
| 996 | type: string |
| 997 | title: $nin |
| 998 | description: The value to not match |
| 999 | $not: |
| 1000 | oneOf: |
| 1001 | - type: string |
| 1002 | title: $not |
| 1003 | description: Filter by values not matching this parameter |
| 1004 | - type: object |
| 1005 | description: Filter by values not matching the conditions in this parameter. |
| 1006 | - type: array |
| 1007 | description: Filter by values not matching the values of this parameter. |
| 1008 | items: |
| 1009 | type: string |
| 1010 | title: $not |
| 1011 | description: The values to not match. |
| 1012 | $gt: |
| 1013 | type: string |
| 1014 | title: $gt |
| 1015 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 1016 | $gte: |
| 1017 | type: string |
| 1018 | title: $gte |
| 1019 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 1020 | $lt: |
| 1021 | type: string |
| 1022 | title: $lt |
| 1023 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 1024 | $lte: |
| 1025 | type: string |
| 1026 | title: $lte |
| 1027 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 1028 | $like: |
| 1029 | type: string |
| 1030 | title: $like |
| 1031 | description: Apply a `like` filter. Useful for strings only. |
| 1032 | $re: |
| 1033 | type: string |
| 1034 | title: $re |
| 1035 | description: Apply a regex filter. Useful for strings only. |
| 1036 | $ilike: |
| 1037 | type: string |
| 1038 | title: $ilike |
| 1039 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 1040 | $fulltext: |
| 1041 | type: string |
| 1042 | title: $fulltext |
| 1043 | description: Filter to apply on full-text properties. |
| 1044 | $overlap: |
| 1045 | type: array |
| 1046 | description: Filter arrays that have overlapping values with this parameter. |
| 1047 | items: |
| 1048 | type: string |
| 1049 | title: $overlap |
| 1050 | description: The value to match. |
| 1051 | $contains: |
| 1052 | type: array |
| 1053 | description: Filter arrays that contain some of the values of this parameter. |
| 1054 | items: |
| 1055 | type: string |
| 1056 | title: $contains |
| 1057 | description: The values to match. |
| 1058 | $contained: |
| 1059 | type: array |
| 1060 | description: Filter arrays that contain all values of this parameter. |
| 1061 | items: |
| 1062 | type: string |
| 1063 | title: $contained |
| 1064 | description: The values to match. |
| 1065 | $exists: |
| 1066 | type: boolean |
| 1067 | title: $exists |
| 1068 | description: Filter by whether a value for this parameter exists (not `null`). |
| 1069 | - type: array |
| 1070 | description: Filter by values not matching those in this parameter. |
| 1071 | items: |
| 1072 | type: string |
| 1073 | title: $not |
| 1074 | description: The values to not match. |
| 1075 | $gt: |
| 1076 | type: string |
| 1077 | title: $gt |
| 1078 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 1079 | $gte: |
| 1080 | type: string |
| 1081 | title: $gte |
| 1082 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 1083 | $lt: |
| 1084 | type: string |
| 1085 | title: $lt |
| 1086 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 1087 | $lte: |
| 1088 | type: string |
| 1089 | title: $lte |
| 1090 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 1091 | $like: |
| 1092 | type: string |
| 1093 | title: $like |
| 1094 | description: Apply a `like` filter. Useful for strings only. |
| 1095 | $re: |
| 1096 | type: string |
| 1097 | title: $re |
| 1098 | description: Apply a regex filter. Useful for strings only. |
| 1099 | $ilike: |
| 1100 | type: string |
| 1101 | title: $ilike |
| 1102 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 1103 | $fulltext: |
| 1104 | type: string |
| 1105 | title: $fulltext |
| 1106 | description: Filter to apply on full-text properties. |
| 1107 | $overlap: |
| 1108 | type: array |
| 1109 | description: Filter arrays that have overlapping values with this parameter. |
| 1110 | items: |
| 1111 | type: string |
| 1112 | title: $overlap |
| 1113 | description: The values to match. |
| 1114 | $contains: |
| 1115 | type: array |
| 1116 | description: Filter arrays that contain some of the values of this parameter. |
| 1117 | items: |
| 1118 | type: string |
| 1119 | title: $contains |
| 1120 | description: The values to match. |
| 1121 | $contained: |
| 1122 | type: array |
| 1123 | description: Filter arrays that contain all values of this parameter. |
| 1124 | items: |
| 1125 | type: string |
| 1126 | title: $contained |
| 1127 | description: The values to match. |
| 1128 | $exists: |
| 1129 | type: boolean |
| 1130 | title: $exists |
| 1131 | description: Filter by whether a value for this parameter exists (not `null`). |
| 1132 | title: updated_at |
| 1133 | - name: deleted_at |
| 1134 | in: query |
| 1135 | description: Filter by the API key's deletion date. |
| 1136 | required: false |
| 1137 | schema: |
| 1138 | type: object |
| 1139 | description: Filter by the API key's deletion date. |
| 1140 | properties: |
| 1141 | $and: |
| 1142 | type: array |
| 1143 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 1144 | items: |
| 1145 | type: object |
| 1146 | title: $and |
| 1147 | $or: |
| 1148 | type: array |
| 1149 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 1150 | items: |
| 1151 | type: object |
| 1152 | title: $or |
| 1153 | $eq: |
| 1154 | oneOf: |
| 1155 | - type: string |
| 1156 | title: $eq |
| 1157 | description: Filter by an exact match. |
| 1158 | - type: array |
| 1159 | description: Filter by multiple exact matches. |
| 1160 | items: |
| 1161 | type: string |
| 1162 | title: $eq |
| 1163 | description: An exact match. |
| 1164 | $ne: |
| 1165 | type: string |
| 1166 | title: $ne |
| 1167 | description: Filter by values not equal to this parameter. |
| 1168 | $in: |
| 1169 | type: array |
| 1170 | description: Filter by values in this array. |
| 1171 | items: |
| 1172 | type: string |
| 1173 | title: $in |
| 1174 | description: The value to match. |
| 1175 | $nin: |
| 1176 | type: array |
| 1177 | description: Filter by values not in this array. |
| 1178 | items: |
| 1179 | type: string |
| 1180 | title: $nin |
| 1181 | description: The value not to match. |
| 1182 | $not: |
| 1183 | oneOf: |
| 1184 | - type: string |
| 1185 | title: $not |
| 1186 | description: Filter by values not matching this parameter. |
| 1187 | - type: object |
| 1188 | description: Filter by values not matching the conditions in this parameter. |
| 1189 | properties: |
| 1190 | $and: |
| 1191 | type: array |
| 1192 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 1193 | items: |
| 1194 | type: object |
| 1195 | title: $and |
| 1196 | $or: |
| 1197 | type: array |
| 1198 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 1199 | items: |
| 1200 | type: object |
| 1201 | title: $or |
| 1202 | $eq: |
| 1203 | oneOf: |
| 1204 | - type: string |
| 1205 | title: $eq |
| 1206 | description: Filter by an exact match. |
| 1207 | - type: array |
| 1208 | description: Filter by multiple exact matches. |
| 1209 | items: |
| 1210 | type: string |
| 1211 | title: $eq |
| 1212 | description: The value to match. |
| 1213 | $ne: |
| 1214 | type: string |
| 1215 | title: $ne |
| 1216 | description: Filter by values not matching this parameter. |
| 1217 | $in: |
| 1218 | type: array |
| 1219 | description: Filter by values in this array. |
| 1220 | items: |
| 1221 | type: string |
| 1222 | title: $in |
| 1223 | description: The value to match. |
| 1224 | $nin: |
| 1225 | type: array |
| 1226 | description: Filter by values not in this array. |
| 1227 | items: |
| 1228 | type: string |
| 1229 | title: $nin |
| 1230 | description: The value to not match |
| 1231 | $not: |
| 1232 | oneOf: |
| 1233 | - type: string |
| 1234 | title: $not |
| 1235 | description: Filter by values not matching this parameter |
| 1236 | - type: object |
| 1237 | description: Filter by values not matching the conditions in this parameter. |
| 1238 | - type: array |
| 1239 | description: Filter by values not matching the values of this parameter. |
| 1240 | items: |
| 1241 | type: string |
| 1242 | title: $not |
| 1243 | description: The values to not match. |
| 1244 | $gt: |
| 1245 | type: string |
| 1246 | title: $gt |
| 1247 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 1248 | $gte: |
| 1249 | type: string |
| 1250 | title: $gte |
| 1251 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 1252 | $lt: |
| 1253 | type: string |
| 1254 | title: $lt |
| 1255 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 1256 | $lte: |
| 1257 | type: string |
| 1258 | title: $lte |
| 1259 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 1260 | $like: |
| 1261 | type: string |
| 1262 | title: $like |
| 1263 | description: Apply a `like` filter. Useful for strings only. |
| 1264 | $re: |
| 1265 | type: string |
| 1266 | title: $re |
| 1267 | description: Apply a regex filter. Useful for strings only. |
| 1268 | $ilike: |
| 1269 | type: string |
| 1270 | title: $ilike |
| 1271 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 1272 | $fulltext: |
| 1273 | type: string |
| 1274 | title: $fulltext |
| 1275 | description: Filter to apply on full-text properties. |
| 1276 | $overlap: |
| 1277 | type: array |
| 1278 | description: Filter arrays that have overlapping values with this parameter. |
| 1279 | items: |
| 1280 | type: string |
| 1281 | title: $overlap |
| 1282 | description: The value to match. |
| 1283 | $contains: |
| 1284 | type: array |
| 1285 | description: Filter arrays that contain some of the values of this parameter. |
| 1286 | items: |
| 1287 | type: string |
| 1288 | title: $contains |
| 1289 | description: The values to match. |
| 1290 | $contained: |
| 1291 | type: array |
| 1292 | description: Filter arrays that contain all values of this parameter. |
| 1293 | items: |
| 1294 | type: string |
| 1295 | title: $contained |
| 1296 | description: The values to match. |
| 1297 | $exists: |
| 1298 | type: boolean |
| 1299 | title: $exists |
| 1300 | description: Filter by whether a value for this parameter exists (not `null`). |
| 1301 | - type: array |
| 1302 | description: Filter by values not matching those in this parameter. |
| 1303 | items: |
| 1304 | type: string |
| 1305 | title: $not |
| 1306 | description: The values to not match. |
| 1307 | $gt: |
| 1308 | type: string |
| 1309 | title: $gt |
| 1310 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 1311 | $gte: |
| 1312 | type: string |
| 1313 | title: $gte |
| 1314 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 1315 | $lt: |
| 1316 | type: string |
| 1317 | title: $lt |
| 1318 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 1319 | $lte: |
| 1320 | type: string |
| 1321 | title: $lte |
| 1322 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 1323 | $like: |
| 1324 | type: string |
| 1325 | title: $like |
| 1326 | description: Apply a `like` filter. Useful for strings only. |
| 1327 | $re: |
| 1328 | type: string |
| 1329 | title: $re |
| 1330 | description: Apply a regex filter. Useful for strings only. |
| 1331 | $ilike: |
| 1332 | type: string |
| 1333 | title: $ilike |
| 1334 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 1335 | $fulltext: |
| 1336 | type: string |
| 1337 | title: $fulltext |
| 1338 | description: Filter to apply on full-text properties. |
| 1339 | $overlap: |
| 1340 | type: array |
| 1341 | description: Filter arrays that have overlapping values with this parameter. |
| 1342 | items: |
| 1343 | type: string |
| 1344 | title: $overlap |
| 1345 | description: The values to match. |
| 1346 | $contains: |
| 1347 | type: array |
| 1348 | description: Filter arrays that contain some of the values of this parameter. |
| 1349 | items: |
| 1350 | type: string |
| 1351 | title: $contains |
| 1352 | description: The values to match. |
| 1353 | $contained: |
| 1354 | type: array |
| 1355 | description: Filter arrays that contain all values of this parameter. |
| 1356 | items: |
| 1357 | type: string |
| 1358 | title: $contained |
| 1359 | description: The values to match. |
| 1360 | $exists: |
| 1361 | type: boolean |
| 1362 | title: $exists |
| 1363 | description: Filter by whether a value for this parameter exists (not `null`). |
| 1364 | title: deleted_at |
| 1365 | - name: revoked_at |
| 1366 | in: query |
| 1367 | description: Filter by the API key's revoke date. |
| 1368 | required: false |
| 1369 | schema: |
| 1370 | type: object |
| 1371 | description: Filter by the API key's revoke date. |
| 1372 | properties: |
| 1373 | $and: |
| 1374 | type: array |
| 1375 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 1376 | items: |
| 1377 | type: object |
| 1378 | title: $and |
| 1379 | $or: |
| 1380 | type: array |
| 1381 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 1382 | items: |
| 1383 | type: object |
| 1384 | title: $or |
| 1385 | $eq: |
| 1386 | oneOf: |
| 1387 | - type: string |
| 1388 | title: $eq |
| 1389 | description: Filter by an exact match. |
| 1390 | - type: array |
| 1391 | description: Filter by multiple exact matches. |
| 1392 | items: |
| 1393 | type: string |
| 1394 | title: $eq |
| 1395 | description: An exact match. |
| 1396 | $ne: |
| 1397 | type: string |
| 1398 | title: $ne |
| 1399 | description: Filter by values not equal to this parameter. |
| 1400 | $in: |
| 1401 | type: array |
| 1402 | description: Filter by values in this array. |
| 1403 | items: |
| 1404 | type: string |
| 1405 | title: $in |
| 1406 | description: The value to match. |
| 1407 | $nin: |
| 1408 | type: array |
| 1409 | description: Filter by values not in this array. |
| 1410 | items: |
| 1411 | type: string |
| 1412 | title: $nin |
| 1413 | description: The value not to match. |
| 1414 | $not: |
| 1415 | oneOf: |
| 1416 | - type: string |
| 1417 | title: $not |
| 1418 | description: Filter by values not matching this parameter. |
| 1419 | - type: object |
| 1420 | description: Filter by values not matching the conditions in this parameter. |
| 1421 | properties: |
| 1422 | $and: |
| 1423 | type: array |
| 1424 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 1425 | items: |
| 1426 | type: object |
| 1427 | title: $and |
| 1428 | $or: |
| 1429 | type: array |
| 1430 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 1431 | items: |
| 1432 | type: object |
| 1433 | title: $or |
| 1434 | $eq: |
| 1435 | oneOf: |
| 1436 | - type: string |
| 1437 | title: $eq |
| 1438 | description: Filter by an exact match. |
| 1439 | - type: array |
| 1440 | description: Filter by multiple exact matches. |
| 1441 | items: |
| 1442 | type: string |
| 1443 | title: $eq |
| 1444 | description: The value to match. |
| 1445 | $ne: |
| 1446 | type: string |
| 1447 | title: $ne |
| 1448 | description: Filter by values not matching this parameter. |
| 1449 | $in: |
| 1450 | type: array |
| 1451 | description: Filter by values in this array. |
| 1452 | items: |
| 1453 | type: string |
| 1454 | title: $in |
| 1455 | description: The value to match. |
| 1456 | $nin: |
| 1457 | type: array |
| 1458 | description: Filter by values not in this array. |
| 1459 | items: |
| 1460 | type: string |
| 1461 | title: $nin |
| 1462 | description: The value to not match |
| 1463 | $not: |
| 1464 | oneOf: |
| 1465 | - type: string |
| 1466 | title: $not |
| 1467 | description: Filter by values not matching this parameter |
| 1468 | - type: object |
| 1469 | description: Filter by values not matching the conditions in this parameter. |
| 1470 | - type: array |
| 1471 | description: Filter by values not matching the values of this parameter. |
| 1472 | items: |
| 1473 | type: string |
| 1474 | title: $not |
| 1475 | description: The values to not match. |
| 1476 | $gt: |
| 1477 | type: string |
| 1478 | title: $gt |
| 1479 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 1480 | $gte: |
| 1481 | type: string |
| 1482 | title: $gte |
| 1483 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 1484 | $lt: |
| 1485 | type: string |
| 1486 | title: $lt |
| 1487 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 1488 | $lte: |
| 1489 | type: string |
| 1490 | title: $lte |
| 1491 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 1492 | $like: |
| 1493 | type: string |
| 1494 | title: $like |
| 1495 | description: Apply a `like` filter. Useful for strings only. |
| 1496 | $re: |
| 1497 | type: string |
| 1498 | title: $re |
| 1499 | description: Apply a regex filter. Useful for strings only. |
| 1500 | $ilike: |
| 1501 | type: string |
| 1502 | title: $ilike |
| 1503 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 1504 | $fulltext: |
| 1505 | type: string |
| 1506 | title: $fulltext |
| 1507 | description: Filter to apply on full-text properties. |
| 1508 | $overlap: |
| 1509 | type: array |
| 1510 | description: Filter arrays that have overlapping values with this parameter. |
| 1511 | items: |
| 1512 | type: string |
| 1513 | title: $overlap |
| 1514 | description: The value to match. |
| 1515 | $contains: |
| 1516 | type: array |
| 1517 | description: Filter arrays that contain some of the values of this parameter. |
| 1518 | items: |
| 1519 | type: string |
| 1520 | title: $contains |
| 1521 | description: The values to match. |
| 1522 | $contained: |
| 1523 | type: array |
| 1524 | description: Filter arrays that contain all values of this parameter. |
| 1525 | items: |
| 1526 | type: string |
| 1527 | title: $contained |
| 1528 | description: The values to match. |
| 1529 | $exists: |
| 1530 | type: boolean |
| 1531 | title: $exists |
| 1532 | description: Filter by whether a value for this parameter exists (not `null`). |
| 1533 | - type: array |
| 1534 | description: Filter by values not matching those in this parameter. |
| 1535 | items: |
| 1536 | type: string |
| 1537 | title: $not |
| 1538 | description: The values to not match. |
| 1539 | $gt: |
| 1540 | type: string |
| 1541 | title: $gt |
| 1542 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 1543 | $gte: |
| 1544 | type: string |
| 1545 | title: $gte |
| 1546 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 1547 | $lt: |
| 1548 | type: string |
| 1549 | title: $lt |
| 1550 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 1551 | $lte: |
| 1552 | type: string |
| 1553 | title: $lte |
| 1554 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 1555 | $like: |
| 1556 | type: string |
| 1557 | title: $like |
| 1558 | description: Apply a `like` filter. Useful for strings only. |
| 1559 | $re: |
| 1560 | type: string |
| 1561 | title: $re |
| 1562 | description: Apply a regex filter. Useful for strings only. |
| 1563 | $ilike: |
| 1564 | type: string |
| 1565 | title: $ilike |
| 1566 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 1567 | $fulltext: |
| 1568 | type: string |
| 1569 | title: $fulltext |
| 1570 | description: Filter to apply on full-text properties. |
| 1571 | $overlap: |
| 1572 | type: array |
| 1573 | description: Filter arrays that have overlapping values with this parameter. |
| 1574 | items: |
| 1575 | type: string |
| 1576 | title: $overlap |
| 1577 | description: The values to match. |
| 1578 | $contains: |
| 1579 | type: array |
| 1580 | description: Filter arrays that contain some of the values of this parameter. |
| 1581 | items: |
| 1582 | type: string |
| 1583 | title: $contains |
| 1584 | description: The values to match. |
| 1585 | $contained: |
| 1586 | type: array |
| 1587 | description: Filter arrays that contain all values of this parameter. |
| 1588 | items: |
| 1589 | type: string |
| 1590 | title: $contained |
| 1591 | description: The values to match. |
| 1592 | $exists: |
| 1593 | type: boolean |
| 1594 | title: $exists |
| 1595 | description: Filter by whether a value for this parameter exists (not `null`). |
| 1596 | title: revoked_at |
| 1597 | - name: $and |
| 1598 | in: query |
| 1599 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 1600 | required: false |
| 1601 | schema: |
| 1602 | type: array |
| 1603 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 1604 | items: |
| 1605 | type: object |
| 1606 | title: $and |
| 1607 | - name: $or |
| 1608 | in: query |
| 1609 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 1610 | required: false |
| 1611 | schema: |
| 1612 | type: array |
| 1613 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 1614 | items: |
| 1615 | type: object |
| 1616 | title: $or |
| 1617 | - name: with_deleted |
| 1618 | in: query |
| 1619 | description: Whether to include deleted records in the result. |
| 1620 | required: false |
| 1621 | schema: |
| 1622 | type: boolean |
| 1623 | title: with_deleted |
| 1624 | description: Whether to include deleted records in the result. |
| 1625 | security: |
| 1626 | - api_token: [] |
| 1627 | - cookie_auth: [] |
| 1628 | - jwt_token: [] |
| 1629 | x-codeSamples: |
| 1630 | - lang: JavaScript |
| 1631 | label: JS SDK |
| 1632 | source: |- |
| 1633 | import Medusa from "@medusajs/js-sdk" |
| 1634 | |
| 1635 | export const sdk = new Medusa({ |
| 1636 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 1637 | debug: import.meta.env.DEV, |
| 1638 | auth: { |
| 1639 | type: "session", |
| 1640 | }, |
| 1641 | }) |
| 1642 | |
| 1643 | sdk.admin.apiKey.list() |
| 1644 | .then(({ api_keys, count, limit, offset }) => { |
| 1645 | console.log(api_keys) |
| 1646 | }) |
| 1647 | - lang: Shell |
| 1648 | label: cURL |
| 1649 | source: |- |
| 1650 | curl '{backend_url}/admin/api-keys' \ |
| 1651 | -H 'Authorization: Bearer {jwt_token}' |
| 1652 | tags: |
| 1653 | - Api Keys |
| 1654 | responses: |
| 1655 | '200': |
| 1656 | description: OK |
| 1657 | content: |
| 1658 | application/json: |
| 1659 | schema: |
| 1660 | allOf: |
| 1661 | - type: object |
| 1662 | required: |
| 1663 | - limit |
| 1664 | - offset |
| 1665 | - count |
| 1666 | properties: |
| 1667 | limit: |
| 1668 | type: number |
| 1669 | title: limit |
| 1670 | description: The maximum number of items returned in the list. |
| 1671 | offset: |
| 1672 | type: number |
| 1673 | title: offset |
| 1674 | description: The number of items skipped before retrieving the returned items. |
| 1675 | count: |
| 1676 | type: number |
| 1677 | title: count |
| 1678 | description: The total count of items. |
| 1679 | - type: object |
| 1680 | required: |
| 1681 | - api_keys |
| 1682 | properties: |
| 1683 | api_keys: |
| 1684 | type: array |
| 1685 | description: The list of API keys. |
| 1686 | items: |
| 1687 | $ref: '#/components/schemas/ApiKeyResponse' |
| 1688 | '400': |
| 1689 | $ref: '#/components/responses/400_error' |
| 1690 | '401': |
| 1691 | $ref: '#/components/responses/unauthorized' |
| 1692 | '404': |
| 1693 | $ref: '#/components/responses/not_found_error' |
| 1694 | '409': |
| 1695 | $ref: '#/components/responses/invalid_state_error' |
| 1696 | '422': |
| 1697 | $ref: '#/components/responses/invalid_request_error' |
| 1698 | '500': |
| 1699 | $ref: '#/components/responses/500_error' |
| 1700 | post: |
| 1701 | operationId: PostApiKeys |
| 1702 | summary: Create Api Key |
| 1703 | description: | |
| 1704 | Create a secret or publishable API key. |
| 1705 | A secret API key is used for admin authentication. |
| 1706 | |
| 1707 | A publishable API key is used by client applications to set the scope of the request. |
| 1708 | x-authenticated: true |
| 1709 | security: |
| 1710 | - api_token: [] |
| 1711 | - cookie_auth: [] |
| 1712 | - jwt_token: [] |
| 1713 | requestBody: |
| 1714 | content: |
| 1715 | application/json: |
| 1716 | schema: |
| 1717 | $ref: '#/components/schemas/AdminCreateApiKey' |
| 1718 | x-codeSamples: |
| 1719 | - lang: JavaScript |
| 1720 | label: JS SDK |
| 1721 | source: |- |
| 1722 | import Medusa from "@medusajs/js-sdk" |
| 1723 | |
| 1724 | export const sdk = new Medusa({ |
| 1725 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 1726 | debug: import.meta.env.DEV, |
| 1727 | auth: { |
| 1728 | type: "session", |
| 1729 | }, |
| 1730 | }) |
| 1731 | |
| 1732 | sdk.admin.apiKey.create({ |
| 1733 | title: "Development", |
| 1734 | type: "publishable" |
| 1735 | }) |
| 1736 | .then(({ api_key }) => { |
| 1737 | console.log(api_key) |
| 1738 | }) |
| 1739 | - lang: Shell |
| 1740 | label: cURL |
| 1741 | source: |- |
| 1742 | curl -X POST '{backend_url}/admin/api-keys' \ |
| 1743 | -H 'Authorization: Bearer {jwt_token}' \ |
| 1744 | -H 'Content-Type: application/json' \ |
| 1745 | --data-raw '{ |
| 1746 | "title": "{value}", |
| 1747 | "type": "{value}" |
| 1748 | }' |
| 1749 | tags: |
| 1750 | - Api Keys |
| 1751 | responses: |
| 1752 | '200': |
| 1753 | description: OK |
| 1754 | content: |
| 1755 | application/json: |
| 1756 | schema: |
| 1757 | $ref: '#/components/schemas/AdminApiKeyResponse' |
| 1758 | '400': |
| 1759 | $ref: '#/components/responses/400_error' |
| 1760 | '401': |
| 1761 | $ref: '#/components/responses/unauthorized' |
| 1762 | '404': |
| 1763 | $ref: '#/components/responses/not_found_error' |
| 1764 | '409': |
| 1765 | $ref: '#/components/responses/invalid_state_error' |
| 1766 | '422': |
| 1767 | $ref: '#/components/responses/invalid_request_error' |
| 1768 | '500': |
| 1769 | $ref: '#/components/responses/500_error' |
| 1770 | x-workflow: createApiKeysWorkflow |
| 1771 | x-events: [] |
| 1772 | /admin/api-keys/{id}: |
| 1773 | get: |
| 1774 | operationId: GetApiKeysId |
| 1775 | summary: Get API Key |
| 1776 | description: Retrieve an API key by its ID. You can expand the API key's relations or select the fields that should be returned using the query parameters. |
| 1777 | x-authenticated: true |
| 1778 | parameters: |
| 1779 | - name: id |
| 1780 | in: path |
| 1781 | description: The API key's ID. |
| 1782 | required: true |
| 1783 | schema: |
| 1784 | type: string |
| 1785 | - name: fields |
| 1786 | in: query |
| 1787 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 1788 | required: false |
| 1789 | schema: |
| 1790 | type: string |
| 1791 | title: fields |
| 1792 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 1793 | externalDocs: |
| 1794 | url: '#select-fields-and-relations' |
| 1795 | security: |
| 1796 | - api_token: [] |
| 1797 | - cookie_auth: [] |
| 1798 | - jwt_token: [] |
| 1799 | x-codeSamples: |
| 1800 | - lang: JavaScript |
| 1801 | label: JS SDK |
| 1802 | source: |- |
| 1803 | import Medusa from "@medusajs/js-sdk" |
| 1804 | |
| 1805 | export const sdk = new Medusa({ |
| 1806 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 1807 | debug: import.meta.env.DEV, |
| 1808 | auth: { |
| 1809 | type: "session", |
| 1810 | }, |
| 1811 | }) |
| 1812 | |
| 1813 | sdk.admin.apiKey.retrieve("apk_123") |
| 1814 | .then(({ api_key }) => { |
| 1815 | console.log(api_key) |
| 1816 | }) |
| 1817 | - lang: Shell |
| 1818 | label: cURL |
| 1819 | source: |- |
| 1820 | curl '{backend_url}/admin/api-keys/{id}' \ |
| 1821 | -H 'Authorization: Bearer {jwt_token}' |
| 1822 | tags: |
| 1823 | - Api Keys |
| 1824 | responses: |
| 1825 | '200': |
| 1826 | description: OK |
| 1827 | content: |
| 1828 | application/json: |
| 1829 | schema: |
| 1830 | $ref: '#/components/schemas/AdminApiKeyResponse' |
| 1831 | '400': |
| 1832 | $ref: '#/components/responses/400_error' |
| 1833 | '401': |
| 1834 | $ref: '#/components/responses/unauthorized' |
| 1835 | '404': |
| 1836 | $ref: '#/components/responses/not_found_error' |
| 1837 | '409': |
| 1838 | $ref: '#/components/responses/invalid_state_error' |
| 1839 | '422': |
| 1840 | $ref: '#/components/responses/invalid_request_error' |
| 1841 | '500': |
| 1842 | $ref: '#/components/responses/500_error' |
| 1843 | post: |
| 1844 | operationId: PostApiKeysId |
| 1845 | summary: Update an API Key |
| 1846 | description: Update an API key's details. |
| 1847 | x-authenticated: true |
| 1848 | parameters: |
| 1849 | - name: id |
| 1850 | in: path |
| 1851 | description: The API key's ID. |
| 1852 | required: true |
| 1853 | schema: |
| 1854 | type: string |
| 1855 | - name: fields |
| 1856 | in: query |
| 1857 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 1858 | required: false |
| 1859 | schema: |
| 1860 | type: string |
| 1861 | title: fields |
| 1862 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 1863 | externalDocs: |
| 1864 | url: '#select-fields-and-relations' |
| 1865 | security: |
| 1866 | - api_token: [] |
| 1867 | - cookie_auth: [] |
| 1868 | - jwt_token: [] |
| 1869 | requestBody: |
| 1870 | content: |
| 1871 | application/json: |
| 1872 | schema: |
| 1873 | $ref: '#/components/schemas/AdminUpdateApiKey' |
| 1874 | x-codeSamples: |
| 1875 | - lang: JavaScript |
| 1876 | label: JS SDK |
| 1877 | source: |- |
| 1878 | import Medusa from "@medusajs/js-sdk" |
| 1879 | |
| 1880 | export const sdk = new Medusa({ |
| 1881 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 1882 | debug: import.meta.env.DEV, |
| 1883 | auth: { |
| 1884 | type: "session", |
| 1885 | }, |
| 1886 | }) |
| 1887 | |
| 1888 | sdk.admin.apiKey.update("apk_123", { |
| 1889 | title: "Development" |
| 1890 | }) |
| 1891 | .then(({ api_key }) => { |
| 1892 | console.log(api_key) |
| 1893 | }) |
| 1894 | - lang: Shell |
| 1895 | label: cURL |
| 1896 | source: |- |
| 1897 | curl -X POST '{backend_url}/admin/api-keys/{id}' \ |
| 1898 | -H 'Authorization: Bearer {jwt_token}' \ |
| 1899 | -H 'Content-Type: application/json' \ |
| 1900 | --data-raw '{ |
| 1901 | "title": "{value}" |
| 1902 | }' |
| 1903 | tags: |
| 1904 | - Api Keys |
| 1905 | responses: |
| 1906 | '200': |
| 1907 | description: OK |
| 1908 | content: |
| 1909 | application/json: |
| 1910 | schema: |
| 1911 | $ref: '#/components/schemas/AdminApiKeyResponse' |
| 1912 | '400': |
| 1913 | $ref: '#/components/responses/400_error' |
| 1914 | '401': |
| 1915 | $ref: '#/components/responses/unauthorized' |
| 1916 | '404': |
| 1917 | $ref: '#/components/responses/not_found_error' |
| 1918 | '409': |
| 1919 | $ref: '#/components/responses/invalid_state_error' |
| 1920 | '422': |
| 1921 | $ref: '#/components/responses/invalid_request_error' |
| 1922 | '500': |
| 1923 | $ref: '#/components/responses/500_error' |
| 1924 | x-workflow: updateApiKeysWorkflow |
| 1925 | x-events: [] |
| 1926 | delete: |
| 1927 | operationId: DeleteApiKeysId |
| 1928 | summary: Delete an Api Key |
| 1929 | description: | |
| 1930 | Delete a publishable or secret API key. |
| 1931 | x-authenticated: true |
| 1932 | parameters: |
| 1933 | - name: id |
| 1934 | in: path |
| 1935 | description: The API key's ID. |
| 1936 | required: true |
| 1937 | schema: |
| 1938 | type: string |
| 1939 | security: |
| 1940 | - api_token: [] |
| 1941 | - cookie_auth: [] |
| 1942 | - jwt_token: [] |
| 1943 | x-codeSamples: |
| 1944 | - lang: JavaScript |
| 1945 | label: JS SDK |
| 1946 | source: |- |
| 1947 | import Medusa from "@medusajs/js-sdk" |
| 1948 | |
| 1949 | export const sdk = new Medusa({ |
| 1950 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 1951 | debug: import.meta.env.DEV, |
| 1952 | auth: { |
| 1953 | type: "session", |
| 1954 | }, |
| 1955 | }) |
| 1956 | |
| 1957 | sdk.admin.apiKey.delete("apk_123") |
| 1958 | .then(({ deleted }) => { |
| 1959 | console.log(deleted) |
| 1960 | }) |
| 1961 | - lang: Shell |
| 1962 | label: cURL |
| 1963 | source: |- |
| 1964 | curl -X DELETE '{backend_url}/admin/api-keys/{id}' \ |
| 1965 | -H 'Authorization: Bearer {jwt_token}' |
| 1966 | tags: |
| 1967 | - Api Keys |
| 1968 | responses: |
| 1969 | '200': |
| 1970 | description: OK |
| 1971 | content: |
| 1972 | application/json: |
| 1973 | schema: |
| 1974 | type: object |
| 1975 | description: The deletion's details. |
| 1976 | required: |
| 1977 | - id |
| 1978 | - object |
| 1979 | - deleted |
| 1980 | properties: |
| 1981 | id: |
| 1982 | type: string |
| 1983 | title: id |
| 1984 | description: The API key's ID. |
| 1985 | object: |
| 1986 | type: string |
| 1987 | title: object |
| 1988 | description: The name of the object that was deleted. |
| 1989 | default: api_key |
| 1990 | deleted: |
| 1991 | type: boolean |
| 1992 | title: deleted |
| 1993 | description: Whether the API key was deleted. |
| 1994 | '400': |
| 1995 | $ref: '#/components/responses/400_error' |
| 1996 | '401': |
| 1997 | $ref: '#/components/responses/unauthorized' |
| 1998 | '404': |
| 1999 | $ref: '#/components/responses/not_found_error' |
| 2000 | '409': |
| 2001 | $ref: '#/components/responses/invalid_state_error' |
| 2002 | '422': |
| 2003 | $ref: '#/components/responses/invalid_request_error' |
| 2004 | '500': |
| 2005 | $ref: '#/components/responses/500_error' |
| 2006 | x-workflow: deleteApiKeysWorkflow |
| 2007 | x-events: [] |
| 2008 | /admin/api-keys/{id}/revoke: |
| 2009 | post: |
| 2010 | operationId: PostApiKeysIdRevoke |
| 2011 | summary: Revoke API Key |
| 2012 | description: | |
| 2013 | Revokes an API key. If the API key is a secret, it can't be used for authentication anymore. If it's publishable, it can't be used by client applications. |
| 2014 | x-authenticated: true |
| 2015 | parameters: |
| 2016 | - name: id |
| 2017 | in: path |
| 2018 | description: The API key's ID. |
| 2019 | required: true |
| 2020 | schema: |
| 2021 | type: string |
| 2022 | - name: fields |
| 2023 | in: query |
| 2024 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2025 | required: false |
| 2026 | schema: |
| 2027 | type: string |
| 2028 | title: fields |
| 2029 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2030 | externalDocs: |
| 2031 | url: '#select-fields-and-relations' |
| 2032 | security: |
| 2033 | - api_token: [] |
| 2034 | - cookie_auth: [] |
| 2035 | - jwt_token: [] |
| 2036 | requestBody: |
| 2037 | content: |
| 2038 | application/json: |
| 2039 | schema: |
| 2040 | $ref: '#/components/schemas/AdminRevokeApiKey' |
| 2041 | x-codeSamples: |
| 2042 | - lang: JavaScript |
| 2043 | label: JS SDK |
| 2044 | source: |- |
| 2045 | import Medusa from "@medusajs/js-sdk" |
| 2046 | |
| 2047 | export const sdk = new Medusa({ |
| 2048 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 2049 | debug: import.meta.env.DEV, |
| 2050 | auth: { |
| 2051 | type: "session", |
| 2052 | }, |
| 2053 | }) |
| 2054 | |
| 2055 | sdk.admin.apiKey.revoke("apk_123") |
| 2056 | .then(({ api_key }) => { |
| 2057 | console.log(api_key) |
| 2058 | }) |
| 2059 | - lang: Shell |
| 2060 | label: cURL |
| 2061 | source: |- |
| 2062 | curl -X POST '{backend_url}/admin/api-keys/{id}/revoke' \ |
| 2063 | -H 'Authorization: Bearer {jwt_token}' |
| 2064 | tags: |
| 2065 | - Api Keys |
| 2066 | responses: |
| 2067 | '200': |
| 2068 | description: OK |
| 2069 | content: |
| 2070 | application/json: |
| 2071 | schema: |
| 2072 | $ref: '#/components/schemas/AdminApiKeyResponse' |
| 2073 | '400': |
| 2074 | $ref: '#/components/responses/400_error' |
| 2075 | '401': |
| 2076 | $ref: '#/components/responses/unauthorized' |
| 2077 | '404': |
| 2078 | $ref: '#/components/responses/not_found_error' |
| 2079 | '409': |
| 2080 | $ref: '#/components/responses/invalid_state_error' |
| 2081 | '422': |
| 2082 | $ref: '#/components/responses/invalid_request_error' |
| 2083 | '500': |
| 2084 | $ref: '#/components/responses/500_error' |
| 2085 | x-workflow: revokeApiKeysWorkflow |
| 2086 | x-events: [] |
| 2087 | /admin/api-keys/{id}/sales-channels: |
| 2088 | post: |
| 2089 | operationId: PostApiKeysIdSalesChannels |
| 2090 | summary: Manage Sales Channels of a Publishable API Key |
| 2091 | x-sidebar-summary: Manage Sales Channels |
| 2092 | description: Manage the sales channels of a publishable API key, either to associate them or remove them from the API key. |
| 2093 | x-authenticated: true |
| 2094 | parameters: |
| 2095 | - name: id |
| 2096 | in: path |
| 2097 | description: The API key's ID. |
| 2098 | required: true |
| 2099 | schema: |
| 2100 | type: string |
| 2101 | - name: fields |
| 2102 | in: query |
| 2103 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2104 | required: false |
| 2105 | schema: |
| 2106 | type: string |
| 2107 | title: fields |
| 2108 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2109 | externalDocs: |
| 2110 | url: '#select-fields-and-relations' |
| 2111 | security: |
| 2112 | - api_token: [] |
| 2113 | - cookie_auth: [] |
| 2114 | - jwt_token: [] |
| 2115 | requestBody: |
| 2116 | content: |
| 2117 | application/json: |
| 2118 | schema: |
| 2119 | $ref: '#/components/schemas/AdminBatchLink' |
| 2120 | x-codeSamples: |
| 2121 | - lang: JavaScript |
| 2122 | label: JS SDK |
| 2123 | source: |- |
| 2124 | import Medusa from "@medusajs/js-sdk" |
| 2125 | |
| 2126 | export const sdk = new Medusa({ |
| 2127 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 2128 | debug: import.meta.env.DEV, |
| 2129 | auth: { |
| 2130 | type: "session", |
| 2131 | }, |
| 2132 | }) |
| 2133 | |
| 2134 | sdk.admin.apiKey.batchSalesChannels("apk_123", { |
| 2135 | add: ["sc_123"], |
| 2136 | remove: ["sc_321"] |
| 2137 | }) |
| 2138 | .then(({ api_key }) => { |
| 2139 | console.log(api_key) |
| 2140 | }) |
| 2141 | - lang: Shell |
| 2142 | label: cURL |
| 2143 | source: |- |
| 2144 | curl -X POST '{backend_url}/admin/api-keys/{id}/sales-channels' \ |
| 2145 | -H 'Authorization: Bearer {jwt_token}' |
| 2146 | tags: |
| 2147 | - Api Keys |
| 2148 | responses: |
| 2149 | '200': |
| 2150 | description: OK |
| 2151 | content: |
| 2152 | application/json: |
| 2153 | schema: |
| 2154 | $ref: '#/components/schemas/AdminApiKeyResponse' |
| 2155 | '400': |
| 2156 | $ref: '#/components/responses/400_error' |
| 2157 | '401': |
| 2158 | $ref: '#/components/responses/unauthorized' |
| 2159 | '404': |
| 2160 | $ref: '#/components/responses/not_found_error' |
| 2161 | '409': |
| 2162 | $ref: '#/components/responses/invalid_state_error' |
| 2163 | '422': |
| 2164 | $ref: '#/components/responses/invalid_request_error' |
| 2165 | '500': |
| 2166 | $ref: '#/components/responses/500_error' |
| 2167 | x-workflow: linkSalesChannelsToApiKeyWorkflow |
| 2168 | x-events: [] |
| 2169 | /admin/campaigns: |
| 2170 | get: |
| 2171 | operationId: GetCampaigns |
| 2172 | summary: List Campaigns |
| 2173 | description: Retrieve a list of campaigns. The campaigns can be filtered by fields such as `id`. The campaigns can also be sorted or paginated. |
| 2174 | x-authenticated: true |
| 2175 | parameters: |
| 2176 | - name: fields |
| 2177 | in: query |
| 2178 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2179 | required: false |
| 2180 | schema: |
| 2181 | type: string |
| 2182 | title: fields |
| 2183 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2184 | externalDocs: |
| 2185 | url: '#select-fields-and-relations' |
| 2186 | - name: offset |
| 2187 | in: query |
| 2188 | description: The number of items to skip when retrieving a list. |
| 2189 | required: false |
| 2190 | schema: |
| 2191 | type: number |
| 2192 | title: offset |
| 2193 | description: The number of items to skip when retrieving a list. |
| 2194 | externalDocs: |
| 2195 | url: '#pagination' |
| 2196 | - name: limit |
| 2197 | in: query |
| 2198 | description: Limit the number of items returned in the list. |
| 2199 | required: false |
| 2200 | schema: |
| 2201 | type: number |
| 2202 | title: limit |
| 2203 | description: Limit the number of items returned in the list. |
| 2204 | externalDocs: |
| 2205 | url: '#pagination' |
| 2206 | - name: order |
| 2207 | in: query |
| 2208 | 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 `-`. |
| 2209 | required: false |
| 2210 | schema: |
| 2211 | type: string |
| 2212 | title: order |
| 2213 | 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 `-`. |
| 2214 | - name: with_deleted |
| 2215 | in: query |
| 2216 | description: Whether to include deleted records in the result. |
| 2217 | required: false |
| 2218 | schema: |
| 2219 | type: boolean |
| 2220 | title: with_deleted |
| 2221 | description: Whether to include deleted records in the result. |
| 2222 | - name: q |
| 2223 | in: query |
| 2224 | description: Apply a search query to the campaign's searchable properties. |
| 2225 | required: false |
| 2226 | schema: |
| 2227 | type: string |
| 2228 | title: q |
| 2229 | description: Apply a search query to the campaign's searchable properties. |
| 2230 | - name: campaign_identifier |
| 2231 | in: query |
| 2232 | description: Filter by a campaign identifier. |
| 2233 | required: false |
| 2234 | schema: |
| 2235 | type: string |
| 2236 | title: campaign_identifier |
| 2237 | description: Filter by a campaign identifier. |
| 2238 | - name: budget |
| 2239 | in: query |
| 2240 | description: Filter by the campaign's budget. |
| 2241 | required: false |
| 2242 | schema: |
| 2243 | type: object |
| 2244 | description: Filter by the campaign's budget. |
| 2245 | properties: |
| 2246 | currency_code: |
| 2247 | type: string |
| 2248 | title: currency_code |
| 2249 | description: The budget's currency code. |
| 2250 | example: usd |
| 2251 | - name: $and |
| 2252 | in: query |
| 2253 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 2254 | required: false |
| 2255 | schema: |
| 2256 | type: array |
| 2257 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 2258 | items: |
| 2259 | type: object |
| 2260 | title: $and |
| 2261 | - name: $or |
| 2262 | in: query |
| 2263 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 2264 | required: false |
| 2265 | schema: |
| 2266 | type: array |
| 2267 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 2268 | items: |
| 2269 | type: object |
| 2270 | title: $or |
| 2271 | security: |
| 2272 | - api_token: [] |
| 2273 | - cookie_auth: [] |
| 2274 | - jwt_token: [] |
| 2275 | x-codeSamples: |
| 2276 | - lang: JavaScript |
| 2277 | label: JS SDK |
| 2278 | source: |- |
| 2279 | import Medusa from "@medusajs/js-sdk" |
| 2280 | |
| 2281 | export const sdk = new Medusa({ |
| 2282 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 2283 | debug: import.meta.env.DEV, |
| 2284 | auth: { |
| 2285 | type: "session", |
| 2286 | }, |
| 2287 | }) |
| 2288 | |
| 2289 | sdk.admin.campaign.list() |
| 2290 | .then(({ campaigns, count, limit, offset }) => { |
| 2291 | console.log(campaigns) |
| 2292 | }) |
| 2293 | - lang: Shell |
| 2294 | label: cURL |
| 2295 | source: |- |
| 2296 | curl '{backend_url}/admin/campaigns' \ |
| 2297 | -H 'Authorization: Bearer {jwt_token}' |
| 2298 | tags: |
| 2299 | - Campaigns |
| 2300 | responses: |
| 2301 | '200': |
| 2302 | description: OK |
| 2303 | content: |
| 2304 | application/json: |
| 2305 | schema: |
| 2306 | allOf: |
| 2307 | - type: object |
| 2308 | description: The paginated list of campaigns. |
| 2309 | required: |
| 2310 | - limit |
| 2311 | - offset |
| 2312 | - count |
| 2313 | properties: |
| 2314 | limit: |
| 2315 | type: number |
| 2316 | title: limit |
| 2317 | description: The maximum number of items retrieved. |
| 2318 | offset: |
| 2319 | type: number |
| 2320 | title: offset |
| 2321 | description: The number of its skipped before the returned items. |
| 2322 | count: |
| 2323 | type: number |
| 2324 | title: count |
| 2325 | description: The total number of items. |
| 2326 | - type: object |
| 2327 | description: The list of campaigns |
| 2328 | required: |
| 2329 | - campaigns |
| 2330 | properties: |
| 2331 | campaigns: |
| 2332 | type: array |
| 2333 | description: The list of campaigns. |
| 2334 | items: |
| 2335 | $ref: '#/components/schemas/CampaignResponse' |
| 2336 | '400': |
| 2337 | $ref: '#/components/responses/400_error' |
| 2338 | '401': |
| 2339 | $ref: '#/components/responses/unauthorized' |
| 2340 | '404': |
| 2341 | $ref: '#/components/responses/not_found_error' |
| 2342 | '409': |
| 2343 | $ref: '#/components/responses/invalid_state_error' |
| 2344 | '422': |
| 2345 | $ref: '#/components/responses/invalid_request_error' |
| 2346 | '500': |
| 2347 | $ref: '#/components/responses/500_error' |
| 2348 | post: |
| 2349 | operationId: PostCampaigns |
| 2350 | summary: Create Campaign |
| 2351 | description: Create a campaign. |
| 2352 | x-authenticated: true |
| 2353 | parameters: |
| 2354 | - name: fields |
| 2355 | in: query |
| 2356 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2357 | required: false |
| 2358 | schema: |
| 2359 | type: string |
| 2360 | title: fields |
| 2361 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2362 | externalDocs: |
| 2363 | url: '#select-fields-and-relations' |
| 2364 | security: |
| 2365 | - api_token: [] |
| 2366 | - cookie_auth: [] |
| 2367 | - jwt_token: [] |
| 2368 | requestBody: |
| 2369 | content: |
| 2370 | application/json: |
| 2371 | schema: |
| 2372 | allOf: |
| 2373 | - type: object |
| 2374 | description: The campaign's details. |
| 2375 | required: |
| 2376 | - name |
| 2377 | - campaign_identifier |
| 2378 | - description |
| 2379 | - budget |
| 2380 | - starts_at |
| 2381 | - ends_at |
| 2382 | properties: |
| 2383 | name: |
| 2384 | type: string |
| 2385 | title: name |
| 2386 | description: The campaign's name. |
| 2387 | campaign_identifier: |
| 2388 | type: string |
| 2389 | title: campaign_identifier |
| 2390 | description: The campaign's identifier. |
| 2391 | description: |
| 2392 | type: string |
| 2393 | title: description |
| 2394 | description: The campaign's description. |
| 2395 | budget: |
| 2396 | type: object |
| 2397 | description: The campaign's budget which, when crossed, ends the campaign. |
| 2398 | required: |
| 2399 | - type |
| 2400 | - limit |
| 2401 | - currency_code |
| 2402 | properties: |
| 2403 | type: |
| 2404 | type: string |
| 2405 | title: type |
| 2406 | description: | |
| 2407 | The budget's type. This can't be edited later. Use `spend` to set a limit on the total amount discounted by the campaign's promotions. Use `usage` to set a limit on the total number of times the campaign's promotions can be used. |
| 2408 | enum: |
| 2409 | - spend |
| 2410 | - usage |
| 2411 | limit: |
| 2412 | type: number |
| 2413 | title: limit |
| 2414 | description: The campaign budget's limit. |
| 2415 | currency_code: |
| 2416 | type: string |
| 2417 | title: currency_code |
| 2418 | description: The campaign budget's currency code. This can't be edited later. |
| 2419 | starts_at: |
| 2420 | type: string |
| 2421 | title: starts_at |
| 2422 | description: The campaign's start date. |
| 2423 | format: date-time |
| 2424 | ends_at: |
| 2425 | type: string |
| 2426 | title: ends_at |
| 2427 | description: The campaign's end date. |
| 2428 | format: date-time |
| 2429 | promotions: |
| 2430 | type: array |
| 2431 | description: The campaign's promotions. |
| 2432 | items: |
| 2433 | type: object |
| 2434 | description: The promotions to add to the campaign. |
| 2435 | required: |
| 2436 | - id |
| 2437 | properties: |
| 2438 | id: |
| 2439 | type: string |
| 2440 | title: id |
| 2441 | description: A promotion's ID. |
| 2442 | - type: object |
| 2443 | description: The campaign's details. |
| 2444 | properties: |
| 2445 | additional_data: |
| 2446 | type: object |
| 2447 | description: Pass additional custom data to the API route. This data is passed to the underlying workflow under the `additional_data` parameter. |
| 2448 | description: The campaign's details. |
| 2449 | x-codeSamples: |
| 2450 | - lang: JavaScript |
| 2451 | label: JS SDK |
| 2452 | source: |- |
| 2453 | import Medusa from "@medusajs/js-sdk" |
| 2454 | |
| 2455 | export const sdk = new Medusa({ |
| 2456 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 2457 | debug: import.meta.env.DEV, |
| 2458 | auth: { |
| 2459 | type: "session", |
| 2460 | }, |
| 2461 | }) |
| 2462 | |
| 2463 | sdk.admin.campaign.create({ |
| 2464 | name: "Summer Campaign" |
| 2465 | }) |
| 2466 | .then(({ campaign }) => { |
| 2467 | console.log(campaign) |
| 2468 | }) |
| 2469 | - lang: Shell |
| 2470 | label: cURL |
| 2471 | source: |- |
| 2472 | curl -X POST '{backend_url}/admin/campaigns' \ |
| 2473 | -H 'Authorization: Bearer {jwt_token}' \ |
| 2474 | -H 'Content-Type: application/json' \ |
| 2475 | --data-raw '{ |
| 2476 | "name": "Gunner", |
| 2477 | "campaign_identifier": "{value}", |
| 2478 | "description": "{value}", |
| 2479 | "starts_at": "2024-08-24T00:19:14.144Z", |
| 2480 | "ends_at": "2024-10-01T06:47:50.133Z" |
| 2481 | }' |
| 2482 | tags: |
| 2483 | - Campaigns |
| 2484 | responses: |
| 2485 | '200': |
| 2486 | description: OK |
| 2487 | content: |
| 2488 | application/json: |
| 2489 | schema: |
| 2490 | $ref: '#/components/schemas/AdminCampaignResponse' |
| 2491 | '400': |
| 2492 | $ref: '#/components/responses/400_error' |
| 2493 | '401': |
| 2494 | $ref: '#/components/responses/unauthorized' |
| 2495 | '404': |
| 2496 | $ref: '#/components/responses/not_found_error' |
| 2497 | '409': |
| 2498 | $ref: '#/components/responses/invalid_state_error' |
| 2499 | '422': |
| 2500 | $ref: '#/components/responses/invalid_request_error' |
| 2501 | '500': |
| 2502 | $ref: '#/components/responses/500_error' |
| 2503 | x-workflow: createCampaignsWorkflow |
| 2504 | x-events: [] |
| 2505 | /admin/campaigns/{id}: |
| 2506 | get: |
| 2507 | operationId: GetCampaignsId |
| 2508 | summary: Get a Campaign |
| 2509 | description: Retrieve a campaign by its ID. You can expand the campaign's relations or select the fields that should be returned using the query parameters. |
| 2510 | x-authenticated: true |
| 2511 | parameters: |
| 2512 | - name: id |
| 2513 | in: path |
| 2514 | description: The campaign's ID. |
| 2515 | required: true |
| 2516 | schema: |
| 2517 | type: string |
| 2518 | - name: fields |
| 2519 | in: query |
| 2520 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2521 | required: false |
| 2522 | schema: |
| 2523 | type: string |
| 2524 | title: fields |
| 2525 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2526 | externalDocs: |
| 2527 | url: '#select-fields-and-relations' |
| 2528 | security: |
| 2529 | - api_token: [] |
| 2530 | - cookie_auth: [] |
| 2531 | - jwt_token: [] |
| 2532 | x-codeSamples: |
| 2533 | - lang: JavaScript |
| 2534 | label: JS SDK |
| 2535 | source: |- |
| 2536 | import Medusa from "@medusajs/js-sdk" |
| 2537 | |
| 2538 | export const sdk = new Medusa({ |
| 2539 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 2540 | debug: import.meta.env.DEV, |
| 2541 | auth: { |
| 2542 | type: "session", |
| 2543 | }, |
| 2544 | }) |
| 2545 | |
| 2546 | sdk.admin.campaign.retrieve("procamp_123") |
| 2547 | .then(({ campaign }) => { |
| 2548 | console.log(campaign) |
| 2549 | }) |
| 2550 | - lang: Shell |
| 2551 | label: cURL |
| 2552 | source: |- |
| 2553 | curl '{backend_url}/admin/campaigns/{id}' \ |
| 2554 | -H 'Authorization: Bearer {jwt_token}' |
| 2555 | tags: |
| 2556 | - Campaigns |
| 2557 | responses: |
| 2558 | '200': |
| 2559 | description: OK |
| 2560 | content: |
| 2561 | application/json: |
| 2562 | schema: |
| 2563 | $ref: '#/components/schemas/AdminCampaignResponse' |
| 2564 | '400': |
| 2565 | $ref: '#/components/responses/400_error' |
| 2566 | '401': |
| 2567 | $ref: '#/components/responses/unauthorized' |
| 2568 | '404': |
| 2569 | $ref: '#/components/responses/not_found_error' |
| 2570 | '409': |
| 2571 | $ref: '#/components/responses/invalid_state_error' |
| 2572 | '422': |
| 2573 | $ref: '#/components/responses/invalid_request_error' |
| 2574 | '500': |
| 2575 | $ref: '#/components/responses/500_error' |
| 2576 | post: |
| 2577 | operationId: PostCampaignsId |
| 2578 | summary: Update a Campaign |
| 2579 | description: Update a campaign's details. |
| 2580 | x-authenticated: true |
| 2581 | parameters: |
| 2582 | - name: id |
| 2583 | in: path |
| 2584 | description: The campaign's ID. |
| 2585 | required: true |
| 2586 | schema: |
| 2587 | type: string |
| 2588 | - name: fields |
| 2589 | in: query |
| 2590 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2591 | required: false |
| 2592 | schema: |
| 2593 | type: string |
| 2594 | title: fields |
| 2595 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2596 | externalDocs: |
| 2597 | url: '#select-fields-and-relations' |
| 2598 | security: |
| 2599 | - api_token: [] |
| 2600 | - cookie_auth: [] |
| 2601 | - jwt_token: [] |
| 2602 | requestBody: |
| 2603 | content: |
| 2604 | application/json: |
| 2605 | schema: |
| 2606 | allOf: |
| 2607 | - type: object |
| 2608 | description: The campaign's details. |
| 2609 | required: |
| 2610 | - description |
| 2611 | - starts_at |
| 2612 | - ends_at |
| 2613 | properties: |
| 2614 | name: |
| 2615 | type: string |
| 2616 | title: name |
| 2617 | description: The campaign's name. |
| 2618 | campaign_identifier: |
| 2619 | type: string |
| 2620 | title: campaign_identifier |
| 2621 | description: The campaign's identifier. |
| 2622 | description: |
| 2623 | type: string |
| 2624 | title: description |
| 2625 | description: The campaign's description. |
| 2626 | budget: |
| 2627 | type: object |
| 2628 | description: The campaign's budget. |
| 2629 | required: |
| 2630 | - limit |
| 2631 | properties: |
| 2632 | limit: |
| 2633 | type: number |
| 2634 | title: limit |
| 2635 | description: The campaign budget's limit. |
| 2636 | starts_at: |
| 2637 | type: string |
| 2638 | title: starts_at |
| 2639 | description: The campaign's start date. |
| 2640 | format: date-time |
| 2641 | ends_at: |
| 2642 | type: string |
| 2643 | title: ends_at |
| 2644 | description: The campaign's end date. |
| 2645 | format: date-time |
| 2646 | promotions: |
| 2647 | type: array |
| 2648 | description: The campaign's promotions. |
| 2649 | items: |
| 2650 | type: object |
| 2651 | description: The promotions to add to the campaign. |
| 2652 | required: |
| 2653 | - id |
| 2654 | properties: |
| 2655 | id: |
| 2656 | type: string |
| 2657 | title: id |
| 2658 | description: A promotion's ID. |
| 2659 | - type: object |
| 2660 | description: The campaign's details. |
| 2661 | properties: |
| 2662 | additional_data: |
| 2663 | type: object |
| 2664 | description: Pass additional custom data to the API route. This data is passed to the underlying workflow under the `additional_data` parameter. |
| 2665 | description: The campaign's details. |
| 2666 | x-codeSamples: |
| 2667 | - lang: JavaScript |
| 2668 | label: JS SDK |
| 2669 | source: |- |
| 2670 | import Medusa from "@medusajs/js-sdk" |
| 2671 | |
| 2672 | export const sdk = new Medusa({ |
| 2673 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 2674 | debug: import.meta.env.DEV, |
| 2675 | auth: { |
| 2676 | type: "session", |
| 2677 | }, |
| 2678 | }) |
| 2679 | |
| 2680 | sdk.admin.campaign.update("procamp_123", { |
| 2681 | name: "Summer Campaign" |
| 2682 | }) |
| 2683 | .then(({ campaign }) => { |
| 2684 | console.log(campaign) |
| 2685 | }) |
| 2686 | - lang: Shell |
| 2687 | label: cURL |
| 2688 | source: |- |
| 2689 | curl -X POST '{backend_url}/admin/campaigns/{id}' \ |
| 2690 | -H 'Authorization: Bearer {jwt_token}' \ |
| 2691 | -H 'Content-Type: application/json' \ |
| 2692 | --data-raw '{ |
| 2693 | "description": "{value}", |
| 2694 | "starts_at": "2024-08-10T14:44:10.530Z", |
| 2695 | "ends_at": "2024-07-13T17:45:37.462Z" |
| 2696 | }' |
| 2697 | tags: |
| 2698 | - Campaigns |
| 2699 | responses: |
| 2700 | '200': |
| 2701 | description: OK |
| 2702 | content: |
| 2703 | application/json: |
| 2704 | schema: |
| 2705 | $ref: '#/components/schemas/AdminCampaignResponse' |
| 2706 | '400': |
| 2707 | $ref: '#/components/responses/400_error' |
| 2708 | '401': |
| 2709 | $ref: '#/components/responses/unauthorized' |
| 2710 | '404': |
| 2711 | $ref: '#/components/responses/not_found_error' |
| 2712 | '409': |
| 2713 | $ref: '#/components/responses/invalid_state_error' |
| 2714 | '422': |
| 2715 | $ref: '#/components/responses/invalid_request_error' |
| 2716 | '500': |
| 2717 | $ref: '#/components/responses/500_error' |
| 2718 | x-workflow: updateCampaignsWorkflow |
| 2719 | x-events: [] |
| 2720 | delete: |
| 2721 | operationId: DeleteCampaignsId |
| 2722 | summary: Delete a Campaign |
| 2723 | description: | |
| 2724 | Delete a campaign by its ID. This doesn't delete promotions that belong to this campaign. |
| 2725 | x-authenticated: true |
| 2726 | parameters: |
| 2727 | - name: id |
| 2728 | in: path |
| 2729 | description: The campaign's ID. |
| 2730 | required: true |
| 2731 | schema: |
| 2732 | type: string |
| 2733 | security: |
| 2734 | - api_token: [] |
| 2735 | - cookie_auth: [] |
| 2736 | - jwt_token: [] |
| 2737 | x-codeSamples: |
| 2738 | - lang: JavaScript |
| 2739 | label: JS SDK |
| 2740 | source: |- |
| 2741 | import Medusa from "@medusajs/js-sdk" |
| 2742 | |
| 2743 | export const sdk = new Medusa({ |
| 2744 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 2745 | debug: import.meta.env.DEV, |
| 2746 | auth: { |
| 2747 | type: "session", |
| 2748 | }, |
| 2749 | }) |
| 2750 | |
| 2751 | sdk.admin.campaign.delete("procamp_123") |
| 2752 | .then(({ deleted }) => { |
| 2753 | console.log(deleted) |
| 2754 | }) |
| 2755 | - lang: Shell |
| 2756 | label: cURL |
| 2757 | source: |- |
| 2758 | curl -X DELETE '{backend_url}/admin/campaigns/{id}' \ |
| 2759 | -H 'Authorization: Bearer {jwt_token}' |
| 2760 | tags: |
| 2761 | - Campaigns |
| 2762 | responses: |
| 2763 | '200': |
| 2764 | description: OK |
| 2765 | content: |
| 2766 | application/json: |
| 2767 | schema: |
| 2768 | type: object |
| 2769 | description: The deletion's details. |
| 2770 | required: |
| 2771 | - id |
| 2772 | - object |
| 2773 | - deleted |
| 2774 | properties: |
| 2775 | id: |
| 2776 | type: string |
| 2777 | title: id |
| 2778 | description: The campaign's ID. |
| 2779 | object: |
| 2780 | type: string |
| 2781 | title: object |
| 2782 | description: The name of the object that was deleted. |
| 2783 | default: campaign |
| 2784 | deleted: |
| 2785 | type: boolean |
| 2786 | title: deleted |
| 2787 | description: Whether the campaign was deleted. |
| 2788 | '400': |
| 2789 | $ref: '#/components/responses/400_error' |
| 2790 | '401': |
| 2791 | $ref: '#/components/responses/unauthorized' |
| 2792 | '404': |
| 2793 | $ref: '#/components/responses/not_found_error' |
| 2794 | '409': |
| 2795 | $ref: '#/components/responses/invalid_state_error' |
| 2796 | '422': |
| 2797 | $ref: '#/components/responses/invalid_request_error' |
| 2798 | '500': |
| 2799 | $ref: '#/components/responses/500_error' |
| 2800 | x-workflow: deleteCampaignsWorkflow |
| 2801 | x-events: [] |
| 2802 | /admin/campaigns/{id}/promotions: |
| 2803 | post: |
| 2804 | operationId: PostCampaignsIdPromotions |
| 2805 | summary: Manage the Promotions of a Campaign |
| 2806 | x-sidebar-summary: Manage Promotions |
| 2807 | description: Manage the promotions of a campaign, either by adding them or removing them from the campaign. |
| 2808 | x-authenticated: true |
| 2809 | parameters: |
| 2810 | - name: id |
| 2811 | in: path |
| 2812 | description: The campaign's ID. |
| 2813 | required: true |
| 2814 | schema: |
| 2815 | type: string |
| 2816 | - name: fields |
| 2817 | in: query |
| 2818 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2819 | required: false |
| 2820 | schema: |
| 2821 | type: string |
| 2822 | title: fields |
| 2823 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2824 | externalDocs: |
| 2825 | url: '#select-fields-and-relations' |
| 2826 | security: |
| 2827 | - api_token: [] |
| 2828 | - cookie_auth: [] |
| 2829 | - jwt_token: [] |
| 2830 | requestBody: |
| 2831 | content: |
| 2832 | application/json: |
| 2833 | schema: |
| 2834 | $ref: '#/components/schemas/AdminBatchLink' |
| 2835 | x-codeSamples: |
| 2836 | - lang: JavaScript |
| 2837 | label: JS SDK |
| 2838 | source: |- |
| 2839 | import Medusa from "@medusajs/js-sdk" |
| 2840 | |
| 2841 | export const sdk = new Medusa({ |
| 2842 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 2843 | debug: import.meta.env.DEV, |
| 2844 | auth: { |
| 2845 | type: "session", |
| 2846 | }, |
| 2847 | }) |
| 2848 | |
| 2849 | sdk.admin.campaign.batchPromotions("procamp_123", { |
| 2850 | add: ["prom_123", "prom_456"], |
| 2851 | remove: ["prom_789"] |
| 2852 | }) |
| 2853 | .then(({ campaign }) => { |
| 2854 | console.log(campaign) |
| 2855 | }) |
| 2856 | - lang: Shell |
| 2857 | label: cURL |
| 2858 | source: |- |
| 2859 | curl -X POST '{backend_url}/admin/campaigns/{id}/promotions' \ |
| 2860 | -H 'Authorization: Bearer {jwt_token}' |
| 2861 | tags: |
| 2862 | - Campaigns |
| 2863 | responses: |
| 2864 | '200': |
| 2865 | description: OK |
| 2866 | content: |
| 2867 | application/json: |
| 2868 | schema: |
| 2869 | $ref: '#/components/schemas/AdminCampaignResponse' |
| 2870 | '400': |
| 2871 | $ref: '#/components/responses/400_error' |
| 2872 | '401': |
| 2873 | $ref: '#/components/responses/unauthorized' |
| 2874 | '404': |
| 2875 | $ref: '#/components/responses/not_found_error' |
| 2876 | '409': |
| 2877 | $ref: '#/components/responses/invalid_state_error' |
| 2878 | '422': |
| 2879 | $ref: '#/components/responses/invalid_request_error' |
| 2880 | '500': |
| 2881 | $ref: '#/components/responses/500_error' |
| 2882 | x-workflow: addOrRemoveCampaignPromotionsWorkflow |
| 2883 | x-events: [] |
| 2884 | /admin/claims: |
| 2885 | get: |
| 2886 | operationId: GetClaims |
| 2887 | summary: List Claims |
| 2888 | description: Retrieve a list of claims. The claims can be filtered by fields such as `id`. The claims can also be sorted or paginated. |
| 2889 | x-authenticated: true |
| 2890 | parameters: |
| 2891 | - name: fields |
| 2892 | in: query |
| 2893 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2894 | required: false |
| 2895 | schema: |
| 2896 | type: string |
| 2897 | title: fields |
| 2898 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 2899 | externalDocs: |
| 2900 | url: '#select-fields-and-relations' |
| 2901 | - name: offset |
| 2902 | in: query |
| 2903 | description: The number of items to skip when retrieving a list. |
| 2904 | required: false |
| 2905 | schema: |
| 2906 | type: number |
| 2907 | title: offset |
| 2908 | description: The number of items to skip when retrieving a list. |
| 2909 | externalDocs: |
| 2910 | url: '#pagination' |
| 2911 | - name: limit |
| 2912 | in: query |
| 2913 | description: Limit the number of items returned in the list. |
| 2914 | required: false |
| 2915 | schema: |
| 2916 | type: number |
| 2917 | title: limit |
| 2918 | description: Limit the number of items returned in the list. |
| 2919 | externalDocs: |
| 2920 | url: '#pagination' |
| 2921 | - name: order |
| 2922 | in: query |
| 2923 | 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 `-`. |
| 2924 | required: false |
| 2925 | schema: |
| 2926 | type: string |
| 2927 | title: order |
| 2928 | 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 `-`. |
| 2929 | - name: deleted_at |
| 2930 | in: query |
| 2931 | description: Filter by the claim's deletion date. |
| 2932 | required: false |
| 2933 | schema: |
| 2934 | type: object |
| 2935 | description: The claim's deletion date. |
| 2936 | properties: |
| 2937 | $and: |
| 2938 | type: array |
| 2939 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 2940 | items: |
| 2941 | type: object |
| 2942 | title: $and |
| 2943 | $or: |
| 2944 | type: array |
| 2945 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 2946 | items: |
| 2947 | type: object |
| 2948 | title: $or |
| 2949 | $eq: |
| 2950 | oneOf: |
| 2951 | - type: string |
| 2952 | title: $eq |
| 2953 | description: Filter by an exact match. |
| 2954 | - type: array |
| 2955 | description: Filter by an exact match. |
| 2956 | items: |
| 2957 | type: string |
| 2958 | title: $eq |
| 2959 | description: Filter by an exact match. |
| 2960 | $ne: |
| 2961 | type: string |
| 2962 | title: $ne |
| 2963 | description: Filter by values not equal to this parameter. |
| 2964 | $in: |
| 2965 | type: array |
| 2966 | description: Filter by values in this array. |
| 2967 | items: |
| 2968 | type: string |
| 2969 | title: $in |
| 2970 | description: Filter by values in this array. |
| 2971 | $nin: |
| 2972 | type: array |
| 2973 | description: Filter by values not in this array. |
| 2974 | items: |
| 2975 | type: string |
| 2976 | title: $nin |
| 2977 | description: Filter by values not in this array. |
| 2978 | $not: |
| 2979 | oneOf: |
| 2980 | - type: string |
| 2981 | title: $not |
| 2982 | description: Filter by values not matching the conditions in this parameter. |
| 2983 | - type: object |
| 2984 | description: Filter by values not matching the conditions in this parameter. |
| 2985 | properties: |
| 2986 | $and: |
| 2987 | type: array |
| 2988 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 2989 | items: |
| 2990 | type: object |
| 2991 | title: $and |
| 2992 | $or: |
| 2993 | type: array |
| 2994 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 2995 | items: |
| 2996 | type: object |
| 2997 | title: $or |
| 2998 | $eq: |
| 2999 | oneOf: |
| 3000 | - type: string |
| 3001 | title: $eq |
| 3002 | description: Filter by an exact match. |
| 3003 | - type: array |
| 3004 | description: Filter by an exact match. |
| 3005 | items: |
| 3006 | type: string |
| 3007 | title: $eq |
| 3008 | description: Filter by an exact match. |
| 3009 | $ne: |
| 3010 | type: string |
| 3011 | title: $ne |
| 3012 | description: Filter by values not equal to this parameter. |
| 3013 | $in: |
| 3014 | type: array |
| 3015 | description: Filter by values in this array. |
| 3016 | items: |
| 3017 | type: string |
| 3018 | title: $in |
| 3019 | description: Filter by values in this array. |
| 3020 | $nin: |
| 3021 | type: array |
| 3022 | description: Filter by values not in this array. |
| 3023 | items: |
| 3024 | type: string |
| 3025 | title: $nin |
| 3026 | description: Filter by values not in this array. |
| 3027 | $not: |
| 3028 | oneOf: |
| 3029 | - type: string |
| 3030 | title: $not |
| 3031 | description: Filter by values not matching the conditions in this parameter. |
| 3032 | - type: object |
| 3033 | description: Filter by values not matching the conditions in this parameter. |
| 3034 | - type: array |
| 3035 | description: Filter by values not matching the conditions in this parameter. |
| 3036 | items: |
| 3037 | type: string |
| 3038 | title: $not |
| 3039 | description: Filter by values not matching the conditions in this parameter. |
| 3040 | $gt: |
| 3041 | type: string |
| 3042 | title: $gt |
| 3043 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 3044 | $gte: |
| 3045 | type: string |
| 3046 | title: $gte |
| 3047 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 3048 | $lt: |
| 3049 | type: string |
| 3050 | title: $lt |
| 3051 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 3052 | $lte: |
| 3053 | type: string |
| 3054 | title: $lte |
| 3055 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 3056 | $like: |
| 3057 | type: string |
| 3058 | title: $like |
| 3059 | description: Apply a `like` filter. Useful for strings only. |
| 3060 | $re: |
| 3061 | type: string |
| 3062 | title: $re |
| 3063 | description: Apply a regex filter. Useful for strings only. |
| 3064 | $ilike: |
| 3065 | type: string |
| 3066 | title: $ilike |
| 3067 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 3068 | $fulltext: |
| 3069 | type: string |
| 3070 | title: $fulltext |
| 3071 | description: Filter to apply on full-text properties. |
| 3072 | $overlap: |
| 3073 | type: array |
| 3074 | description: Filter arrays that have overlapping values with this parameter. |
| 3075 | items: |
| 3076 | type: string |
| 3077 | title: $overlap |
| 3078 | description: Filter arrays that have overlapping values with this parameter. |
| 3079 | $contains: |
| 3080 | type: array |
| 3081 | description: Filter arrays that contain some of the values of this parameter. |
| 3082 | items: |
| 3083 | type: string |
| 3084 | title: $contains |
| 3085 | description: Filter arrays that contain some of the values of this parameter. |
| 3086 | $contained: |
| 3087 | type: array |
| 3088 | description: Filter arrays that contain all values of this parameter. |
| 3089 | items: |
| 3090 | type: string |
| 3091 | title: $contained |
| 3092 | description: Filter arrays that contain all values of this parameter. |
| 3093 | $exists: |
| 3094 | type: boolean |
| 3095 | title: $exists |
| 3096 | description: Filter by whether a value for this parameter exists (not `null`). |
| 3097 | - type: array |
| 3098 | description: Filter by values not matching the conditions in this parameter. |
| 3099 | items: |
| 3100 | type: string |
| 3101 | title: $not |
| 3102 | description: Filter by values not matching the conditions in this parameter. |
| 3103 | $gt: |
| 3104 | type: string |
| 3105 | title: $gt |
| 3106 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 3107 | $gte: |
| 3108 | type: string |
| 3109 | title: $gte |
| 3110 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 3111 | $lt: |
| 3112 | type: string |
| 3113 | title: $lt |
| 3114 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 3115 | $lte: |
| 3116 | type: string |
| 3117 | title: $lte |
| 3118 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 3119 | $like: |
| 3120 | type: string |
| 3121 | title: $like |
| 3122 | description: Apply a `like` filter. Useful for strings only. |
| 3123 | $re: |
| 3124 | type: string |
| 3125 | title: $re |
| 3126 | description: Apply a regex filter. Useful for strings only. |
| 3127 | $ilike: |
| 3128 | type: string |
| 3129 | title: $ilike |
| 3130 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 3131 | $fulltext: |
| 3132 | type: string |
| 3133 | title: $fulltext |
| 3134 | description: Filter to apply on full-text properties. |
| 3135 | $overlap: |
| 3136 | type: array |
| 3137 | description: Filter arrays that have overlapping values with this parameter. |
| 3138 | items: |
| 3139 | type: string |
| 3140 | title: $overlap |
| 3141 | description: Filter arrays that have overlapping values with this parameter. |
| 3142 | $contains: |
| 3143 | type: array |
| 3144 | description: Filter arrays that contain some of the values of this parameter. |
| 3145 | items: |
| 3146 | type: string |
| 3147 | title: $contains |
| 3148 | description: Filter arrays that contain some of the values of this parameter. |
| 3149 | $contained: |
| 3150 | type: array |
| 3151 | description: Filter arrays that contain all values of this parameter. |
| 3152 | items: |
| 3153 | type: string |
| 3154 | title: $contained |
| 3155 | description: Filter arrays that contain all values of this parameter. |
| 3156 | $exists: |
| 3157 | type: boolean |
| 3158 | title: $exists |
| 3159 | description: Filter by whether a value for this parameter exists (not `null`). |
| 3160 | title: deleted_at |
| 3161 | - name: id |
| 3162 | in: query |
| 3163 | required: false |
| 3164 | schema: |
| 3165 | oneOf: |
| 3166 | - type: string |
| 3167 | title: id |
| 3168 | description: The claim's ID. |
| 3169 | - type: array |
| 3170 | description: The claim's ID. |
| 3171 | items: |
| 3172 | type: string |
| 3173 | title: id |
| 3174 | description: The id's ID. |
| 3175 | - name: order_id |
| 3176 | in: query |
| 3177 | required: false |
| 3178 | schema: |
| 3179 | oneOf: |
| 3180 | - type: string |
| 3181 | title: order_id |
| 3182 | description: The claim's order id. |
| 3183 | - type: array |
| 3184 | description: The claim's order id. |
| 3185 | items: |
| 3186 | type: string |
| 3187 | title: order_id |
| 3188 | description: The order id's details. |
| 3189 | - name: status |
| 3190 | in: query |
| 3191 | required: false |
| 3192 | schema: |
| 3193 | oneOf: |
| 3194 | - type: string |
| 3195 | title: status |
| 3196 | description: Filter by the claim's status. |
| 3197 | - type: array |
| 3198 | description: Filter by the claim's status. |
| 3199 | items: |
| 3200 | type: string |
| 3201 | title: status |
| 3202 | description: The claim's status. |
| 3203 | - name: created_at |
| 3204 | in: query |
| 3205 | description: Filter by the claim's creation date. |
| 3206 | required: false |
| 3207 | schema: |
| 3208 | type: object |
| 3209 | description: The claim's creation date. |
| 3210 | properties: |
| 3211 | $and: |
| 3212 | type: array |
| 3213 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 3214 | items: |
| 3215 | type: object |
| 3216 | title: $and |
| 3217 | $or: |
| 3218 | type: array |
| 3219 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 3220 | items: |
| 3221 | type: object |
| 3222 | title: $or |
| 3223 | $eq: |
| 3224 | oneOf: |
| 3225 | - type: string |
| 3226 | title: $eq |
| 3227 | description: Filter by an exact match. |
| 3228 | - type: array |
| 3229 | description: Filter by an exact match. |
| 3230 | items: |
| 3231 | type: string |
| 3232 | title: $eq |
| 3233 | description: Filter by an exact match. |
| 3234 | $ne: |
| 3235 | type: string |
| 3236 | title: $ne |
| 3237 | description: Filter by values not equal to this parameter. |
| 3238 | $in: |
| 3239 | type: array |
| 3240 | description: Filter by values in this array. |
| 3241 | items: |
| 3242 | type: string |
| 3243 | title: $in |
| 3244 | description: Filter by values in this array. |
| 3245 | $nin: |
| 3246 | type: array |
| 3247 | description: Filter by values not in this array. |
| 3248 | items: |
| 3249 | type: string |
| 3250 | title: $nin |
| 3251 | description: Filter by values not in this array. |
| 3252 | $not: |
| 3253 | oneOf: |
| 3254 | - type: string |
| 3255 | title: $not |
| 3256 | description: Filter by values not matching the conditions in this parameter. |
| 3257 | - type: object |
| 3258 | description: Filter by values not matching the conditions in this parameter. |
| 3259 | properties: |
| 3260 | $and: |
| 3261 | type: array |
| 3262 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 3263 | items: |
| 3264 | type: object |
| 3265 | title: $and |
| 3266 | $or: |
| 3267 | type: array |
| 3268 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 3269 | items: |
| 3270 | type: object |
| 3271 | title: $or |
| 3272 | $eq: |
| 3273 | oneOf: |
| 3274 | - type: string |
| 3275 | title: $eq |
| 3276 | description: Filter by an exact match. |
| 3277 | - type: array |
| 3278 | description: Filter by an exact match. |
| 3279 | items: |
| 3280 | type: string |
| 3281 | title: $eq |
| 3282 | description: Filter by an exact match. |
| 3283 | $ne: |
| 3284 | type: string |
| 3285 | title: $ne |
| 3286 | description: Filter by values not equal to this parameter. |
| 3287 | $in: |
| 3288 | type: array |
| 3289 | description: Filter by values in this array. |
| 3290 | items: |
| 3291 | type: string |
| 3292 | title: $in |
| 3293 | description: Filter by values in this array. |
| 3294 | $nin: |
| 3295 | type: array |
| 3296 | description: Filter by values not in this array. |
| 3297 | items: |
| 3298 | type: string |
| 3299 | title: $nin |
| 3300 | description: Filter by values not in this array. |
| 3301 | $not: |
| 3302 | oneOf: |
| 3303 | - type: string |
| 3304 | title: $not |
| 3305 | description: Filter by values not matching the conditions in this parameter. |
| 3306 | - type: object |
| 3307 | description: Filter by values not matching the conditions in this parameter. |
| 3308 | - type: array |
| 3309 | description: Filter by values not matching the conditions in this parameter. |
| 3310 | items: |
| 3311 | type: string |
| 3312 | title: $not |
| 3313 | description: Filter by values not matching the conditions in this parameter. |
| 3314 | $gt: |
| 3315 | type: string |
| 3316 | title: $gt |
| 3317 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 3318 | $gte: |
| 3319 | type: string |
| 3320 | title: $gte |
| 3321 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 3322 | $lt: |
| 3323 | type: string |
| 3324 | title: $lt |
| 3325 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 3326 | $lte: |
| 3327 | type: string |
| 3328 | title: $lte |
| 3329 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 3330 | $like: |
| 3331 | type: string |
| 3332 | title: $like |
| 3333 | description: Apply a `like` filter. Useful for strings only. |
| 3334 | $re: |
| 3335 | type: string |
| 3336 | title: $re |
| 3337 | description: Apply a regex filter. Useful for strings only. |
| 3338 | $ilike: |
| 3339 | type: string |
| 3340 | title: $ilike |
| 3341 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 3342 | $fulltext: |
| 3343 | type: string |
| 3344 | title: $fulltext |
| 3345 | description: Filter to apply on full-text properties. |
| 3346 | $overlap: |
| 3347 | type: array |
| 3348 | description: Filter arrays that have overlapping values with this parameter. |
| 3349 | items: |
| 3350 | type: string |
| 3351 | title: $overlap |
| 3352 | description: Filter arrays that have overlapping values with this parameter. |
| 3353 | $contains: |
| 3354 | type: array |
| 3355 | description: Filter arrays that contain some of the values of this parameter. |
| 3356 | items: |
| 3357 | type: string |
| 3358 | title: $contains |
| 3359 | description: Filter arrays that contain some of the values of this parameter. |
| 3360 | $contained: |
| 3361 | type: array |
| 3362 | description: Filter arrays that contain all values of this parameter. |
| 3363 | items: |
| 3364 | type: string |
| 3365 | title: $contained |
| 3366 | description: Filter arrays that contain all values of this parameter. |
| 3367 | $exists: |
| 3368 | type: boolean |
| 3369 | title: $exists |
| 3370 | description: Filter by whether a value for this parameter exists (not `null`). |
| 3371 | - type: array |
| 3372 | description: Filter by values not matching the conditions in this parameter. |
| 3373 | items: |
| 3374 | type: string |
| 3375 | title: $not |
| 3376 | description: Filter by values not matching the conditions in this parameter. |
| 3377 | $gt: |
| 3378 | type: string |
| 3379 | title: $gt |
| 3380 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 3381 | $gte: |
| 3382 | type: string |
| 3383 | title: $gte |
| 3384 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 3385 | $lt: |
| 3386 | type: string |
| 3387 | title: $lt |
| 3388 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 3389 | $lte: |
| 3390 | type: string |
| 3391 | title: $lte |
| 3392 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 3393 | $like: |
| 3394 | type: string |
| 3395 | title: $like |
| 3396 | description: Apply a `like` filter. Useful for strings only. |
| 3397 | $re: |
| 3398 | type: string |
| 3399 | title: $re |
| 3400 | description: Apply a regex filter. Useful for strings only. |
| 3401 | $ilike: |
| 3402 | type: string |
| 3403 | title: $ilike |
| 3404 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 3405 | $fulltext: |
| 3406 | type: string |
| 3407 | title: $fulltext |
| 3408 | description: Filter to apply on full-text properties. |
| 3409 | $overlap: |
| 3410 | type: array |
| 3411 | description: Filter arrays that have overlapping values with this parameter. |
| 3412 | items: |
| 3413 | type: string |
| 3414 | title: $overlap |
| 3415 | description: Filter arrays that have overlapping values with this parameter. |
| 3416 | $contains: |
| 3417 | type: array |
| 3418 | description: Filter arrays that contain some of the values of this parameter. |
| 3419 | items: |
| 3420 | type: string |
| 3421 | title: $contains |
| 3422 | description: Filter arrays that contain some of the values of this parameter. |
| 3423 | $contained: |
| 3424 | type: array |
| 3425 | description: Filter arrays that contain all values of this parameter. |
| 3426 | items: |
| 3427 | type: string |
| 3428 | title: $contained |
| 3429 | description: Filter arrays that contain all values of this parameter. |
| 3430 | $exists: |
| 3431 | type: boolean |
| 3432 | title: $exists |
| 3433 | description: Filter by whether a value for this parameter exists (not `null`). |
| 3434 | title: created_at |
| 3435 | - name: updated_at |
| 3436 | in: query |
| 3437 | description: Filter by the claim's update date. |
| 3438 | required: false |
| 3439 | schema: |
| 3440 | type: object |
| 3441 | description: The claim's update date. |
| 3442 | properties: |
| 3443 | $and: |
| 3444 | type: array |
| 3445 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 3446 | items: |
| 3447 | type: object |
| 3448 | title: $and |
| 3449 | $or: |
| 3450 | type: array |
| 3451 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 3452 | items: |
| 3453 | type: object |
| 3454 | title: $or |
| 3455 | $eq: |
| 3456 | oneOf: |
| 3457 | - type: string |
| 3458 | title: $eq |
| 3459 | description: Filter by an exact match. |
| 3460 | - type: array |
| 3461 | description: Filter by an exact match. |
| 3462 | items: |
| 3463 | type: string |
| 3464 | title: $eq |
| 3465 | description: Filter by an exact match. |
| 3466 | $ne: |
| 3467 | type: string |
| 3468 | title: $ne |
| 3469 | description: Filter by values not equal to this parameter. |
| 3470 | $in: |
| 3471 | type: array |
| 3472 | description: Filter by values in this array. |
| 3473 | items: |
| 3474 | type: string |
| 3475 | title: $in |
| 3476 | description: Filter by values in this array. |
| 3477 | $nin: |
| 3478 | type: array |
| 3479 | description: Filter by values not in this array. |
| 3480 | items: |
| 3481 | type: string |
| 3482 | title: $nin |
| 3483 | description: Filter by values not in this array. |
| 3484 | $not: |
| 3485 | oneOf: |
| 3486 | - type: string |
| 3487 | title: $not |
| 3488 | description: Filter by values not matching the conditions in this parameter. |
| 3489 | - type: object |
| 3490 | description: Filter by values not matching the conditions in this parameter. |
| 3491 | properties: |
| 3492 | $and: |
| 3493 | type: array |
| 3494 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 3495 | items: |
| 3496 | type: object |
| 3497 | title: $and |
| 3498 | $or: |
| 3499 | type: array |
| 3500 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 3501 | items: |
| 3502 | type: object |
| 3503 | title: $or |
| 3504 | $eq: |
| 3505 | oneOf: |
| 3506 | - type: string |
| 3507 | title: $eq |
| 3508 | description: Filter by an exact match. |
| 3509 | - type: array |
| 3510 | description: Filter by an exact match. |
| 3511 | items: |
| 3512 | type: string |
| 3513 | title: $eq |
| 3514 | description: Filter by an exact match. |
| 3515 | $ne: |
| 3516 | type: string |
| 3517 | title: $ne |
| 3518 | description: Filter by values not equal to this parameter. |
| 3519 | $in: |
| 3520 | type: array |
| 3521 | description: Filter by values in this array. |
| 3522 | items: |
| 3523 | type: string |
| 3524 | title: $in |
| 3525 | description: Filter by values in this array. |
| 3526 | $nin: |
| 3527 | type: array |
| 3528 | description: Filter by values not in this array. |
| 3529 | items: |
| 3530 | type: string |
| 3531 | title: $nin |
| 3532 | description: Filter by values not in this array. |
| 3533 | $not: |
| 3534 | oneOf: |
| 3535 | - type: string |
| 3536 | title: $not |
| 3537 | description: Filter by values not matching the conditions in this parameter. |
| 3538 | - type: object |
| 3539 | description: Filter by values not matching the conditions in this parameter. |
| 3540 | - type: array |
| 3541 | description: Filter by values not matching the conditions in this parameter. |
| 3542 | items: |
| 3543 | type: string |
| 3544 | title: $not |
| 3545 | description: Filter by values not matching the conditions in this parameter. |
| 3546 | $gt: |
| 3547 | type: string |
| 3548 | title: $gt |
| 3549 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 3550 | $gte: |
| 3551 | type: string |
| 3552 | title: $gte |
| 3553 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 3554 | $lt: |
| 3555 | type: string |
| 3556 | title: $lt |
| 3557 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 3558 | $lte: |
| 3559 | type: string |
| 3560 | title: $lte |
| 3561 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 3562 | $like: |
| 3563 | type: string |
| 3564 | title: $like |
| 3565 | description: Apply a `like` filter. Useful for strings only. |
| 3566 | $re: |
| 3567 | type: string |
| 3568 | title: $re |
| 3569 | description: Apply a regex filter. Useful for strings only. |
| 3570 | $ilike: |
| 3571 | type: string |
| 3572 | title: $ilike |
| 3573 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 3574 | $fulltext: |
| 3575 | type: string |
| 3576 | title: $fulltext |
| 3577 | description: Filter to apply on full-text properties. |
| 3578 | $overlap: |
| 3579 | type: array |
| 3580 | description: Filter arrays that have overlapping values with this parameter. |
| 3581 | items: |
| 3582 | type: string |
| 3583 | title: $overlap |
| 3584 | description: Filter arrays that have overlapping values with this parameter. |
| 3585 | $contains: |
| 3586 | type: array |
| 3587 | description: Filter arrays that contain some of the values of this parameter. |
| 3588 | items: |
| 3589 | type: string |
| 3590 | title: $contains |
| 3591 | description: Filter arrays that contain some of the values of this parameter. |
| 3592 | $contained: |
| 3593 | type: array |
| 3594 | description: Filter arrays that contain all values of this parameter. |
| 3595 | items: |
| 3596 | type: string |
| 3597 | title: $contained |
| 3598 | description: Filter arrays that contain all values of this parameter. |
| 3599 | $exists: |
| 3600 | type: boolean |
| 3601 | title: $exists |
| 3602 | description: Filter by whether a value for this parameter exists (not `null`). |
| 3603 | - type: array |
| 3604 | description: Filter by values not matching the conditions in this parameter. |
| 3605 | items: |
| 3606 | type: string |
| 3607 | title: $not |
| 3608 | description: Filter by values not matching the conditions in this parameter. |
| 3609 | $gt: |
| 3610 | type: string |
| 3611 | title: $gt |
| 3612 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 3613 | $gte: |
| 3614 | type: string |
| 3615 | title: $gte |
| 3616 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 3617 | $lt: |
| 3618 | type: string |
| 3619 | title: $lt |
| 3620 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 3621 | $lte: |
| 3622 | type: string |
| 3623 | title: $lte |
| 3624 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 3625 | $like: |
| 3626 | type: string |
| 3627 | title: $like |
| 3628 | description: Apply a `like` filter. Useful for strings only. |
| 3629 | $re: |
| 3630 | type: string |
| 3631 | title: $re |
| 3632 | description: Apply a regex filter. Useful for strings only. |
| 3633 | $ilike: |
| 3634 | type: string |
| 3635 | title: $ilike |
| 3636 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 3637 | $fulltext: |
| 3638 | type: string |
| 3639 | title: $fulltext |
| 3640 | description: Filter to apply on full-text properties. |
| 3641 | $overlap: |
| 3642 | type: array |
| 3643 | description: Filter arrays that have overlapping values with this parameter. |
| 3644 | items: |
| 3645 | type: string |
| 3646 | title: $overlap |
| 3647 | description: Filter arrays that have overlapping values with this parameter. |
| 3648 | $contains: |
| 3649 | type: array |
| 3650 | description: Filter arrays that contain some of the values of this parameter. |
| 3651 | items: |
| 3652 | type: string |
| 3653 | title: $contains |
| 3654 | description: Filter arrays that contain some of the values of this parameter. |
| 3655 | $contained: |
| 3656 | type: array |
| 3657 | description: Filter arrays that contain all values of this parameter. |
| 3658 | items: |
| 3659 | type: string |
| 3660 | title: $contained |
| 3661 | description: Filter arrays that contain all values of this parameter. |
| 3662 | $exists: |
| 3663 | type: boolean |
| 3664 | title: $exists |
| 3665 | description: Filter by whether a value for this parameter exists (not `null`). |
| 3666 | title: updated_at |
| 3667 | - name: $and |
| 3668 | in: query |
| 3669 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 3670 | required: false |
| 3671 | schema: |
| 3672 | type: array |
| 3673 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 3674 | items: |
| 3675 | type: object |
| 3676 | title: $and |
| 3677 | - name: $or |
| 3678 | in: query |
| 3679 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 3680 | required: false |
| 3681 | schema: |
| 3682 | type: array |
| 3683 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 3684 | items: |
| 3685 | type: object |
| 3686 | title: $or |
| 3687 | - name: with_deleted |
| 3688 | in: query |
| 3689 | description: Whether to include deleted records in the result. |
| 3690 | required: false |
| 3691 | schema: |
| 3692 | type: boolean |
| 3693 | title: with_deleted |
| 3694 | description: Whether to include deleted records in the result. |
| 3695 | security: |
| 3696 | - api_token: [] |
| 3697 | - cookie_auth: [] |
| 3698 | - jwt_token: [] |
| 3699 | x-codeSamples: |
| 3700 | - lang: JavaScript |
| 3701 | label: JS SDK |
| 3702 | source: |- |
| 3703 | import Medusa from "@medusajs/js-sdk" |
| 3704 | |
| 3705 | export const sdk = new Medusa({ |
| 3706 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 3707 | debug: import.meta.env.DEV, |
| 3708 | auth: { |
| 3709 | type: "session", |
| 3710 | }, |
| 3711 | }) |
| 3712 | |
| 3713 | sdk.admin.claim.list() |
| 3714 | .then(({ claims, count, limit, offset }) => { |
| 3715 | console.log(claims) |
| 3716 | }) |
| 3717 | - lang: Shell |
| 3718 | label: cURL |
| 3719 | source: |- |
| 3720 | curl '{backend_url}/admin/claims' \ |
| 3721 | -H 'Authorization: Bearer {jwt_token}' |
| 3722 | tags: |
| 3723 | - Claims |
| 3724 | responses: |
| 3725 | '200': |
| 3726 | description: OK |
| 3727 | content: |
| 3728 | application/json: |
| 3729 | schema: |
| 3730 | $ref: '#/components/schemas/AdminClaimListResponse' |
| 3731 | '400': |
| 3732 | $ref: '#/components/responses/400_error' |
| 3733 | '401': |
| 3734 | $ref: '#/components/responses/unauthorized' |
| 3735 | '404': |
| 3736 | $ref: '#/components/responses/not_found_error' |
| 3737 | '409': |
| 3738 | $ref: '#/components/responses/invalid_state_error' |
| 3739 | '422': |
| 3740 | $ref: '#/components/responses/invalid_request_error' |
| 3741 | '500': |
| 3742 | $ref: '#/components/responses/500_error' |
| 3743 | post: |
| 3744 | operationId: PostClaims |
| 3745 | summary: Create a Claim |
| 3746 | description: Create a claim. The claim is still in the request state, and the changes are only applied on the order once the claim is confirmed. |
| 3747 | x-authenticated: true |
| 3748 | parameters: |
| 3749 | - name: fields |
| 3750 | in: query |
| 3751 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 3752 | required: false |
| 3753 | schema: |
| 3754 | type: string |
| 3755 | title: fields |
| 3756 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 3757 | externalDocs: |
| 3758 | url: '#select-fields-and-relations' |
| 3759 | - name: id |
| 3760 | in: query |
| 3761 | required: false |
| 3762 | schema: |
| 3763 | oneOf: |
| 3764 | - type: string |
| 3765 | title: id |
| 3766 | description: Filter by the claim's ID. |
| 3767 | - type: array |
| 3768 | description: Filter by multiple claim IDs. |
| 3769 | items: |
| 3770 | type: string |
| 3771 | title: id |
| 3772 | description: A claim ID. |
| 3773 | - name: status |
| 3774 | in: query |
| 3775 | required: false |
| 3776 | schema: |
| 3777 | oneOf: |
| 3778 | - type: string |
| 3779 | title: status |
| 3780 | description: Filter by the claim's status. |
| 3781 | - type: array |
| 3782 | description: Filter by multiple claim statuses. |
| 3783 | items: |
| 3784 | type: string |
| 3785 | title: status |
| 3786 | description: A claim status. |
| 3787 | - name: created_at |
| 3788 | in: query |
| 3789 | description: Filter by a claim's creation date. |
| 3790 | required: false |
| 3791 | schema: |
| 3792 | type: object |
| 3793 | description: Filter by a claim's creation date. |
| 3794 | properties: |
| 3795 | $and: |
| 3796 | type: array |
| 3797 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 3798 | items: |
| 3799 | type: object |
| 3800 | title: $and |
| 3801 | $or: |
| 3802 | type: array |
| 3803 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 3804 | items: |
| 3805 | type: object |
| 3806 | title: $or |
| 3807 | $eq: |
| 3808 | oneOf: |
| 3809 | - type: string |
| 3810 | title: $eq |
| 3811 | description: Filter by an exact match. |
| 3812 | - type: array |
| 3813 | description: Filter by an exact match. |
| 3814 | items: |
| 3815 | type: string |
| 3816 | title: $eq |
| 3817 | description: Filter by an exact match. |
| 3818 | $ne: |
| 3819 | type: string |
| 3820 | title: $ne |
| 3821 | description: Filter by values not equal to this parameter. |
| 3822 | $in: |
| 3823 | type: array |
| 3824 | description: Filter by values in this array. |
| 3825 | items: |
| 3826 | type: string |
| 3827 | title: $in |
| 3828 | description: Filter by values in this array. |
| 3829 | $nin: |
| 3830 | type: array |
| 3831 | description: Filter by values not in this array. |
| 3832 | items: |
| 3833 | type: string |
| 3834 | title: $nin |
| 3835 | description: Filter by values not in this array. |
| 3836 | $not: |
| 3837 | oneOf: |
| 3838 | - type: string |
| 3839 | title: $not |
| 3840 | description: Filter by values not matching the conditions in this parameter. |
| 3841 | - type: object |
| 3842 | description: Filter by values not matching the conditions in this parameter. |
| 3843 | - type: array |
| 3844 | description: Filter by values not matching the conditions in this parameter. |
| 3845 | items: |
| 3846 | type: string |
| 3847 | title: $not |
| 3848 | description: Filter by values not matching the conditions in this parameter. |
| 3849 | $gt: |
| 3850 | type: string |
| 3851 | title: $gt |
| 3852 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 3853 | $gte: |
| 3854 | type: string |
| 3855 | title: $gte |
| 3856 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 3857 | $lt: |
| 3858 | type: string |
| 3859 | title: $lt |
| 3860 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 3861 | $lte: |
| 3862 | type: string |
| 3863 | title: $lte |
| 3864 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 3865 | $like: |
| 3866 | type: string |
| 3867 | title: $like |
| 3868 | description: Apply a `like` filter. Useful for strings only. |
| 3869 | $re: |
| 3870 | type: string |
| 3871 | title: $re |
| 3872 | description: Apply a regex filter. Useful for strings only. |
| 3873 | $ilike: |
| 3874 | type: string |
| 3875 | title: $ilike |
| 3876 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 3877 | $fulltext: |
| 3878 | type: string |
| 3879 | title: $fulltext |
| 3880 | description: Filter to apply on full-text properties. |
| 3881 | $overlap: |
| 3882 | type: array |
| 3883 | description: Filter arrays that have overlapping values with this parameter. |
| 3884 | items: |
| 3885 | type: string |
| 3886 | title: $overlap |
| 3887 | description: Filter arrays that have overlapping values with this parameter. |
| 3888 | $contains: |
| 3889 | type: array |
| 3890 | description: Filter arrays that contain some of the values of this parameter. |
| 3891 | items: |
| 3892 | type: string |
| 3893 | title: $contains |
| 3894 | description: Filter arrays that contain some of the values of this parameter. |
| 3895 | $contained: |
| 3896 | type: array |
| 3897 | description: Filter arrays that contain all values of this parameter. |
| 3898 | items: |
| 3899 | type: string |
| 3900 | title: $contained |
| 3901 | description: Filter arrays that contain all values of this parameter. |
| 3902 | $exists: |
| 3903 | type: boolean |
| 3904 | title: $exists |
| 3905 | description: Filter by whether a value for this parameter exists (not `null`). |
| 3906 | title: created_at |
| 3907 | - name: updated_at |
| 3908 | in: query |
| 3909 | description: Filter by a claim's update date. |
| 3910 | required: false |
| 3911 | schema: |
| 3912 | type: object |
| 3913 | description: Filter by a claim's update date. |
| 3914 | properties: |
| 3915 | $and: |
| 3916 | type: array |
| 3917 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 3918 | items: |
| 3919 | type: object |
| 3920 | title: $and |
| 3921 | $or: |
| 3922 | type: array |
| 3923 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 3924 | items: |
| 3925 | type: object |
| 3926 | title: $or |
| 3927 | $eq: |
| 3928 | oneOf: |
| 3929 | - type: string |
| 3930 | title: $eq |
| 3931 | description: Filter by an exact match. |
| 3932 | - type: array |
| 3933 | description: Filter by an exact match. |
| 3934 | items: |
| 3935 | type: string |
| 3936 | title: $eq |
| 3937 | description: Filter by an exact match. |
| 3938 | $ne: |
| 3939 | type: string |
| 3940 | title: $ne |
| 3941 | description: Filter by values not equal to this parameter. |
| 3942 | $in: |
| 3943 | type: array |
| 3944 | description: Filter by values in this array. |
| 3945 | items: |
| 3946 | type: string |
| 3947 | title: $in |
| 3948 | description: Filter by values in this array. |
| 3949 | $nin: |
| 3950 | type: array |
| 3951 | description: Filter by values not in this array. |
| 3952 | items: |
| 3953 | type: string |
| 3954 | title: $nin |
| 3955 | description: Filter by values not in this array. |
| 3956 | $not: |
| 3957 | oneOf: |
| 3958 | - type: string |
| 3959 | title: $not |
| 3960 | description: Filter by values not matching the conditions in this parameter. |
| 3961 | - type: object |
| 3962 | description: Filter by values not matching the conditions in this parameter. |
| 3963 | - type: array |
| 3964 | description: Filter by values not matching the conditions in this parameter. |
| 3965 | items: |
| 3966 | type: string |
| 3967 | title: $not |
| 3968 | description: Filter by values not matching the conditions in this parameter. |
| 3969 | $gt: |
| 3970 | type: string |
| 3971 | title: $gt |
| 3972 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 3973 | $gte: |
| 3974 | type: string |
| 3975 | title: $gte |
| 3976 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 3977 | $lt: |
| 3978 | type: string |
| 3979 | title: $lt |
| 3980 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 3981 | $lte: |
| 3982 | type: string |
| 3983 | title: $lte |
| 3984 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 3985 | $like: |
| 3986 | type: string |
| 3987 | title: $like |
| 3988 | description: Apply a `like` filter. Useful for strings only. |
| 3989 | $re: |
| 3990 | type: string |
| 3991 | title: $re |
| 3992 | description: Apply a regex filter. Useful for strings only. |
| 3993 | $ilike: |
| 3994 | type: string |
| 3995 | title: $ilike |
| 3996 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 3997 | $fulltext: |
| 3998 | type: string |
| 3999 | title: $fulltext |
| 4000 | description: Filter to apply on full-text properties. |
| 4001 | $overlap: |
| 4002 | type: array |
| 4003 | description: Filter arrays that have overlapping values with this parameter. |
| 4004 | items: |
| 4005 | type: string |
| 4006 | title: $overlap |
| 4007 | description: Filter arrays that have overlapping values with this parameter. |
| 4008 | $contains: |
| 4009 | type: array |
| 4010 | description: Filter arrays that contain some of the values of this parameter. |
| 4011 | items: |
| 4012 | type: string |
| 4013 | title: $contains |
| 4014 | description: Filter arrays that contain some of the values of this parameter. |
| 4015 | $contained: |
| 4016 | type: array |
| 4017 | description: Filter arrays that contain all values of this parameter. |
| 4018 | items: |
| 4019 | type: string |
| 4020 | title: $contained |
| 4021 | description: Filter arrays that contain all values of this parameter. |
| 4022 | $exists: |
| 4023 | type: boolean |
| 4024 | title: $exists |
| 4025 | description: Filter by whether a value for this parameter exists (not `null`). |
| 4026 | title: updated_at |
| 4027 | - name: deleted_at |
| 4028 | in: query |
| 4029 | description: Filter by a claim's deletion date. |
| 4030 | required: false |
| 4031 | schema: |
| 4032 | type: object |
| 4033 | description: Filter by a claim's deletion date. |
| 4034 | properties: |
| 4035 | $and: |
| 4036 | type: array |
| 4037 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 4038 | items: |
| 4039 | type: object |
| 4040 | title: $and |
| 4041 | $or: |
| 4042 | type: array |
| 4043 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 4044 | items: |
| 4045 | type: object |
| 4046 | title: $or |
| 4047 | $eq: |
| 4048 | oneOf: |
| 4049 | - type: string |
| 4050 | title: $eq |
| 4051 | description: Filter by an exact match. |
| 4052 | - type: array |
| 4053 | description: Filter by an exact match. |
| 4054 | items: |
| 4055 | type: string |
| 4056 | title: $eq |
| 4057 | description: Filter by an exact match. |
| 4058 | $ne: |
| 4059 | type: string |
| 4060 | title: $ne |
| 4061 | description: Filter by values not equal to this parameter. |
| 4062 | $in: |
| 4063 | type: array |
| 4064 | description: Filter by values in this array. |
| 4065 | items: |
| 4066 | type: string |
| 4067 | title: $in |
| 4068 | description: Filter by values in this array. |
| 4069 | $nin: |
| 4070 | type: array |
| 4071 | description: Filter by values not in this array. |
| 4072 | items: |
| 4073 | type: string |
| 4074 | title: $nin |
| 4075 | description: Filter by values not in this array. |
| 4076 | $not: |
| 4077 | oneOf: |
| 4078 | - type: string |
| 4079 | title: $not |
| 4080 | description: Filter by values not matching the conditions in this parameter. |
| 4081 | - type: object |
| 4082 | description: Filter by values not matching the conditions in this parameter. |
| 4083 | - type: array |
| 4084 | description: Filter by values not matching the conditions in this parameter. |
| 4085 | items: |
| 4086 | type: string |
| 4087 | title: $not |
| 4088 | description: Filter by values not matching the conditions in this parameter. |
| 4089 | $gt: |
| 4090 | type: string |
| 4091 | title: $gt |
| 4092 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 4093 | $gte: |
| 4094 | type: string |
| 4095 | title: $gte |
| 4096 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 4097 | $lt: |
| 4098 | type: string |
| 4099 | title: $lt |
| 4100 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 4101 | $lte: |
| 4102 | type: string |
| 4103 | title: $lte |
| 4104 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 4105 | $like: |
| 4106 | type: string |
| 4107 | title: $like |
| 4108 | description: Apply a `like` filter. Useful for strings only. |
| 4109 | $re: |
| 4110 | type: string |
| 4111 | title: $re |
| 4112 | description: Apply a regex filter. Useful for strings only. |
| 4113 | $ilike: |
| 4114 | type: string |
| 4115 | title: $ilike |
| 4116 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 4117 | $fulltext: |
| 4118 | type: string |
| 4119 | title: $fulltext |
| 4120 | description: Filter to apply on full-text properties. |
| 4121 | $overlap: |
| 4122 | type: array |
| 4123 | description: Filter arrays that have overlapping values with this parameter. |
| 4124 | items: |
| 4125 | type: string |
| 4126 | title: $overlap |
| 4127 | description: Filter arrays that have overlapping values with this parameter. |
| 4128 | $contains: |
| 4129 | type: array |
| 4130 | description: Filter arrays that contain some of the values of this parameter. |
| 4131 | items: |
| 4132 | type: string |
| 4133 | title: $contains |
| 4134 | description: Filter arrays that contain some of the values of this parameter. |
| 4135 | $contained: |
| 4136 | type: array |
| 4137 | description: Filter arrays that contain all values of this parameter. |
| 4138 | items: |
| 4139 | type: string |
| 4140 | title: $contained |
| 4141 | description: Filter arrays that contain all values of this parameter. |
| 4142 | $exists: |
| 4143 | type: boolean |
| 4144 | title: $exists |
| 4145 | description: Filter by whether a value for this parameter exists (not `null`). |
| 4146 | title: deleted_at |
| 4147 | security: |
| 4148 | - api_token: [] |
| 4149 | - cookie_auth: [] |
| 4150 | - jwt_token: [] |
| 4151 | requestBody: |
| 4152 | content: |
| 4153 | application/json: |
| 4154 | schema: |
| 4155 | $ref: '#/components/schemas/AdminCreateClaim' |
| 4156 | x-codeSamples: |
| 4157 | - lang: JavaScript |
| 4158 | label: JS SDK |
| 4159 | source: |- |
| 4160 | import Medusa from "@medusajs/js-sdk" |
| 4161 | |
| 4162 | export const sdk = new Medusa({ |
| 4163 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 4164 | debug: import.meta.env.DEV, |
| 4165 | auth: { |
| 4166 | type: "session", |
| 4167 | }, |
| 4168 | }) |
| 4169 | |
| 4170 | sdk.admin.claim.create({ |
| 4171 | type: "refund", |
| 4172 | order_id: "order_123", |
| 4173 | }) |
| 4174 | .then(({ claim }) => { |
| 4175 | console.log(claim) |
| 4176 | }) |
| 4177 | - lang: Shell |
| 4178 | label: cURL |
| 4179 | source: |- |
| 4180 | curl -X POST '{backend_url}/admin/claims' \ |
| 4181 | -H 'Authorization: Bearer {jwt_token}' \ |
| 4182 | -H 'Content-Type: application/json' \ |
| 4183 | --data-raw '{ |
| 4184 | "type": "{value}", |
| 4185 | "order_id": "{value}", |
| 4186 | "metadata": {} |
| 4187 | }' |
| 4188 | tags: |
| 4189 | - Claims |
| 4190 | responses: |
| 4191 | '200': |
| 4192 | description: OK |
| 4193 | content: |
| 4194 | application/json: |
| 4195 | schema: |
| 4196 | $ref: '#/components/schemas/AdminClaimOrderResponse' |
| 4197 | '400': |
| 4198 | $ref: '#/components/responses/400_error' |
| 4199 | '401': |
| 4200 | $ref: '#/components/responses/unauthorized' |
| 4201 | '404': |
| 4202 | $ref: '#/components/responses/not_found_error' |
| 4203 | '409': |
| 4204 | $ref: '#/components/responses/invalid_state_error' |
| 4205 | '422': |
| 4206 | $ref: '#/components/responses/invalid_request_error' |
| 4207 | '500': |
| 4208 | $ref: '#/components/responses/500_error' |
| 4209 | x-workflow: beginClaimOrderWorkflow |
| 4210 | x-events: [] |
| 4211 | /admin/claims/{id}: |
| 4212 | get: |
| 4213 | operationId: GetClaimsId |
| 4214 | summary: Get a Claim |
| 4215 | description: Retrieve a claim by its ID. You can expand the claim's relations or select the fields that should be returned using the query parameters. |
| 4216 | x-authenticated: true |
| 4217 | parameters: |
| 4218 | - name: id |
| 4219 | in: path |
| 4220 | description: The claim's ID. |
| 4221 | required: true |
| 4222 | schema: |
| 4223 | type: string |
| 4224 | - name: fields |
| 4225 | in: query |
| 4226 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 4227 | required: false |
| 4228 | schema: |
| 4229 | type: string |
| 4230 | title: fields |
| 4231 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 4232 | externalDocs: |
| 4233 | url: '#select-fields-and-relations' |
| 4234 | security: |
| 4235 | - api_token: [] |
| 4236 | - cookie_auth: [] |
| 4237 | - jwt_token: [] |
| 4238 | x-codeSamples: |
| 4239 | - lang: JavaScript |
| 4240 | label: JS SDK |
| 4241 | source: |- |
| 4242 | import Medusa from "@medusajs/js-sdk" |
| 4243 | |
| 4244 | export const sdk = new Medusa({ |
| 4245 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 4246 | debug: import.meta.env.DEV, |
| 4247 | auth: { |
| 4248 | type: "session", |
| 4249 | }, |
| 4250 | }) |
| 4251 | |
| 4252 | sdk.admin.claim.retrieve("claim_123") |
| 4253 | .then(({ claim }) => { |
| 4254 | console.log(claim) |
| 4255 | }) |
| 4256 | - lang: Shell |
| 4257 | label: cURL |
| 4258 | source: |- |
| 4259 | curl '{backend_url}/admin/claims/{id}' \ |
| 4260 | -H 'Authorization: Bearer {jwt_token}' |
| 4261 | tags: |
| 4262 | - Claims |
| 4263 | responses: |
| 4264 | '200': |
| 4265 | description: OK |
| 4266 | content: |
| 4267 | application/json: |
| 4268 | schema: |
| 4269 | $ref: '#/components/schemas/AdminClaimResponse' |
| 4270 | '400': |
| 4271 | $ref: '#/components/responses/400_error' |
| 4272 | '401': |
| 4273 | $ref: '#/components/responses/unauthorized' |
| 4274 | '404': |
| 4275 | $ref: '#/components/responses/not_found_error' |
| 4276 | '409': |
| 4277 | $ref: '#/components/responses/invalid_state_error' |
| 4278 | '422': |
| 4279 | $ref: '#/components/responses/invalid_request_error' |
| 4280 | '500': |
| 4281 | $ref: '#/components/responses/500_error' |
| 4282 | /admin/claims/{id}/cancel: |
| 4283 | post: |
| 4284 | operationId: PostClaimsIdCancel |
| 4285 | summary: Cancel a Claim |
| 4286 | description: Cancel a claim and its associated return. |
| 4287 | x-authenticated: true |
| 4288 | parameters: |
| 4289 | - name: id |
| 4290 | in: path |
| 4291 | description: The claim's ID. |
| 4292 | required: true |
| 4293 | schema: |
| 4294 | type: string |
| 4295 | security: |
| 4296 | - api_token: [] |
| 4297 | - cookie_auth: [] |
| 4298 | - jwt_token: [] |
| 4299 | requestBody: |
| 4300 | content: |
| 4301 | application/json: |
| 4302 | schema: |
| 4303 | $ref: '#/components/schemas/AdminPostCancelClaimReqSchema' |
| 4304 | x-codeSamples: |
| 4305 | - lang: JavaScript |
| 4306 | label: JS SDK |
| 4307 | source: |- |
| 4308 | import Medusa from "@medusajs/js-sdk" |
| 4309 | |
| 4310 | export const sdk = new Medusa({ |
| 4311 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 4312 | debug: import.meta.env.DEV, |
| 4313 | auth: { |
| 4314 | type: "session", |
| 4315 | }, |
| 4316 | }) |
| 4317 | |
| 4318 | sdk.admin.claim.cancel("claim_123") |
| 4319 | .then(({ claim }) => { |
| 4320 | console.log(claim) |
| 4321 | }) |
| 4322 | - lang: Shell |
| 4323 | label: cURL |
| 4324 | source: |- |
| 4325 | curl -X POST '{backend_url}/admin/claims/{id}/cancel' \ |
| 4326 | -H 'Authorization: Bearer {jwt_token}' |
| 4327 | tags: |
| 4328 | - Claims |
| 4329 | responses: |
| 4330 | '200': |
| 4331 | description: OK |
| 4332 | content: |
| 4333 | application/json: |
| 4334 | schema: |
| 4335 | $ref: '#/components/schemas/AdminClaimResponse' |
| 4336 | '400': |
| 4337 | $ref: '#/components/responses/400_error' |
| 4338 | '401': |
| 4339 | $ref: '#/components/responses/unauthorized' |
| 4340 | '404': |
| 4341 | $ref: '#/components/responses/not_found_error' |
| 4342 | '409': |
| 4343 | $ref: '#/components/responses/invalid_state_error' |
| 4344 | '422': |
| 4345 | $ref: '#/components/responses/invalid_request_error' |
| 4346 | '500': |
| 4347 | $ref: '#/components/responses/500_error' |
| 4348 | x-workflow: cancelOrderClaimWorkflow |
| 4349 | x-events: [] |
| 4350 | /admin/claims/{id}/claim-items: |
| 4351 | post: |
| 4352 | operationId: PostClaimsIdClaimItems |
| 4353 | summary: Add Claim Items to a Claim |
| 4354 | x-sidebar-summary: Add Claim Items |
| 4355 | description: Add order items to a claim as claim items. These claim items will have the action `WRITE_OFF_ITEM`. |
| 4356 | x-authenticated: true |
| 4357 | parameters: |
| 4358 | - name: id |
| 4359 | in: path |
| 4360 | description: The claim's ID. |
| 4361 | required: true |
| 4362 | schema: |
| 4363 | type: string |
| 4364 | - name: fields |
| 4365 | in: query |
| 4366 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 4367 | required: false |
| 4368 | schema: |
| 4369 | type: string |
| 4370 | title: fields |
| 4371 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 4372 | externalDocs: |
| 4373 | url: '#select-fields-and-relations' |
| 4374 | - name: id |
| 4375 | in: query |
| 4376 | required: false |
| 4377 | schema: |
| 4378 | oneOf: |
| 4379 | - type: string |
| 4380 | title: id |
| 4381 | description: Filter by the claim's ID. |
| 4382 | - type: array |
| 4383 | description: Filter by claim IDs. |
| 4384 | items: |
| 4385 | type: string |
| 4386 | title: id |
| 4387 | description: A claim's ID. |
| 4388 | - name: status |
| 4389 | in: query |
| 4390 | required: false |
| 4391 | schema: |
| 4392 | oneOf: |
| 4393 | - type: string |
| 4394 | title: status |
| 4395 | description: Filter by the claim's status. |
| 4396 | - type: array |
| 4397 | description: Filter by claim statuses. |
| 4398 | items: |
| 4399 | type: string |
| 4400 | title: status |
| 4401 | description: A claim status. |
| 4402 | - name: created_at |
| 4403 | in: query |
| 4404 | description: Filter by a claim's creation date. |
| 4405 | required: false |
| 4406 | schema: |
| 4407 | type: object |
| 4408 | description: Filter by a claim's creation date. |
| 4409 | properties: |
| 4410 | $and: |
| 4411 | type: array |
| 4412 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 4413 | items: |
| 4414 | type: object |
| 4415 | title: $and |
| 4416 | $or: |
| 4417 | type: array |
| 4418 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 4419 | items: |
| 4420 | type: object |
| 4421 | title: $or |
| 4422 | $eq: |
| 4423 | oneOf: |
| 4424 | - type: string |
| 4425 | title: $eq |
| 4426 | description: Filter by an exact match. |
| 4427 | - type: array |
| 4428 | description: Filter by an exact match. |
| 4429 | items: |
| 4430 | type: string |
| 4431 | title: $eq |
| 4432 | description: Filter by an exact match. |
| 4433 | $ne: |
| 4434 | type: string |
| 4435 | title: $ne |
| 4436 | description: Filter by values not equal to this parameter. |
| 4437 | $in: |
| 4438 | type: array |
| 4439 | description: Filter by values in this array. |
| 4440 | items: |
| 4441 | type: string |
| 4442 | title: $in |
| 4443 | description: Filter by values in this array. |
| 4444 | $nin: |
| 4445 | type: array |
| 4446 | description: Filter by values not in this array. |
| 4447 | items: |
| 4448 | type: string |
| 4449 | title: $nin |
| 4450 | description: Filter by values not in this array. |
| 4451 | $not: |
| 4452 | oneOf: |
| 4453 | - type: string |
| 4454 | title: $not |
| 4455 | description: Filter by values not matching the conditions in this parameter. |
| 4456 | - type: object |
| 4457 | description: Filter by values not matching the conditions in this parameter. |
| 4458 | - type: array |
| 4459 | description: Filter by values not matching the conditions in this parameter. |
| 4460 | items: |
| 4461 | type: string |
| 4462 | title: $not |
| 4463 | description: Filter by values not matching the conditions in this parameter. |
| 4464 | $gt: |
| 4465 | type: string |
| 4466 | title: $gt |
| 4467 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 4468 | $gte: |
| 4469 | type: string |
| 4470 | title: $gte |
| 4471 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 4472 | $lt: |
| 4473 | type: string |
| 4474 | title: $lt |
| 4475 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 4476 | $lte: |
| 4477 | type: string |
| 4478 | title: $lte |
| 4479 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 4480 | $like: |
| 4481 | type: string |
| 4482 | title: $like |
| 4483 | description: Apply a `like` filter. Useful for strings only. |
| 4484 | $re: |
| 4485 | type: string |
| 4486 | title: $re |
| 4487 | description: Apply a regex filter. Useful for strings only. |
| 4488 | $ilike: |
| 4489 | type: string |
| 4490 | title: $ilike |
| 4491 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 4492 | $fulltext: |
| 4493 | type: string |
| 4494 | title: $fulltext |
| 4495 | description: Filter to apply on full-text properties. |
| 4496 | $overlap: |
| 4497 | type: array |
| 4498 | description: Filter arrays that have overlapping values with this parameter. |
| 4499 | items: |
| 4500 | type: string |
| 4501 | title: $overlap |
| 4502 | description: Filter arrays that have overlapping values with this parameter. |
| 4503 | $contains: |
| 4504 | type: array |
| 4505 | description: Filter arrays that contain some of the values of this parameter. |
| 4506 | items: |
| 4507 | type: string |
| 4508 | title: $contains |
| 4509 | description: Filter arrays that contain some of the values of this parameter. |
| 4510 | $contained: |
| 4511 | type: array |
| 4512 | description: Filter arrays that contain all values of this parameter. |
| 4513 | items: |
| 4514 | type: string |
| 4515 | title: $contained |
| 4516 | description: Filter arrays that contain all values of this parameter. |
| 4517 | $exists: |
| 4518 | type: boolean |
| 4519 | title: $exists |
| 4520 | description: Filter by whether a value for this parameter exists (not `null`). |
| 4521 | title: created_at |
| 4522 | - name: updated_at |
| 4523 | in: query |
| 4524 | description: Filter by a claim's update date. |
| 4525 | required: false |
| 4526 | schema: |
| 4527 | type: object |
| 4528 | description: Filter by a claim's update date. |
| 4529 | properties: |
| 4530 | $and: |
| 4531 | type: array |
| 4532 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 4533 | items: |
| 4534 | type: object |
| 4535 | title: $and |
| 4536 | $or: |
| 4537 | type: array |
| 4538 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 4539 | items: |
| 4540 | type: object |
| 4541 | title: $or |
| 4542 | $eq: |
| 4543 | oneOf: |
| 4544 | - type: string |
| 4545 | title: $eq |
| 4546 | description: Filter by an exact match. |
| 4547 | - type: array |
| 4548 | description: Filter by an exact match. |
| 4549 | items: |
| 4550 | type: string |
| 4551 | title: $eq |
| 4552 | description: Filter by an exact match. |
| 4553 | $ne: |
| 4554 | type: string |
| 4555 | title: $ne |
| 4556 | description: Filter by values not equal to this parameter. |
| 4557 | $in: |
| 4558 | type: array |
| 4559 | description: Filter by values in this array. |
| 4560 | items: |
| 4561 | type: string |
| 4562 | title: $in |
| 4563 | description: Filter by values in this array. |
| 4564 | $nin: |
| 4565 | type: array |
| 4566 | description: Filter by values not in this array. |
| 4567 | items: |
| 4568 | type: string |
| 4569 | title: $nin |
| 4570 | description: Filter by values not in this array. |
| 4571 | $not: |
| 4572 | oneOf: |
| 4573 | - type: string |
| 4574 | title: $not |
| 4575 | description: Filter by values not matching the conditions in this parameter. |
| 4576 | - type: object |
| 4577 | description: Filter by values not matching the conditions in this parameter. |
| 4578 | - type: array |
| 4579 | description: Filter by values not matching the conditions in this parameter. |
| 4580 | items: |
| 4581 | type: string |
| 4582 | title: $not |
| 4583 | description: Filter by values not matching the conditions in this parameter. |
| 4584 | $gt: |
| 4585 | type: string |
| 4586 | title: $gt |
| 4587 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 4588 | $gte: |
| 4589 | type: string |
| 4590 | title: $gte |
| 4591 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 4592 | $lt: |
| 4593 | type: string |
| 4594 | title: $lt |
| 4595 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 4596 | $lte: |
| 4597 | type: string |
| 4598 | title: $lte |
| 4599 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 4600 | $like: |
| 4601 | type: string |
| 4602 | title: $like |
| 4603 | description: Apply a `like` filter. Useful for strings only. |
| 4604 | $re: |
| 4605 | type: string |
| 4606 | title: $re |
| 4607 | description: Apply a regex filter. Useful for strings only. |
| 4608 | $ilike: |
| 4609 | type: string |
| 4610 | title: $ilike |
| 4611 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 4612 | $fulltext: |
| 4613 | type: string |
| 4614 | title: $fulltext |
| 4615 | description: Filter to apply on full-text properties. |
| 4616 | $overlap: |
| 4617 | type: array |
| 4618 | description: Filter arrays that have overlapping values with this parameter. |
| 4619 | items: |
| 4620 | type: string |
| 4621 | title: $overlap |
| 4622 | description: Filter arrays that have overlapping values with this parameter. |
| 4623 | $contains: |
| 4624 | type: array |
| 4625 | description: Filter arrays that contain some of the values of this parameter. |
| 4626 | items: |
| 4627 | type: string |
| 4628 | title: $contains |
| 4629 | description: Filter arrays that contain some of the values of this parameter. |
| 4630 | $contained: |
| 4631 | type: array |
| 4632 | description: Filter arrays that contain all values of this parameter. |
| 4633 | items: |
| 4634 | type: string |
| 4635 | title: $contained |
| 4636 | description: Filter arrays that contain all values of this parameter. |
| 4637 | $exists: |
| 4638 | type: boolean |
| 4639 | title: $exists |
| 4640 | description: Filter by whether a value for this parameter exists (not `null`). |
| 4641 | title: updated_at |
| 4642 | - name: deleted_at |
| 4643 | in: query |
| 4644 | description: Filter by a claim's deletion date. |
| 4645 | required: false |
| 4646 | schema: |
| 4647 | type: object |
| 4648 | description: Filter by a claim's deletion date. |
| 4649 | properties: |
| 4650 | $and: |
| 4651 | type: array |
| 4652 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 4653 | items: |
| 4654 | type: object |
| 4655 | title: $and |
| 4656 | $or: |
| 4657 | type: array |
| 4658 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 4659 | items: |
| 4660 | type: object |
| 4661 | title: $or |
| 4662 | $eq: |
| 4663 | oneOf: |
| 4664 | - type: string |
| 4665 | title: $eq |
| 4666 | description: Filter by an exact match. |
| 4667 | - type: array |
| 4668 | description: Filter by an exact match. |
| 4669 | items: |
| 4670 | type: string |
| 4671 | title: $eq |
| 4672 | description: Filter by an exact match. |
| 4673 | $ne: |
| 4674 | type: string |
| 4675 | title: $ne |
| 4676 | description: Filter by values not equal to this parameter. |
| 4677 | $in: |
| 4678 | type: array |
| 4679 | description: Filter by values in this array. |
| 4680 | items: |
| 4681 | type: string |
| 4682 | title: $in |
| 4683 | description: Filter by values in this array. |
| 4684 | $nin: |
| 4685 | type: array |
| 4686 | description: Filter by values not in this array. |
| 4687 | items: |
| 4688 | type: string |
| 4689 | title: $nin |
| 4690 | description: Filter by values not in this array. |
| 4691 | $not: |
| 4692 | oneOf: |
| 4693 | - type: string |
| 4694 | title: $not |
| 4695 | description: Filter by values not matching the conditions in this parameter. |
| 4696 | - type: object |
| 4697 | description: Filter by values not matching the conditions in this parameter. |
| 4698 | - type: array |
| 4699 | description: Filter by values not matching the conditions in this parameter. |
| 4700 | items: |
| 4701 | type: string |
| 4702 | title: $not |
| 4703 | description: Filter by values not matching the conditions in this parameter. |
| 4704 | $gt: |
| 4705 | type: string |
| 4706 | title: $gt |
| 4707 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 4708 | $gte: |
| 4709 | type: string |
| 4710 | title: $gte |
| 4711 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 4712 | $lt: |
| 4713 | type: string |
| 4714 | title: $lt |
| 4715 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 4716 | $lte: |
| 4717 | type: string |
| 4718 | title: $lte |
| 4719 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 4720 | $like: |
| 4721 | type: string |
| 4722 | title: $like |
| 4723 | description: Apply a `like` filter. Useful for strings only. |
| 4724 | $re: |
| 4725 | type: string |
| 4726 | title: $re |
| 4727 | description: Apply a regex filter. Useful for strings only. |
| 4728 | $ilike: |
| 4729 | type: string |
| 4730 | title: $ilike |
| 4731 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 4732 | $fulltext: |
| 4733 | type: string |
| 4734 | title: $fulltext |
| 4735 | description: Filter to apply on full-text properties. |
| 4736 | $overlap: |
| 4737 | type: array |
| 4738 | description: Filter arrays that have overlapping values with this parameter. |
| 4739 | items: |
| 4740 | type: string |
| 4741 | title: $overlap |
| 4742 | description: Filter arrays that have overlapping values with this parameter. |
| 4743 | $contains: |
| 4744 | type: array |
| 4745 | description: Filter arrays that contain some of the values of this parameter. |
| 4746 | items: |
| 4747 | type: string |
| 4748 | title: $contains |
| 4749 | description: Filter arrays that contain some of the values of this parameter. |
| 4750 | $contained: |
| 4751 | type: array |
| 4752 | description: Filter arrays that contain all values of this parameter. |
| 4753 | items: |
| 4754 | type: string |
| 4755 | title: $contained |
| 4756 | description: Filter arrays that contain all values of this parameter. |
| 4757 | $exists: |
| 4758 | type: boolean |
| 4759 | title: $exists |
| 4760 | description: Filter by whether a value for this parameter exists (not `null`). |
| 4761 | title: deleted_at |
| 4762 | security: |
| 4763 | - api_token: [] |
| 4764 | - cookie_auth: [] |
| 4765 | - jwt_token: [] |
| 4766 | requestBody: |
| 4767 | content: |
| 4768 | application/json: |
| 4769 | schema: |
| 4770 | $ref: '#/components/schemas/AdminAddClaimItems' |
| 4771 | x-codeSamples: |
| 4772 | - lang: JavaScript |
| 4773 | label: JS SDK |
| 4774 | source: |- |
| 4775 | import Medusa from "@medusajs/js-sdk" |
| 4776 | |
| 4777 | export const sdk = new Medusa({ |
| 4778 | baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
| 4779 | debug: import.meta.env.DEV, |
| 4780 | auth: { |
| 4781 | type: "session", |
| 4782 | }, |
| 4783 | }) |
| 4784 | |
| 4785 | sdk.admin.claim.addItems("claim_123", { |
| 4786 | items: [ |
| 4787 | { |
| 4788 | id: "orli_123", |
| 4789 | quantity: 1 |
| 4790 | } |
| 4791 | ] |
| 4792 | }) |
| 4793 | .then(({ claim }) => { |
| 4794 | console.log(claim) |
| 4795 | }) |
| 4796 | - lang: Shell |
| 4797 | label: cURL |
| 4798 | source: |- |
| 4799 | curl -X POST '{backend_url}/admin/claims/{id}/claim-items' \ |
| 4800 | -H 'Authorization: Bearer {jwt_token}' |
| 4801 | tags: |
| 4802 | - Claims |
| 4803 | responses: |
| 4804 | '200': |
| 4805 | description: OK |
| 4806 | content: |
| 4807 | application/json: |
| 4808 | schema: |
| 4809 | $ref: '#/components/schemas/AdminClaimPreviewResponse' |
| 4810 | '400': |
| 4811 | $ref: '#/components/responses/400_error' |
| 4812 | '401': |
| 4813 | $ref: '#/components/responses/unauthorized' |
| 4814 | '404': |
| 4815 | $ref: '#/components/responses/not_found_error' |
| 4816 | '409': |
| 4817 | $ref: '#/components/responses/invalid_state_error' |
| 4818 | '422': |
| 4819 | $ref: '#/components/responses/invalid_request_error' |
| 4820 | '500': |
| 4821 | $ref: '#/components/responses/500_error' |
| 4822 | x-workflow: orderClaimItemWorkflow |
| 4823 | x-events: [] |
| 4824 | /admin/claims/{id}/claim-items/{action_id}: |
| 4825 | post: |
| 4826 | operationId: PostClaimsIdClaimItemsAction_id |
| 4827 | summary: Update a Claim Item |
| 4828 | description: | |
| 4829 | Update an order item in a claim by the ID of the item's `WRITE_OFF_ITEM` action. |
| 4830 | |
| 4831 | Every item has an `actions` property, whose value is an array of actions. You can check the action's name using its `action` property, and use the value of the `id` property. |
| 4832 | x-authenticated: true |
| 4833 | parameters: |
| 4834 | - name: id |
| 4835 | in: path |
| 4836 | description: The claim's ID. |
| 4837 | required: true |
| 4838 | schema: |
| 4839 | type: string |
| 4840 | - name: action_id |
| 4841 | in: path |
| 4842 | description: The ID of the order item's `WRITE_OFF_ITEM` action. |
| 4843 | required: true |
| 4844 | schema: |
| 4845 | type: string |
| 4846 | - name: fields |
| 4847 | in: query |
| 4848 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 4849 | required: false |
| 4850 | schema: |
| 4851 | type: string |
| 4852 | title: fields |
| 4853 | description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. |
| 4854 | externalDocs: |
| 4855 | url: '#select-fields-and-relations' |
| 4856 | - name: id |
| 4857 | in: query |
| 4858 | required: false |
| 4859 | schema: |
| 4860 | oneOf: |
| 4861 | - type: string |
| 4862 | title: id |
| 4863 | description: Filter by the claim's ID. |
| 4864 | - type: array |
| 4865 | description: Filter by claim IDs. |
| 4866 | items: |
| 4867 | type: string |
| 4868 | title: id |
| 4869 | description: A claim's ID. |
| 4870 | - name: status |
| 4871 | in: query |
| 4872 | required: false |
| 4873 | schema: |
| 4874 | oneOf: |
| 4875 | - type: string |
| 4876 | title: status |
| 4877 | description: Filter by the claim's status. |
| 4878 | - type: array |
| 4879 | description: Filter by claim statuses. |
| 4880 | items: |
| 4881 | type: string |
| 4882 | title: status |
| 4883 | description: A claim status. |
| 4884 | - name: created_at |
| 4885 | in: query |
| 4886 | description: Filter by a claim's creation date. |
| 4887 | required: false |
| 4888 | schema: |
| 4889 | type: object |
| 4890 | description: Filter by a claim's creation date. |
| 4891 | properties: |
| 4892 | $and: |
| 4893 | type: array |
| 4894 | description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
| 4895 | items: |
| 4896 | type: object |
| 4897 | title: $and |
| 4898 | $or: |
| 4899 | type: array |
| 4900 | description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
| 4901 | items: |
| 4902 | type: object |
| 4903 | title: $or |
| 4904 | $eq: |
| 4905 | oneOf: |
| 4906 | - type: string |
| 4907 | title: $eq |
| 4908 | description: Filter by an exact match. |
| 4909 | - type: array |
| 4910 | description: Filter by an exact match. |
| 4911 | items: |
| 4912 | type: string |
| 4913 | title: $eq |
| 4914 | description: Filter by an exact match. |
| 4915 | $ne: |
| 4916 | type: string |
| 4917 | title: $ne |
| 4918 | description: Filter by values not equal to this parameter. |
| 4919 | $in: |
| 4920 | type: array |
| 4921 | description: Filter by values in this array. |
| 4922 | items: |
| 4923 | type: string |
| 4924 | title: $in |
| 4925 | description: Filter by values in this array. |
| 4926 | $nin: |
| 4927 | type: array |
| 4928 | description: Filter by values not in this array. |
| 4929 | items: |
| 4930 | type: string |
| 4931 | title: $nin |
| 4932 | description: Filter by values not in this array. |
| 4933 | $not: |
| 4934 | oneOf: |
| 4935 | - type: string |
| 4936 | title: $not |
| 4937 | description: Filter by values not matching the conditions in this parameter. |
| 4938 | - type: object |
| 4939 | description: Filter by values not matching the conditions in this parameter. |
| 4940 | - type: array |
| 4941 | description: Filter by values not matching the conditions in this parameter. |
| 4942 | items: |
| 4943 | type: string |
| 4944 | title: $not |
| 4945 | description: Filter by values not matching the conditions in this parameter. |
| 4946 | $gt: |
| 4947 | type: string |
| 4948 | title: $gt |
| 4949 | description: Filter by values greater than this parameter. Useful for numbers and dates only. |
| 4950 | $gte: |
| 4951 | type: string |
| 4952 | title: $gte |
| 4953 | description: Filter by values greater than or equal to this parameter. Useful for numbers and dates only. |
| 4954 | $lt: |
| 4955 | type: string |
| 4956 | title: $lt |
| 4957 | description: Filter by values less than this parameter. Useful for numbers and dates only. |
| 4958 | $lte: |
| 4959 | type: string |
| 4960 | title: $lte |
| 4961 | description: Filter by values less than or equal to this parameter. Useful for numbers and dates only. |
| 4962 | $like: |
| 4963 | type: string |
| 4964 | title: $like |
| 4965 | description: Apply a `like` filter. Useful for strings only. |
| 4966 | $re: |
| 4967 | type: string |
| 4968 | title: $re |
| 4969 | description: Apply a regex filter. Useful for strings only. |
| 4970 | $ilike: |
| 4971 | type: string |
| 4972 | title: $ilike |
| 4973 | description: Apply a case-insensitive `like` filter. Useful for strings only. |
| 4974 | $fulltext: |
| 4975 | type: string |
| 4976 | title: $fulltext |
| 4977 | description: Filter to apply on full-text properties. |
| 4978 | $overlap: |
| 4979 | type: array |
| 4980 | description: Filter arrays that have overlapping values with this parameter. |
| 4981 | items: |
| 4982 | type: string |
| 4983 | title: $overlap |
| 4984 | description: Filter arrays that have overlapping values with this parameter. |
| 4985 | $contains: |
| 4986 | type: array |
| 4987 | description: Filter arrays that contain some of the values of this parameter. |
| 4988 | items: |
| 4989 | type: string |
| 4990 | title: $contains |
| 4991 | description: Filter arrays that contain some of the values of this parameter. |
| 4992 | $contained: |
| 4993 | type: array |
| 4994 | description: Filter arrays that contain all values of this parameter. |
| 4995 | items: |
| 4996 | type: string |
| 4997 | title: $contained |
| 4998 | description: Filter arrays that contain all values of this parameter. |
| 4999 | $exists: |
| 5000 | type: boolean |
Showing first 5,000 of 100,733 lines.
View raw