From dc5c45b8efbdf2626611ce12ba60e69803b7065d Mon Sep 17 00:00:00 2001 From: Ira Bailey Date: Tue, 6 Feb 2024 23:01:55 +1300 Subject: [PATCH 1/2] update all curl docs and specs with new x-medusa-access-token header --- .../api/routes/store/auth/delete-session.ts | 2 +- .../src/api/routes/store/auth/get-session.ts | 2 +- .../routes/store/customers/create-address.ts | 2 +- .../routes/store/customers/delete-address.ts | 2 +- .../routes/store/customers/get-customer.ts | 2 +- .../store/customers/get-payment-methods.ts | 2 +- .../api/routes/store/customers/list-orders.ts | 2 +- .../routes/store/customers/update-address.ts | 2 +- .../routes/store/customers/update-customer.ts | 2 +- www/apps/api-reference/app/_mdx/admin.mdx | 38 +++++++++---------- .../code_samples/Shell/store_auth/delete.sh | 2 +- .../code_samples/Shell/store_auth/get.sh | 2 +- .../Shell/store_customers_me/get.sh | 2 +- .../Shell/store_customers_me/post.sh | 2 +- .../store_customers_me_addresses/post.sh | 2 +- .../delete.sh | 2 +- .../post.sh | 2 +- .../Shell/store_customers_me_orders/get.sh | 2 +- .../store_customers_me_payment-methods/get.sh | 2 +- .../specs/store/openapi.full.yaml | 18 ++++----- www/apps/docs/content/contribution/docs.md | 2 +- .../content/development/batch-jobs/create.mdx | 6 +-- .../admin/manage-publishable-api-keys.mdx | 16 ++++---- .../admin/manage-customer-groups.mdx | 16 ++++---- .../customers/admin/manage-customers.mdx | 6 +-- .../discounts/admin/manage-discounts.mdx | 14 +++---- .../gift-cards/admin/manage-gift-cards.mdx | 16 ++++---- .../admin/manage-inventory-items.mdx | 18 ++++----- .../manage-item-allocations-in-orders.mdx | 14 +++---- .../admin/manage-reservations.mdx | 8 ++-- .../admin/manage-stock-locations.mdx | 14 +++---- .../modules/orders/admin/edit-order.mdx | 18 ++++----- .../modules/orders/admin/manage-claims.mdx | 14 +++---- .../orders/admin/manage-draft-orders.mdx | 18 ++++----- .../modules/orders/admin/manage-orders.mdx | 28 +++++++------- .../modules/orders/admin/manage-returns.mdx | 14 +++---- .../modules/orders/admin/manage-swaps.mdx | 12 +++--- .../price-lists/admin/_import-prices.mdx | 8 ++-- .../price-lists/admin/manage-price-lists.mdx | 14 +++---- .../products/admin/import-products.mdx | 8 ++-- .../products/admin/manage-categories.mdx | 14 +++---- .../products/admin/manage-products.mdx | 22 +++++------ .../products/storefront/use-categories.mdx | 6 +-- .../admin/manage-currencies.mdx | 10 ++--- .../admin/manage-regions.mdx | 10 ++--- .../modules/sales-channels/admin/manage.mdx | 18 ++++----- .../modules/taxes/admin/manage-tax-rates.mdx | 24 ++++++------ .../taxes/admin/manage-tax-settings.mdx | 6 +-- .../modules/users/admin/manage-invites.mdx | 8 ++-- .../modules/users/admin/manage-profile.mdx | 6 +-- .../modules/users/admin/manage-users.mdx | 8 ++-- 51 files changed, 244 insertions(+), 244 deletions(-) diff --git a/packages/medusa/src/api/routes/store/auth/delete-session.ts b/packages/medusa/src/api/routes/store/auth/delete-session.ts index 02c25887a3aac..5c688a5db91d7 100644 --- a/packages/medusa/src/api/routes/store/auth/delete-session.ts +++ b/packages/medusa/src/api/routes/store/auth/delete-session.ts @@ -20,7 +20,7 @@ * label: cURL * source: | * curl -X DELETE '{backend_url}/store/auth' \ - * -H 'Authorization: Bearer {access_token}' + * -H 'x-medusa-access-token: {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/auth/get-session.ts b/packages/medusa/src/api/routes/store/auth/get-session.ts index 654ba31aa60bc..a1630794b66a6 100644 --- a/packages/medusa/src/api/routes/store/auth/get-session.ts +++ b/packages/medusa/src/api/routes/store/auth/get-session.ts @@ -24,7 +24,7 @@ import { defaultRelations } from "." * label: cURL * source: | * curl '{backend_url}/store/auth' \ - * -H 'Authorization: Bearer {access_token}' + * -H 'x-medusa-access-token: {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/create-address.ts b/packages/medusa/src/api/routes/store/customers/create-address.ts index e34121b6571db..0247748c23865 100644 --- a/packages/medusa/src/api/routes/store/customers/create-address.ts +++ b/packages/medusa/src/api/routes/store/customers/create-address.ts @@ -46,7 +46,7 @@ import { validator } from "../../../../utils/validator" * label: cURL * source: | * curl -X POST '{backend_url}/store/customers/me/addresses' \ - * -H 'Authorization: Bearer {access_token}' \ + * -H 'x-medusa-access-token: {access_token}' \ * -H 'Content-Type: application/json' \ * --data-raw '{ * "address": { diff --git a/packages/medusa/src/api/routes/store/customers/delete-address.ts b/packages/medusa/src/api/routes/store/customers/delete-address.ts index 2cfd4dc8fba33..e1a79b7050e63 100644 --- a/packages/medusa/src/api/routes/store/customers/delete-address.ts +++ b/packages/medusa/src/api/routes/store/customers/delete-address.ts @@ -28,7 +28,7 @@ import CustomerService from "../../../../services/customer" * label: cURL * source: | * curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ - * -H 'Authorization: Bearer {access_token}' + * -H 'x-medusa-access-token: {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/get-customer.ts b/packages/medusa/src/api/routes/store/customers/get-customer.ts index eb24b11265b06..406b71c70042c 100644 --- a/packages/medusa/src/api/routes/store/customers/get-customer.ts +++ b/packages/medusa/src/api/routes/store/customers/get-customer.ts @@ -44,7 +44,7 @@ import CustomerService from "../../../../services/customer" * label: cURL * source: | * curl '{backend_url}/store/customers/me' \ - * -H 'Authorization: Bearer {access_token}' + * -H 'x-medusa-access-token: {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/get-payment-methods.ts b/packages/medusa/src/api/routes/store/customers/get-payment-methods.ts index b4c9380f6405e..3b668ea8082d7 100644 --- a/packages/medusa/src/api/routes/store/customers/get-payment-methods.ts +++ b/packages/medusa/src/api/routes/store/customers/get-payment-methods.ts @@ -29,7 +29,7 @@ import { promiseAll } from "@medusajs/utils" * label: cURL * source: | * curl '{backend_url}/store/customers/me/payment-methods' \ - * -H 'Authorization: Bearer {access_token}' + * -H 'x-medusa-access-token: {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/list-orders.ts b/packages/medusa/src/api/routes/store/customers/list-orders.ts index dbb85fcfcfb7a..2ae74e66f652f 100644 --- a/packages/medusa/src/api/routes/store/customers/list-orders.ts +++ b/packages/medusa/src/api/routes/store/customers/list-orders.ts @@ -184,7 +184,7 @@ import { DateComparisonOperator } from "../../../../types/common" * label: cURL * source: | * curl '{backend_url}/store/customers/me/orders' \ - * -H 'Authorization: Bearer {access_token}' + * -H 'x-medusa-access-token: {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/update-address.ts b/packages/medusa/src/api/routes/store/customers/update-address.ts index 5f1e3abb74565..6084f9f194fd9 100644 --- a/packages/medusa/src/api/routes/store/customers/update-address.ts +++ b/packages/medusa/src/api/routes/store/customers/update-address.ts @@ -37,7 +37,7 @@ import { validator } from "../../../../utils/validator" * label: cURL * source: | * curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ - * -H 'Authorization: Bearer {access_token}' \ + * -H 'x-medusa-access-token: {access_token}' \ * -H 'Content-Type: application/json' \ * --data-raw '{ * "first_name": "Gina" diff --git a/packages/medusa/src/api/routes/store/customers/update-customer.ts b/packages/medusa/src/api/routes/store/customers/update-customer.ts index 1754b924001dd..3371f9560b7d6 100644 --- a/packages/medusa/src/api/routes/store/customers/update-customer.ts +++ b/packages/medusa/src/api/routes/store/customers/update-customer.ts @@ -69,7 +69,7 @@ import { IsType } from "../../../../utils/validators/is-type" * label: cURL * source: | * curl -X POST '{backend_url}/store/customers/me' \ - * -H 'Authorization: Bearer {access_token}' \ + * -H 'x-medusa-access-token: {access_token}' \ * -H 'Content-Type: application/json' \ * --data-raw '{ * "first_name": "Laury" diff --git a/www/apps/api-reference/app/_mdx/admin.mdx b/www/apps/api-reference/app/_mdx/admin.mdx index 3afdee9c71dab..3f89a47ad12ce 100644 --- a/www/apps/api-reference/app/_mdx/admin.mdx +++ b/www/apps/api-reference/app/_mdx/admin.mdx @@ -353,7 +353,7 @@ by passing to the `expand` query parameter the value `collection`: value: 'curl', code: { source: `curl "http://localhost:9000/admin/products?expand=collection" \ --H 'Authorization: Bearer {api_token}'`, +-H 'x-medusa-access-token: {api_token}'`, lang: `bash`, } }, @@ -416,7 +416,7 @@ pass to the `expand` query parameter the value `variants,collection`: value: 'curl', code: { source: `curl "http://localhost:9000/admin/products?expand=variants,collection" \ --H 'Authorization: Bearer {api_token}'`, +-H 'x-medusa-access-token: {api_token}'`, lang: `bash`, } }, @@ -478,7 +478,7 @@ For example: value: 'curl', code: { source: `curl "http://localhost:9000/admin/products?expand" \ --H 'Authorization: Bearer {api_token}'`, +-H 'x-medusa-access-token: {api_token}'`, lang: `bash`, } }, @@ -572,7 +572,7 @@ parameter: value: 'curl', code: { source: `curl "http://localhost:9000/admin/products?fields=title" \ --H 'Authorization: Bearer {api_token}'`, +-H 'x-medusa-access-token: {api_token}'`, lang: `bash`, } }, @@ -632,7 +632,7 @@ value to the `expand` query parameter. For example: value: 'curl', code: { source: `curl "http://localhost:9000/admin/products?fields=title&expand" \ --H 'Authorization: Bearer {api_token}'`, +-H 'x-medusa-access-token: {api_token}'`, lang: `bash`, } }, @@ -696,7 +696,7 @@ For example, to select the `title` and `handle` of products: value: 'curl', code: { source: `curl "http://localhost:9000/admin/products?fields=title,handle" \ --H 'Authorization: Bearer {api_token}'`, +-H 'x-medusa-access-token: {api_token}'`, lang: `bash`, } }, @@ -755,7 +755,7 @@ entity. For example: value: 'curl', code: { source: `curl "http://localhost:9000/admin/products?fields" \ --H 'Authorization: Bearer {api_token}'`, +-H 'x-medusa-access-token: {api_token}'`, lang: `bash`, } }, @@ -811,7 +811,7 @@ relations aren't retrieved as well. For example: value: 'curl', code: { source: `curl "http://localhost:9000/admin/products?fields&expand" \ --H 'Authorization: Bearer {api_token}'`, +-H 'x-medusa-access-token: {api_token}'`, lang: `bash`, } }, @@ -891,7 +891,7 @@ For example: ```bash curl "http://localhost:9000/admin/products?title=Shirt" \ --H 'Authorization: Bearer {api_token}' +-H 'x-medusa-access-token: {api_token}' ``` @@ -905,7 +905,7 @@ For example, if the string has spaces, you can encode the space with `+` or ```bash curl "http://localhost:9000/admin/products?title=Blue%20Shirt" \ --H 'Authorization: Bearer {api_token}' +-H 'x-medusa-access-token: {api_token}' ``` @@ -924,7 +924,7 @@ For example: ```bash curl "http://localhost:9000/admin/products?offset=1" \ --H 'Authorization: Bearer {api_token}' +-H 'x-medusa-access-token: {api_token}' ``` @@ -939,7 +939,7 @@ For example: ```bash curl "http://localhost:9000/admin/products?is_giftcard=true" \ --H 'Authorization: Bearer {api_token}' +-H 'x-medusa-access-token: {api_token}' ``` @@ -955,7 +955,7 @@ For example: ```bash curl -g "http://localhost:9000/admin/products?created_at[lt]=2023-02-17" \ --H 'Authorization: Bearer {api_token}' +-H 'x-medusa-access-token: {api_token}' ``` @@ -968,7 +968,7 @@ For example: ```bash curl -g "http://localhost:9000/admin/products?created_at[lt]=2023-02-17T07:22:30Z" \ --H 'Authorization: Bearer {api_token}' +-H 'x-medusa-access-token: {api_token}' ``` @@ -985,7 +985,7 @@ For example: ```bash curl -g "http://localhost:9000/admin/products?sales_channel_id[]=sc_01GPGVB42PZ7N3YQEP2WDM7PC7&sales_channel_id[]=sc_234PGVB42PZ7N3YQEP2WDM7PC7" \ --H 'Authorization: Bearer {api_token}' +-H 'x-medusa-access-token: {api_token}' ``` @@ -1006,7 +1006,7 @@ For example: ```bash curl -g "http://localhost:9000/admin/products?created_at[lt]=2023-02-17&created_at[gt]=2022-09-17" \ --H 'Authorization: Bearer {api_token}' +-H 'x-medusa-access-token: {api_token}' ``` /admin/uploads' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: text/csv' \ -F 'files=@""' ``` diff --git a/www/apps/docs/content/development/batch-jobs/create.mdx b/www/apps/docs/content/development/batch-jobs/create.mdx index 7e8726ae393d3..f41418ae1f8d8 100644 --- a/www/apps/docs/content/development/batch-jobs/create.mdx +++ b/www/apps/docs/content/development/batch-jobs/create.mdx @@ -361,7 +361,7 @@ For example, this creates a batch job of the type `publish-products`: ```bash curl -L -X POST '/admin/batch-jobs' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "type": "publish-products", @@ -433,7 +433,7 @@ You can retrieve the batch job afterward to get its status and view details abou ```bash curl -L -X GET '/admin/batch-jobs/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' # is the ID of the batch job ``` @@ -517,7 +517,7 @@ To process the batch job, send a request to [confirm the batch job](https://docs ```bash curl -L -X POST '/admin/batch-jobs//confirm' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' # is the ID of the batch job ``` diff --git a/www/apps/docs/content/development/publishable-api-keys/admin/manage-publishable-api-keys.mdx b/www/apps/docs/content/development/publishable-api-keys/admin/manage-publishable-api-keys.mdx index 45783833c5d80..adf7d56a7f7b9 100644 --- a/www/apps/docs/content/development/publishable-api-keys/admin/manage-publishable-api-keys.mdx +++ b/www/apps/docs/content/development/publishable-api-keys/admin/manage-publishable-api-keys.mdx @@ -127,7 +127,7 @@ You can retrieve a list of publishable API keys by sending a request to the [Lis ```bash curl -L -X GET '/admin/publishable-api-keys' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -217,7 +217,7 @@ You can create a publishable API key by sending a request to the [Create Publish ```bash curl -L -X POST '/admin/publishable-api-keys' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "title": "Web API Key" @@ -310,7 +310,7 @@ You can update a publishable API key’s details by sending a request to the [Up ```bash curl -L -X POST '/admin/publishable-api-keys/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "title": "Web API Key" @@ -398,7 +398,7 @@ You can revoke a publishable API key by sending a request to the [Revoke Publish ```bash curl -L -X POST '/admin/publishable-api-keys//revoke' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -475,7 +475,7 @@ You can delete a publishable API key by sending a request to the [Delete Publish ```bash curl -L -X DELETE '/admin/publishable-api-keys/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -573,7 +573,7 @@ You can retrieve the list of sales channels associated with a publishable API ke ```bash curl -L -X GET '/admin/publishable-api-keys//sales-channels' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -681,7 +681,7 @@ You can add a sales channel to a publishable API key by sending a request to the ```bash curl -L -X POST '/admin/publishable-api-keys//sales-channels/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "sales_channel_ids": [ @@ -801,7 +801,7 @@ You can delete a sales channel from a publishable API key by sending a request t ```bash curl -L -X DELETE '/admin/publishable-api-keys//sales-channels/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "sales_channel_ids": [ diff --git a/www/apps/docs/content/modules/customers/admin/manage-customer-groups.mdx b/www/apps/docs/content/modules/customers/admin/manage-customer-groups.mdx index 276450adc886f..03814d6bb415a 100644 --- a/www/apps/docs/content/modules/customers/admin/manage-customer-groups.mdx +++ b/www/apps/docs/content/modules/customers/admin/manage-customer-groups.mdx @@ -109,7 +109,7 @@ You can create a customer group by sending a request to the Create Customer Grou ```bash curl -L -X POST '/admin/customer-groups' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "VIP" @@ -191,7 +191,7 @@ You can get a list of all customer groups by sending a request to the List Custo ```bash curl -L -X GET '/admin/customer-groups' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -260,7 +260,7 @@ You can retrieve a single customer group by sending a request to the Get a Custo ```bash curl -L -X GET '/admin/customer-groups/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -346,7 +346,7 @@ You can update a customer group’s data by sending a request to the Update Cust ```bash curl -L -X POST '/admin/customer-groups/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "metadata": { @@ -424,7 +424,7 @@ You can delete a customer group by sending a request to the Delete a Customer Gr ```bash curl -L -X DELETE '/admin/customer-groups/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -520,7 +520,7 @@ You can add a customer to a group by sending a request to the Customer Group’s ```bash curl -L -X POST '/admin/customer-groups//customers/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "customer_ids": [ @@ -608,7 +608,7 @@ You can retrieve a list of all customers in a customer group using the List Cust ```bash curl -L -X GET '/admin/customer-groups//customers' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -714,7 +714,7 @@ You can remove customers from a customer group by sending a request to the Remov ```bash curl -L -X DELETE '/admin/customer-groups//customers/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "customer_ids": [ diff --git a/www/apps/docs/content/modules/customers/admin/manage-customers.mdx b/www/apps/docs/content/modules/customers/admin/manage-customers.mdx index 2e074d2b18b0f..5dee1758fd389 100644 --- a/www/apps/docs/content/modules/customers/admin/manage-customers.mdx +++ b/www/apps/docs/content/modules/customers/admin/manage-customers.mdx @@ -111,7 +111,7 @@ You can show a list of customers by sending a request to the [List Customers API ```bash curl -L -X GET '/admin/customers' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -214,7 +214,7 @@ You can create a customer account by sending a request to the [Create a Customer ```bash curl -L -X POST '/admin/customers' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "email": "", @@ -314,7 +314,7 @@ You can edit a customer’s information by sending a request to the [Update a Cu ```bash curl -L -X POST '/admin/customers/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "first_name": "" diff --git a/www/apps/docs/content/modules/discounts/admin/manage-discounts.mdx b/www/apps/docs/content/modules/discounts/admin/manage-discounts.mdx index 19fe35c71d67a..3a59c1299463d 100644 --- a/www/apps/docs/content/modules/discounts/admin/manage-discounts.mdx +++ b/www/apps/docs/content/modules/discounts/admin/manage-discounts.mdx @@ -170,7 +170,7 @@ You can create a discount by sending a request to the [Create Discount API Route ```bash curl -L -X POST '/admin/discounts' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "code": "", @@ -272,7 +272,7 @@ For example, you can update the discount’s description and status by sending t ```bash curl -L -X POST '/admin/discounts/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "is_disabled": true @@ -384,7 +384,7 @@ You can send a request to the [Create Condition API Route](https://docs.medusajs ```bash curl -L -X POST '/admin/discounts//conditions' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "operator": "in", @@ -498,7 +498,7 @@ You can retrieve a condition and its resources by sending a request to the [Get ```bash curl -L -X GET '/admin/discounts//conditions/&expand=products' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -606,7 +606,7 @@ For example, to update the products in a condition: ```bash curl -L -X POST '/admin/discounts//conditions/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "products": [ @@ -698,7 +698,7 @@ You can delete a condition by sending a request to the [Delete Condition API Rou ```bash curl -L -X DELETE '/admin/discounts//conditions/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -763,7 +763,7 @@ You can delete a discount by sending a request to the [Delete Discount API Route ```bash curl -L -X DELETE '/admin/discounts/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/gift-cards/admin/manage-gift-cards.mdx b/www/apps/docs/content/modules/gift-cards/admin/manage-gift-cards.mdx index cad213ce6123f..601514dd6a7c3 100644 --- a/www/apps/docs/content/modules/gift-cards/admin/manage-gift-cards.mdx +++ b/www/apps/docs/content/modules/gift-cards/admin/manage-gift-cards.mdx @@ -140,7 +140,7 @@ You can retrieve the gift card products by sending a request to the [List Produc ```bash curl -L -X GET '/admin/products?is_giftcard=true' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -295,7 +295,7 @@ You can create a gift card product by sending a request to the [Create a Product ```bash curl -L -X POST '/admin/products' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "title": "My Gift Card", @@ -424,7 +424,7 @@ You can update a gift card product’s details by sending a request to the [Upda ```bash curl -L -X POST '/admin/products/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "description": "The best gift card" @@ -501,7 +501,7 @@ You can delete a gift card product by sending a request to the [Delete a Product ```bash curl -L -X DELETE '/admin/products/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -582,7 +582,7 @@ You can retrieve all custom gift cards by sending a request to the [List Gift Ca ```bash curl -L -X GET '/admin/gift-cards' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -667,7 +667,7 @@ You can create a custom gift card by sending a request to the [Create a Gift Car ```bash curl -L -X POST '/admin/gift-cards' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "region_id": "", @@ -755,7 +755,7 @@ You can update a gift card by sending a request to the [Update a Gift Card API R ```bash curl -L -X POST '/admin/gift-cards/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "balance": 2000 @@ -834,7 +834,7 @@ You can delete a custom gift card by sending a request to the [Delete a Gift Car ```bash curl -L -X DELETE '/admin/gift-card/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/multiwarehouse/admin/manage-inventory-items.mdx b/www/apps/docs/content/modules/multiwarehouse/admin/manage-inventory-items.mdx index 579e4472366c3..04ef6f4725e77 100644 --- a/www/apps/docs/content/modules/multiwarehouse/admin/manage-inventory-items.mdx +++ b/www/apps/docs/content/modules/multiwarehouse/admin/manage-inventory-items.mdx @@ -121,7 +121,7 @@ You can list inventory items by sending a request to the [List Inventory Items A ```bash curl -L -X GET '/admin/inventory-items' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -206,7 +206,7 @@ You can create an inventory item by sending a request to the [Create Inventory I ```bash curl -L -X POST '/admin/inventory-items' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "variant_id": "variant_123" @@ -285,7 +285,7 @@ You can retrieve an inventory item by sending a request to the [Get Inventory It ```bash curl -L -X GET '/admin/inventory-items/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -372,7 +372,7 @@ You can update an inventory item by sending a request to the [Update Inventory I ```bash curl -L -X POST '/admin/inventory-items/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "origin_country": "US" @@ -461,7 +461,7 @@ You can list inventory levels of an inventory item by sending a request to the [ ```bash curl -L -X GET '/admin/inventory-items//location-levels' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -555,7 +555,7 @@ You can create a location level by sending a request to the [Create Inventory Le ```bash curl -L -X POST '/admin/inventory-items//location-levels' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "location_id": "", @@ -658,7 +658,7 @@ You can update a location level by sending a request to the [Update Location Lev ```bash curl -L -X POST '/admin/inventory-items//location-levels/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "stocked_quantity": 10 @@ -740,7 +740,7 @@ You can delete a location level of an inventory item by sending a request to the ```bash curl -L -X DELETE '/admin/inventory-items//location-levels/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -813,7 +813,7 @@ You can delete an inventory item by sending a request to the [Delete Inventory I ```bash curl -L -X DELETE '/admin/inventory-items/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/multiwarehouse/admin/manage-item-allocations-in-orders.mdx b/www/apps/docs/content/modules/multiwarehouse/admin/manage-item-allocations-in-orders.mdx index a0302dbd58c78..348357e6ddcba 100644 --- a/www/apps/docs/content/modules/multiwarehouse/admin/manage-item-allocations-in-orders.mdx +++ b/www/apps/docs/content/modules/multiwarehouse/admin/manage-item-allocations-in-orders.mdx @@ -146,7 +146,7 @@ You can create an item allocation by sending a request to the [Create a Reservat ```bash curl -L -X POST '/admin/reservations' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "line_item_id": "", @@ -237,7 +237,7 @@ You can retrieve the item allocations of a line item in an order using the [List ```bash curl -L -X GET '/admin/reservations?line_item_id=' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -307,7 +307,7 @@ You can retrieve a single item allocation by its ID using the [Get a Reservation ```bash curl -L -X GET '/admin/reservations/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -390,7 +390,7 @@ You can update an item allocation to change the location to allocate from or the ```bash curl -L -X POST '/admin/reservations/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "quantity": 3 @@ -475,7 +475,7 @@ You can delete an item allocation by sending a request to the [Delete Reservatio ```bash curl -L -X DELETE '/admin/reservations/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -575,7 +575,7 @@ When you create a fulfillment of an order, you can specify the location to fulfi ```bash curl -L -X POST '/admin/orders//fulfillment' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "items": [ @@ -689,7 +689,7 @@ When requesting a return, you can specify the location to return the item to by ```bash curl -L -X POST '/admin/orders//return' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "items": [ diff --git a/www/apps/docs/content/modules/multiwarehouse/admin/manage-reservations.mdx b/www/apps/docs/content/modules/multiwarehouse/admin/manage-reservations.mdx index 12428b14d59a3..64e26af169d5e 100644 --- a/www/apps/docs/content/modules/multiwarehouse/admin/manage-reservations.mdx +++ b/www/apps/docs/content/modules/multiwarehouse/admin/manage-reservations.mdx @@ -128,7 +128,7 @@ You can list all reservations in your store by sending a request to the [List Re ```bash curl -L -X GET '/admin/reservations' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -223,7 +223,7 @@ You can create a reservation by sending a request to the [Create Reservation API ```bash curl -L -X POST '/admin/reservations' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "location_id": "", @@ -316,7 +316,7 @@ You can update a reservation by sending a request to the [Update Reservation API ```bash curl -L -X POST '/admin/reservations/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "quantity": 3 @@ -401,7 +401,7 @@ You can delete a reservation by sending a request to the [Delete Reservation API ```bash curl -L -X DELETE '/admin/reservations/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/multiwarehouse/admin/manage-stock-locations.mdx b/www/apps/docs/content/modules/multiwarehouse/admin/manage-stock-locations.mdx index e6c1f463cbe47..76c9cb9c9bca7 100644 --- a/www/apps/docs/content/modules/multiwarehouse/admin/manage-stock-locations.mdx +++ b/www/apps/docs/content/modules/multiwarehouse/admin/manage-stock-locations.mdx @@ -123,7 +123,7 @@ You can list stock locations by using the [List Stock Locations API Route](https ```bash curl -L -X GET '/admin/stock-locations' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -202,7 +202,7 @@ You can create a stock location using the [Create a Stock Location API Route](ht ```bash curl -L -X POST '/admin/stock-locations' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "Main Warehouse" @@ -281,7 +281,7 @@ You can retrieve a stock location by sending a request to the [Get Stock Locatio ```bash curl -L -X GET '/admin/stock-locations/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -369,7 +369,7 @@ You can associate a stock location with a sales channel by sending a request to ```bash curl -L -X POST '/admin/sales-channels//stock-locations' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "location_id": "" @@ -467,7 +467,7 @@ You can remove the association between a stock location and a sales channel by s ```bash curl -L -X DELETE '/admin/sales-channels//stock-locations' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "location_id": "" @@ -568,7 +568,7 @@ You can update a stock location by sending a request to the [Update Stock Locati ```bash curl -L -X POST '/admin/stock-locations/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "Main Warehouse" @@ -647,7 +647,7 @@ You can delete a stock location by sending a request to the [Delete Stock Locati ```bash curl -L -X DELETE '/admin/stock-locations/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/orders/admin/edit-order.mdx b/www/apps/docs/content/modules/orders/admin/edit-order.mdx index a62883c42ed4d..46806306a49cd 100644 --- a/www/apps/docs/content/modules/orders/admin/edit-order.mdx +++ b/www/apps/docs/content/modules/orders/admin/edit-order.mdx @@ -144,7 +144,7 @@ To do that, send a request to the [Create an OrderEdit API Route](https://docs.m ```bash curl -L -X POST '/admin/order-edits' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "order_id": "" @@ -252,7 +252,7 @@ To add a new item to the original order, send a request to the [Add Line Item AP ```bash curl -L -X POST '/admin/order-edits//items' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "quantity": 1, @@ -344,7 +344,7 @@ To update an item, send a request to the [Update Line Item API Route](https://do ```bash curl -L -X POST '/admin/order-edits//items/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "quantity": 2 @@ -429,7 +429,7 @@ You can remove an item from the original order by sending a request to the [Remo ```bash curl -L -X DELETE '/admin/order-edits//items/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -510,7 +510,7 @@ To revert an item change, send a request to the [Delete Item Change API Route](h ```bash curl -L -X DELETE '/admin/order-edits//changes/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -601,7 +601,7 @@ To move an Order Edit into the request state, send a request to the [Request Con ```bash curl -L -X POST '/admin/order-edits//request' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -702,7 +702,7 @@ To confirm an Order Edit, send a request to the [Confirm Order Edit API Route](h ```bash curl -L -X POST '/admin/order-edits//confirm' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -794,7 +794,7 @@ If the payment is authorized by the customer, it can be captured by sending a re ```bash curl -L -X POST '/admin/payments//capture' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -891,7 +891,7 @@ To refund the difference to the customer, send a request to the [Refund Payment ```bash curl -L -X POST '/admin/payments//refund' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "amount": 1000, diff --git a/www/apps/docs/content/modules/orders/admin/manage-claims.mdx b/www/apps/docs/content/modules/orders/admin/manage-claims.mdx index f91fe06dac25f..be38917c28b5f 100644 --- a/www/apps/docs/content/modules/orders/admin/manage-claims.mdx +++ b/www/apps/docs/content/modules/orders/admin/manage-claims.mdx @@ -123,7 +123,7 @@ To view an order’s claims, you can retrieve the order using the [Get Order API ```bash curl -L -X GET '/admin/orders/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -224,7 +224,7 @@ You can create a claim by sending a request to the [Create Claim API Route](http ```bash curl -L -X POST '/admin/orders//claims' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "type": "refund", @@ -337,7 +337,7 @@ You can update a claim by sending a request to the [Update Claim API Route](http ```bash curl -L -X POST '/admin/orders//claims/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "no_notification": true @@ -428,7 +428,7 @@ You can create a fulfillment for a claim by sending a request to the [Create Cla ```bash curl -L -X POST '/admin/orders//claims//fulfillments' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -515,7 +515,7 @@ You can create a shipment for a claim by sending a request to the [Create Claim ```bash curl -L -X POST '/admin/orders//claims//shipments' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "fulfillment_id": "" @@ -614,7 +614,7 @@ You can cancel a fulfillment by sending a request to the [Cancel Fulfillment API ```bash curl -L -X POST '/admin/orders//claims//fulfillments//cancel' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -694,7 +694,7 @@ You can cancel a claim by sending a request to the [Cancel Claim API Route](http ```bash curl -L -X POST '/admin/orders//claims//cancel' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/orders/admin/manage-draft-orders.mdx b/www/apps/docs/content/modules/orders/admin/manage-draft-orders.mdx index 0e559dd2fa8c0..89519186c27a7 100644 --- a/www/apps/docs/content/modules/orders/admin/manage-draft-orders.mdx +++ b/www/apps/docs/content/modules/orders/admin/manage-draft-orders.mdx @@ -111,7 +111,7 @@ You can list draft orders by sending a request to the [List Draft Orders API Rou ```bash curl -L -X GET '/admin/draft-orders' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -243,7 +243,7 @@ You can create a draft order by sending a request to the [Create Draft Order API ```bash curl -L -X POST '/admin/draft-orders' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "email": "", @@ -350,7 +350,7 @@ You can retrieve a draft order by sending a request to the [Get Draft Order API ```bash curl -L -X GET '/admin/draft-orders/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -435,7 +435,7 @@ You can update a draft order by sending a request to the [Update Draft Order API ```bash curl -L -X POST '/admin/draft-orders/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "email": "user@example.com" @@ -530,7 +530,7 @@ You can add line items to a draft order by sending a request to the [Create Line ```bash curl -L -X POST '/admin/draft-orders//line-items' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "quantity": 1 @@ -628,7 +628,7 @@ You can update a line item by sending a request to the [Update Line Item API Rou ```bash curl -L -X POST '/admin/draft-orders//line-items/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "quantity": 1 @@ -705,7 +705,7 @@ You can delete a line item by sending a request to the [Delete Line Item API Rou ```bash curl -L -X DELETE '/admin/draft-orders//line-items/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -782,7 +782,7 @@ You can register the draft order payment by sending a request to the [Register D ```bash curl -L -X POST '/admin/draft-orders//pay' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -857,7 +857,7 @@ You can delete a draft order by sending a request to the [Delete Draft Order API ```bash curl -L -X DELETE '/admin/draft-orders/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/orders/admin/manage-orders.mdx b/www/apps/docs/content/modules/orders/admin/manage-orders.mdx index 1c71edbf0cae4..83bd68fd17b40 100644 --- a/www/apps/docs/content/modules/orders/admin/manage-orders.mdx +++ b/www/apps/docs/content/modules/orders/admin/manage-orders.mdx @@ -117,7 +117,7 @@ You can list orders by sending a request to the [List Orders API Route](https:// ```bash curl -L -X GET '/admin/orders' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -200,7 +200,7 @@ For example, you can filter the orders by one or more status: ```bash curl -L -X GET '/admin/orders?status[]=completed' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -287,7 +287,7 @@ Another example is filtering the orders by a sales channel: ```bash curl -L -X GET '/admin/orders?sales_channel_id[]=' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -370,7 +370,7 @@ You can also combine filters together: ```bash curl -L -X GET '/admin/orders?status[]=completed&sales_channel_id[]=' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -438,7 +438,7 @@ You can retrieve an order by sending a request to the [Get an Order API Route](h ```bash curl -L -X GET '/admin/orders/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -537,7 +537,7 @@ You can update any of the above details of an order by sending a request to the ```bash curl -L -X POST '/admin/orders/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "email": "user@example.com" @@ -620,7 +620,7 @@ You can capture an order’s payment by sending a request to the [Capture Order ```bash curl -L -X POST '/admin/orders//capture' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -711,7 +711,7 @@ To refund payment, send a request to the [Refund Payment API Route](https://docs ```bash curl -L -X POST '/admin/orders//refund' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "amount": 1000, @@ -828,7 +828,7 @@ You can create a fulfillment by sending a request to the [Create a Fulfillment A ```bash curl -L -X POST '/admin/orders//fulfillment' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "items": [ @@ -931,7 +931,7 @@ You can create a shipment for a fulfillment by sending a request to the [Create ```bash curl -L -X POST '/admin/orders//shipment' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "fulfillment_id": "" @@ -1014,7 +1014,7 @@ You can cancel a fulfillment by sending a request to the [Cancel Fulfillment API ```bash curl -L -X POST '/admin/orders//fulfillments//cancel' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -1089,7 +1089,7 @@ You can mark an order completed, changing its status, by sending a request to th ```bash curl -L -X POST '/admin/orders//complete' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -1164,7 +1164,7 @@ You can cancel an order by sending a request to the [Cancel Order API Route](htt ```bash curl -L -X POST '/admin/orders//cancel' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -1239,7 +1239,7 @@ You can archive an order by sending a request to the [Archive Order API Route](h ```bash curl -L -X POST '/admin/orders//archive' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/orders/admin/manage-returns.mdx b/www/apps/docs/content/modules/orders/admin/manage-returns.mdx index 081410d2fb0ee..a947319a149ee 100644 --- a/www/apps/docs/content/modules/orders/admin/manage-returns.mdx +++ b/www/apps/docs/content/modules/orders/admin/manage-returns.mdx @@ -118,7 +118,7 @@ You can list available return reasons using the [List Return Reasons API Route]( ```bash curl -L -X GET '/admin/return-reasons' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -201,7 +201,7 @@ You can create a return reason using the [Create Return Reason API Route](https: ```bash curl -L -X POST '/admin/return-reasons' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "label": "Damaged", @@ -296,7 +296,7 @@ You can update a return reason by sending a request to the [Update Return Reason ```bash curl -L -X POST '/admin/return-reasons/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "label": "Damaged" @@ -375,7 +375,7 @@ You can delete a return reason by sending a request to the [Delete Return Reason ```bash curl -L -X DELETE '/admin/return-reasons/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -464,7 +464,7 @@ When you retrieve an order using the [Get Order API Route](https://docs.medusajs ```bash curl -L -X GET '/admin/orders/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -578,7 +578,7 @@ You can mark a return as received by sending a request to the [Receive a Return ```bash curl -L -X POST '/admin/returns//receive' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "items": [ @@ -675,7 +675,7 @@ You can cancel a return by sending a request to the [Cancel Return API Route](ht ```bash curl -L -X POST '/admin/returns//cancel' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/orders/admin/manage-swaps.mdx b/www/apps/docs/content/modules/orders/admin/manage-swaps.mdx index 198e13e452fe6..95d7bd22c26aa 100644 --- a/www/apps/docs/content/modules/orders/admin/manage-swaps.mdx +++ b/www/apps/docs/content/modules/orders/admin/manage-swaps.mdx @@ -129,7 +129,7 @@ You can view an order’s swaps by retrieving the order using the [Get Order API ```bash curl -L -X GET '/admin/orders/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -212,7 +212,7 @@ Regardless of whether you need to refund or capture the payment, you can process ```bash curl -L -X POST '/admin/orders//swaps//process-payment' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -302,7 +302,7 @@ You can create a fulfillment for a swap by sending a request to the [Create Swap ```bash curl -L -X POST '/admin/orders//swaps//fulfillments' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -396,7 +396,7 @@ You can create a shipment for a swap’s fulfillment using the [Create Swap Ship ```bash curl -L -X POST '/admin/orders//swaps//shipments' \ - -H 'Authorization: Bearer '\ + -H 'x-medusa-access-token: '\ -H 'Content-Type: application/json' \ --data-raw '{ "fulfillment_id": "" @@ -496,7 +496,7 @@ You can cancel a fulfillment by sending a request to the [Cancel Swap Fulfillmen ```bash curl -L -X POST '/admin/orders//swaps//fulfillments//cancel' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -585,7 +585,7 @@ You can cancel a swap by sending a request to the [Cancel Swap API Route](https: ```bash curl -L -X POST '/admin/orders//swaps//cancel' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/price-lists/admin/_import-prices.mdx b/www/apps/docs/content/modules/price-lists/admin/_import-prices.mdx index 28583dfcc96df..090829e032dde 100644 --- a/www/apps/docs/content/modules/price-lists/admin/_import-prices.mdx +++ b/www/apps/docs/content/modules/price-lists/admin/_import-prices.mdx @@ -202,7 +202,7 @@ You can do that by sending the following request to the [Upload Files API Route] ```bash curl -L -X POST '/admin/uploads' \ - -H 'Authorization: Bearer {api_token}' \ + -H 'x-medusa-access-token: {api_token}' \ -H 'Content-Type: text/csv' \ -F 'files=@""' ``` @@ -293,7 +293,7 @@ You can do that by sending the following request to the [Create a Batch Job API ```bash curl -L -X POST '/admin/batch-jobs' \ - -H 'Authorization: Bearer {api_token}' \ + -H 'x-medusa-access-token: {api_token}' \ -H 'Content-Type: application/json' \ --data-raw '{ "type": "price-list-import", @@ -393,7 +393,7 @@ You can retrieve all the details of the batch job, including its status and the ```bash curl -L -X GET '/admin/batch-jobs/' \ - -H 'Authorization: Bearer {api_token}' + -H 'x-medusa-access-token: {api_token}' # is the ID of the batch job ``` @@ -481,7 +481,7 @@ To confirm a batch job send the following request: ```bash curl -L -X POST '/admin/batch-jobs//confirm' \ - -H 'Authorization: Bearer {api_token}' + -H 'x-medusa-access-token: {api_token}' # is the ID of the batch job ``` diff --git a/www/apps/docs/content/modules/price-lists/admin/manage-price-lists.mdx b/www/apps/docs/content/modules/price-lists/admin/manage-price-lists.mdx index 23816cece342a..7638c4dab1495 100644 --- a/www/apps/docs/content/modules/price-lists/admin/manage-price-lists.mdx +++ b/www/apps/docs/content/modules/price-lists/admin/manage-price-lists.mdx @@ -195,7 +195,7 @@ For example, sending the following request creates a price list with two prices: ```bash curl -L -X POST '/admin/price-lists' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "New Price List", @@ -289,7 +289,7 @@ You can retrieve all of a price list’s details using the Get a Price List API ```bash curl -L -X GET '/admin/price-lists/{id}' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -374,7 +374,7 @@ For example, by sending the following request the end date of the price list wil ```bash curl -L -X POST '/admin/price-lists/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "ends_at": "2022-10-11" @@ -489,7 +489,7 @@ For example, sending the following request adds a new price to the price list: ```bash curl -L -X POST '/admin/price-lists/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "prices": [ @@ -587,7 +587,7 @@ You can delete all the prices of a product’s variants using the [Delete Produc ```bash curl -L -X DELETE '/admin/price-lists//products//prices' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -673,7 +673,7 @@ You can delete all the prices of a variant using the [Delete Variant Prices API ```bash curl -L -X DELETE '/admin/price-lists//variants//prices' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -746,7 +746,7 @@ You can delete a price list, and subsequently all prices defined in it, using th ```bash curl -L -X DELETE '/admin/price-lists/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/products/admin/import-products.mdx b/www/apps/docs/content/modules/products/admin/import-products.mdx index 6f805518fff08..d37fc27b6b224 100644 --- a/www/apps/docs/content/modules/products/admin/import-products.mdx +++ b/www/apps/docs/content/modules/products/admin/import-products.mdx @@ -928,7 +928,7 @@ You can do that by sending the following request to the [Upload Files API Route] ```bash curl -L -X POST '/admin/uploads' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -F 'files=@""' ``` @@ -1018,7 +1018,7 @@ You can do that by sending the following request to the [Create a Batch Job API ```bash curl -L -X POST '/admin/batch-jobs' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "type": "product-import", @@ -1114,7 +1114,7 @@ You can retrieve all the details of the batch job, including its status and the ```bash curl -L -X GET '/admin/batch-jobs/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' # is the ID of the batch job ``` @@ -1202,7 +1202,7 @@ To confirm a batch job send the following request: ```bash curl -L -X POST '/admin/batch-jobs//confirm' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' # is the ID of the batch job ``` diff --git a/www/apps/docs/content/modules/products/admin/manage-categories.mdx b/www/apps/docs/content/modules/products/admin/manage-categories.mdx index d3bff179643f4..5dea8d1947dd5 100644 --- a/www/apps/docs/content/modules/products/admin/manage-categories.mdx +++ b/www/apps/docs/content/modules/products/admin/manage-categories.mdx @@ -117,7 +117,7 @@ You can retrieve available categories by sending a request to the [List Categori ```bash curl -L -X GET '/admin/product-categories' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -198,7 +198,7 @@ You can create a category by sending a request to the [Create a Category API Rou ```bash curl -L -X POST '/admin/product-categories' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "Skinny Jeans" @@ -283,7 +283,7 @@ You can retrieve a product category by sending a request to the [Get a Product C ```bash curl -L -X GET '/admin/product-categories/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -374,7 +374,7 @@ You can edit a product category by sending a request to the [Update a Product Ca ```bash curl -L -X POST '/admin/product-categories/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "Skinny Jeans", @@ -495,7 +495,7 @@ You can add more than one product to a category using the [Add Products to a Cat ```bash curl -L -X POST '/admin/product-categories//products/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "product_ids": [ @@ -618,7 +618,7 @@ You can remove products from a category by sending a request to the [Delete Prod ```bash curl -L -X DELETE '/admin/product-categories//products/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "product_ids": [ @@ -709,7 +709,7 @@ You can delete a product category by sending a request to the [Delete a Product ```bash curl -L -X DELETE '/admin/product-categories/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/products/admin/manage-products.mdx b/www/apps/docs/content/modules/products/admin/manage-products.mdx index 2381f5010ef16..7fb0332f5eee1 100644 --- a/www/apps/docs/content/modules/products/admin/manage-products.mdx +++ b/www/apps/docs/content/modules/products/admin/manage-products.mdx @@ -109,7 +109,7 @@ You can list products as an admin using the [List Products API Route](https://do ```bash curl -L -X GET '/admin/products' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -317,7 +317,7 @@ You can create a product by sending a request to the [Create a Product API Route ```bash curl -L -X POST '/admin/products' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "title": "Shirt 2", @@ -461,7 +461,7 @@ You can retrieve a single product as an admin by sending a request to the [Get a ```bash curl -L -X GET '/admin/products/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -548,7 +548,7 @@ You can update a product by sending a request to the [Update Product API Route]( ```bash curl -L -X POST '/admin/products/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "title": "Shirt" @@ -651,7 +651,7 @@ You can add a product option to a product by sending a request to the [Add Produ ```bash curl -L -X POST '/admin/products//options' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "title": "Size" @@ -747,7 +747,7 @@ You can update a product option by sending a request to the [Update Product Opti ```bash curl -L -X POST '/admin/products//options/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "title": "Size" @@ -832,7 +832,7 @@ You can delete a product option by sending a request to the [Delete Product Opti ```bash curl -L -X DELETE '/admin/products//options/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -966,7 +966,7 @@ You can create a product variant by sending a request to the [Create Product Var ```bash curl -L -X POST '/admin/products//variants' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "title": "White Shirt", @@ -1080,7 +1080,7 @@ You can update a product variant by sending a request to the [Update a Product V ```bash curl -L -X POST '/admin/products//variants/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "title": "White Shirt" @@ -1165,7 +1165,7 @@ You can delete a product variant by sending a request to the [Delete a Product V ```bash curl -L -X DELETE '/admin/products//variants/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -1245,7 +1245,7 @@ You can delete a product by sending a request to the [Delete a Product API Route ```bash curl -L -X DELETE '/admin/products/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/products/storefront/use-categories.mdx b/www/apps/docs/content/modules/products/storefront/use-categories.mdx index 6aef4117f4efc..3ed9258ee9b02 100644 --- a/www/apps/docs/content/modules/products/storefront/use-categories.mdx +++ b/www/apps/docs/content/modules/products/storefront/use-categories.mdx @@ -141,7 +141,7 @@ You can list product categories by sending a request to the [List Product Catego ```bash curl -L -X GET '/store/product-categories' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -242,7 +242,7 @@ You can retrieve a single product category by its ID using the [Get a Product Ca ```bash curl -L -X GET '/store/product-categories/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -358,7 +358,7 @@ You can retrieve the details of a category by its handle by sending a request to ```bash curl -L -X GET '/store/product-categories?handle=women' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/regions-and-currencies/admin/manage-currencies.mdx b/www/apps/docs/content/modules/regions-and-currencies/admin/manage-currencies.mdx index 161b7982f6f11..c63c379818f02 100644 --- a/www/apps/docs/content/modules/regions-and-currencies/admin/manage-currencies.mdx +++ b/www/apps/docs/content/modules/regions-and-currencies/admin/manage-currencies.mdx @@ -120,7 +120,7 @@ You can list all available currencies in your system by sending a request to the ```bash curl -L -X GET '/admin/currencies' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -199,7 +199,7 @@ You can update a currency by sending a request to the [Update Currency API Route ```bash curl -L -X GET '/admin/currencies/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "includes_tax": true @@ -294,7 +294,7 @@ You can list currencies in a store by sending a request to the [Get Store Detail ```bash curl -L -X POST '/admin/store' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -362,7 +362,7 @@ You can add a currency to a store using the [Add a Currency Code API Route](http ```bash curl -L -X POST '/admin/store/currencies/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -429,7 +429,7 @@ You can remove a currency from a store by sending a request to the [Delete Curre ```bash curl -L -X DELETE '/admin/store/currencies/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/regions-and-currencies/admin/manage-regions.mdx b/www/apps/docs/content/modules/regions-and-currencies/admin/manage-regions.mdx index 1e171a6a6f804..bbd014c173a69 100644 --- a/www/apps/docs/content/modules/regions-and-currencies/admin/manage-regions.mdx +++ b/www/apps/docs/content/modules/regions-and-currencies/admin/manage-regions.mdx @@ -119,7 +119,7 @@ You can retrieve regions available on your backend using the [List Regions API R ```bash curl -L -X GET '/admin/regions' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -231,7 +231,7 @@ You can create a region by sending a request to the [Create a Region API Route]( ```bash curl -L -X POST '/admin/regions' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "Europe", @@ -350,7 +350,7 @@ Alternatively, you can update the details of a region using the [Update a Region ```bash curl -L -X POST '/admin/regions/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "countries": [ @@ -466,7 +466,7 @@ You can add a shipping option to a region by sending a request to the [Create Sh ```bash curl -L -X POST '/admin/shipping-options' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "PostFake", @@ -565,7 +565,7 @@ You can delete a region by sending a request to the [Delete a Region API Route]( ```bash curl -L -X DELETE '/admin/regions/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/sales-channels/admin/manage.mdx b/www/apps/docs/content/modules/sales-channels/admin/manage.mdx index c601c2bbfbf19..ab7991bb6f217 100644 --- a/www/apps/docs/content/modules/sales-channels/admin/manage.mdx +++ b/www/apps/docs/content/modules/sales-channels/admin/manage.mdx @@ -120,7 +120,7 @@ You can create a sales channel by sending a request to the Create a Sales Channe ```bash curl -L -X POST '/admin/sales-channels' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ name: 'App', @@ -198,7 +198,7 @@ You can list all sales channels by sending a request to the List Sales Channels ```bash curl -L -X GET '/admin/sales-channels' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -267,7 +267,7 @@ You can retrieve a sales channel’s details by its ID using the Get Sales Chann ```bash curl -L -X GET '/admin/sales-channels/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -352,7 +352,7 @@ You can update a Sales Channel’s details and attributes by sending a request t ```bash curl -L -X POST '/admin/sales-channels/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "is_disabled": false @@ -433,7 +433,7 @@ You can delete a sales channel by sending a request to the Delete Sales Channel ```bash curl -L -X DELETE '/admin/sales-channels/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -535,7 +535,7 @@ To add a product to a sales channel, send a request to the Sales Channel’s Add ```bash curl -L -X POST '/admin/sales-channels//products/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "product_ids": [ @@ -631,7 +631,7 @@ You can list the products available in a sales channel by sending a request to t ```bash curl -L -X GET '/admin/products?sales_channel_id[0]=' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -739,7 +739,7 @@ You can delete a product from a sales channel by sending a request to the Sales ```bash curl -L -X DELETE '/admin/sales-channels//products/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "product_ids": [ @@ -831,7 +831,7 @@ You can filter orders by a specific sales channel by sending a request to the Li ```bash curl -L -X GET '/admin/orders?sales_channel_id[0]=' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/taxes/admin/manage-tax-rates.mdx b/www/apps/docs/content/modules/taxes/admin/manage-tax-rates.mdx index cfb606b61fb8a..f15a4cb6240e7 100644 --- a/www/apps/docs/content/modules/taxes/admin/manage-tax-rates.mdx +++ b/www/apps/docs/content/modules/taxes/admin/manage-tax-rates.mdx @@ -110,7 +110,7 @@ You can list the tax rates by sending a request to the [List Tax Rates API Route ```bash curl -L -X GET '/admin/tax-rates' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -185,7 +185,7 @@ You can retrieve the tax rate of a region by passing the `region_id` query param ```bash curl -L -X GET '/admin/tax-rates?region_id=reg_123' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -258,7 +258,7 @@ This query parameter also accepts an array of strings, allowing you to filter th ```bash curl -L -X GET '/admin/tax-rates?region_id[]=reg_123®ion_id[]=reg_456' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -350,7 +350,7 @@ You can create a tax rate by sending a request to the [Create Tax Rate API Route ```bash curl -L -X POST '/admin/tax-rates' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "code": "TEST", @@ -454,7 +454,7 @@ You can update a tax rate by sending a request to the [Update Tax Rate API Route ```bash curl -L -X POST '/admin/tax-rates/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "name": "New Tax Rate" @@ -553,7 +553,7 @@ You can add a product to a tax rate by sending a request to the [Add Products AP ```bash curl -L -X POST '/admin/tax-rates//products/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "products": [ @@ -646,7 +646,7 @@ You can remove a product from a tax rate by sending a request to the [Delete Pro ```bash curl -L -X DELETE '/admin/tax-rates//products/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "products": [ @@ -751,7 +751,7 @@ You can add a product type to a tax rate by sending a request to the [Add Produc ```bash curl -L -X POST '/admin/tax-rates//product-types/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "product_types": [ @@ -852,7 +852,7 @@ You can remove a product type from a tax rate by sending a request to the [Delet ```bash curl -L -X DELETE '/admin/tax-rates//product-types/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "product_types": [ @@ -957,7 +957,7 @@ You can add a shipping option to a tax rate by sending a request to the [Add Shi ```bash curl -L -X POST '/admin/tax-rates//shipping-options/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "shipping_options": [ @@ -1054,7 +1054,7 @@ You can remove a shipping option from a tax rate by sending a request to the [De ```bash curl -L -X DELETE '/admin/tax-rates//shipping-options/batch' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "shipping_options": [ @@ -1135,7 +1135,7 @@ You can delete a tax rate by sending a request to the [Delete Tax Rate API Route ```bash curl -L -X DELETE '/admin/tax-rates/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/taxes/admin/manage-tax-settings.mdx b/www/apps/docs/content/modules/taxes/admin/manage-tax-settings.mdx index bfedf0ee0cd11..7407af7c6d07e 100644 --- a/www/apps/docs/content/modules/taxes/admin/manage-tax-settings.mdx +++ b/www/apps/docs/content/modules/taxes/admin/manage-tax-settings.mdx @@ -114,7 +114,7 @@ You can list all tax providers of a store using the [List Tax Providers API Rout ```bash curl -L -X GET '/admin/store/tax-providers' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -193,7 +193,7 @@ You can change the tax provider of a region using the [Update Region API Route]( ```bash curl -L -X POST '/admin/regions/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "tax_provider_id": "" @@ -292,7 +292,7 @@ In addition to changing the tax provider, you can use the same [Update Region AP ```bash curl -L -X POST '/admin/regions/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "tax_provider_id": "", diff --git a/www/apps/docs/content/modules/users/admin/manage-invites.mdx b/www/apps/docs/content/modules/users/admin/manage-invites.mdx index e78be2bbef41a..fa1148c748fa2 100644 --- a/www/apps/docs/content/modules/users/admin/manage-invites.mdx +++ b/www/apps/docs/content/modules/users/admin/manage-invites.mdx @@ -113,7 +113,7 @@ You can list invites by sending a request to the [List Invite API Route](https:/ ```bash curl -L -X GET '/admin/invites' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -191,7 +191,7 @@ You can create an invite by sending a request to the [Create Invite API Route](h ```bash curl -L -X POST '/admin/invites' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "user": "user@example.com", @@ -379,7 +379,7 @@ You can resend an invite if it’s not accepted yet. To resend an invite, send a ```bash curl -L -X POST '/admin/invites//resend' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -452,7 +452,7 @@ You can delete an invite by sending a request to the [Delete Invite API Route](h ```bash curl -L -X DELETE '/admin/invites/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` diff --git a/www/apps/docs/content/modules/users/admin/manage-profile.mdx b/www/apps/docs/content/modules/users/admin/manage-profile.mdx index a2b14f987e2d1..c5cbf9b65cb59 100644 --- a/www/apps/docs/content/modules/users/admin/manage-profile.mdx +++ b/www/apps/docs/content/modules/users/admin/manage-profile.mdx @@ -186,7 +186,7 @@ You can log out a user by sending a request to the [User Logout API Route](https ```bash curl -L -X DELETE '/admin/auth' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -250,7 +250,7 @@ You can retrieve the current user’s details for their profile by sending a req ```bash curl -L -X GET '/admin/auth' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -335,7 +335,7 @@ You can update a user’s details in their profile by sending a request to the [ ```bash curl -L -X POST '/admin/users/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "first_name": "Marcellus" diff --git a/www/apps/docs/content/modules/users/admin/manage-users.mdx b/www/apps/docs/content/modules/users/admin/manage-users.mdx index 4e0d60690a92d..6f7070aaf54d6 100644 --- a/www/apps/docs/content/modules/users/admin/manage-users.mdx +++ b/www/apps/docs/content/modules/users/admin/manage-users.mdx @@ -110,7 +110,7 @@ You can retrieve users in a store by sending a request to the [List Users API Ro ```bash curl -L -X GET '/admin/users' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` @@ -192,7 +192,7 @@ You can create a user by sending a request to the [Create User API Route](https: ```bash curl -L -X POST '/admin/users' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "email": "user@example.com", @@ -287,7 +287,7 @@ You can update a user’s details by sending a request to the [Update User API R ```bash curl -L -X POST '/admin/users/' \ - -H 'Authorization: Bearer ' \ + -H 'x-medusa-access-token: ' \ -H 'Content-Type: application/json' \ --data-raw '{ "first_name": "Marcellus" @@ -366,7 +366,7 @@ You can delete a user by sending a request to the [Delete User API Route](https: ```bash curl -L -X DELETE '/admin/users/' \ - -H 'Authorization: Bearer ' + -H 'x-medusa-access-token: ' ``` From 661637462798b83baca490acdfaf35942d7ba794 Mon Sep 17 00:00:00 2001 From: Ira Bailey Date: Wed, 7 Feb 2024 10:31:55 +1300 Subject: [PATCH 2/2] Revert changes to references to Store API --- .../api/routes/store/auth/delete-session.ts | 2 +- .../src/api/routes/store/auth/get-session.ts | 2 +- .../routes/store/customers/create-address.ts | 2 +- .../routes/store/customers/delete-address.ts | 2 +- .../api/routes/store/customers/get-customer.ts | 2 +- .../store/customers/get-payment-methods.ts | 2 +- .../api/routes/store/customers/list-orders.ts | 2 +- .../routes/store/customers/update-address.ts | 2 +- .../routes/store/customers/update-customer.ts | 2 +- .../code_samples/Shell/store_auth/delete.sh | 2 +- .../store/code_samples/Shell/store_auth/get.sh | 2 +- .../Shell/store_customers_me/get.sh | 2 +- .../Shell/store_customers_me/post.sh | 2 +- .../Shell/store_customers_me_addresses/post.sh | 2 +- .../delete.sh | 2 +- .../post.sh | 2 +- .../Shell/store_customers_me_orders/get.sh | 2 +- .../store_customers_me_payment-methods/get.sh | 2 +- .../specs/store/openapi.full.yaml | 18 +++++++++--------- 19 files changed, 27 insertions(+), 27 deletions(-) diff --git a/packages/medusa/src/api/routes/store/auth/delete-session.ts b/packages/medusa/src/api/routes/store/auth/delete-session.ts index 5c688a5db91d7..02c25887a3aac 100644 --- a/packages/medusa/src/api/routes/store/auth/delete-session.ts +++ b/packages/medusa/src/api/routes/store/auth/delete-session.ts @@ -20,7 +20,7 @@ * label: cURL * source: | * curl -X DELETE '{backend_url}/store/auth' \ - * -H 'x-medusa-access-token: {access_token}' + * -H 'Authorization: Bearer {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/auth/get-session.ts b/packages/medusa/src/api/routes/store/auth/get-session.ts index a1630794b66a6..654ba31aa60bc 100644 --- a/packages/medusa/src/api/routes/store/auth/get-session.ts +++ b/packages/medusa/src/api/routes/store/auth/get-session.ts @@ -24,7 +24,7 @@ import { defaultRelations } from "." * label: cURL * source: | * curl '{backend_url}/store/auth' \ - * -H 'x-medusa-access-token: {access_token}' + * -H 'Authorization: Bearer {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/create-address.ts b/packages/medusa/src/api/routes/store/customers/create-address.ts index 0247748c23865..e34121b6571db 100644 --- a/packages/medusa/src/api/routes/store/customers/create-address.ts +++ b/packages/medusa/src/api/routes/store/customers/create-address.ts @@ -46,7 +46,7 @@ import { validator } from "../../../../utils/validator" * label: cURL * source: | * curl -X POST '{backend_url}/store/customers/me/addresses' \ - * -H 'x-medusa-access-token: {access_token}' \ + * -H 'Authorization: Bearer {access_token}' \ * -H 'Content-Type: application/json' \ * --data-raw '{ * "address": { diff --git a/packages/medusa/src/api/routes/store/customers/delete-address.ts b/packages/medusa/src/api/routes/store/customers/delete-address.ts index e1a79b7050e63..2cfd4dc8fba33 100644 --- a/packages/medusa/src/api/routes/store/customers/delete-address.ts +++ b/packages/medusa/src/api/routes/store/customers/delete-address.ts @@ -28,7 +28,7 @@ import CustomerService from "../../../../services/customer" * label: cURL * source: | * curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ - * -H 'x-medusa-access-token: {access_token}' + * -H 'Authorization: Bearer {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/get-customer.ts b/packages/medusa/src/api/routes/store/customers/get-customer.ts index 406b71c70042c..eb24b11265b06 100644 --- a/packages/medusa/src/api/routes/store/customers/get-customer.ts +++ b/packages/medusa/src/api/routes/store/customers/get-customer.ts @@ -44,7 +44,7 @@ import CustomerService from "../../../../services/customer" * label: cURL * source: | * curl '{backend_url}/store/customers/me' \ - * -H 'x-medusa-access-token: {access_token}' + * -H 'Authorization: Bearer {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/get-payment-methods.ts b/packages/medusa/src/api/routes/store/customers/get-payment-methods.ts index 3b668ea8082d7..b4c9380f6405e 100644 --- a/packages/medusa/src/api/routes/store/customers/get-payment-methods.ts +++ b/packages/medusa/src/api/routes/store/customers/get-payment-methods.ts @@ -29,7 +29,7 @@ import { promiseAll } from "@medusajs/utils" * label: cURL * source: | * curl '{backend_url}/store/customers/me/payment-methods' \ - * -H 'x-medusa-access-token: {access_token}' + * -H 'Authorization: Bearer {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/list-orders.ts b/packages/medusa/src/api/routes/store/customers/list-orders.ts index 2ae74e66f652f..dbb85fcfcfb7a 100644 --- a/packages/medusa/src/api/routes/store/customers/list-orders.ts +++ b/packages/medusa/src/api/routes/store/customers/list-orders.ts @@ -184,7 +184,7 @@ import { DateComparisonOperator } from "../../../../types/common" * label: cURL * source: | * curl '{backend_url}/store/customers/me/orders' \ - * -H 'x-medusa-access-token: {access_token}' + * -H 'Authorization: Bearer {access_token}' * security: * - cookie_auth: [] * - jwt_token: [] diff --git a/packages/medusa/src/api/routes/store/customers/update-address.ts b/packages/medusa/src/api/routes/store/customers/update-address.ts index 6084f9f194fd9..5f1e3abb74565 100644 --- a/packages/medusa/src/api/routes/store/customers/update-address.ts +++ b/packages/medusa/src/api/routes/store/customers/update-address.ts @@ -37,7 +37,7 @@ import { validator } from "../../../../utils/validator" * label: cURL * source: | * curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ - * -H 'x-medusa-access-token: {access_token}' \ + * -H 'Authorization: Bearer {access_token}' \ * -H 'Content-Type: application/json' \ * --data-raw '{ * "first_name": "Gina" diff --git a/packages/medusa/src/api/routes/store/customers/update-customer.ts b/packages/medusa/src/api/routes/store/customers/update-customer.ts index 3371f9560b7d6..1754b924001dd 100644 --- a/packages/medusa/src/api/routes/store/customers/update-customer.ts +++ b/packages/medusa/src/api/routes/store/customers/update-customer.ts @@ -69,7 +69,7 @@ import { IsType } from "../../../../utils/validators/is-type" * label: cURL * source: | * curl -X POST '{backend_url}/store/customers/me' \ - * -H 'x-medusa-access-token: {access_token}' \ + * -H 'Authorization: Bearer {access_token}' \ * -H 'Content-Type: application/json' \ * --data-raw '{ * "first_name": "Laury" diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_auth/delete.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_auth/delete.sh index c7366f6947db0..c1f3e1d616447 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_auth/delete.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_auth/delete.sh @@ -1,2 +1,2 @@ curl -X DELETE '{backend_url}/store/auth' \ --H 'x-medusa-access-token: {access_token}' +-H 'Authorization: Bearer {access_token}' diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_auth/get.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_auth/get.sh index 201ed240d715d..1130a2116afa4 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_auth/get.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_auth/get.sh @@ -1,2 +1,2 @@ curl '{backend_url}/store/auth' \ --H 'x-medusa-access-token: {access_token}' +-H 'Authorization: Bearer {access_token}' diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/get.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/get.sh index 736fbcbc8e7ac..beb12de62da7e 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/get.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/get.sh @@ -1,2 +1,2 @@ curl '{backend_url}/store/customers/me' \ --H 'x-medusa-access-token: {access_token}' +-H 'Authorization: Bearer {access_token}' diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/post.sh index edd4ff854beda..390872ff80f36 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me/post.sh @@ -1,5 +1,5 @@ curl -X POST '{backend_url}/store/customers/me' \ --H 'x-medusa-access-token: {access_token}' \ +-H 'Authorization: Bearer {access_token}' \ -H 'Content-Type: application/json' \ --data-raw '{ "first_name": "Laury" diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses/post.sh index 8303651d6a5c4..2565459f5a36d 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses/post.sh @@ -1,5 +1,5 @@ curl -X POST '{backend_url}/store/customers/me/addresses' \ --H 'x-medusa-access-token: {access_token}' \ +-H 'Authorization: Bearer {access_token}' \ -H 'Content-Type: application/json' \ --data-raw '{ "address": { diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/delete.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/delete.sh index 0b3dc751216af..609da1616a1a2 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/delete.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/delete.sh @@ -1,2 +1,2 @@ curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ --H 'x-medusa-access-token: {access_token}' +-H 'Authorization: Bearer {access_token}' diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/post.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/post.sh index 319ff0e8e08a8..402c7fe33597e 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/post.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_addresses_{address_id}/post.sh @@ -1,5 +1,5 @@ curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ --H 'x-medusa-access-token: {access_token}' \ +-H 'Authorization: Bearer {access_token}' \ -H 'Content-Type: application/json' \ --data-raw '{ "first_name": "Gina" diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_orders/get.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_orders/get.sh index 01694adddf1db..fb9434ba22234 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_orders/get.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_orders/get.sh @@ -1,2 +1,2 @@ curl '{backend_url}/store/customers/me/orders' \ --H 'x-medusa-access-token: {access_token}' +-H 'Authorization: Bearer {access_token}' diff --git a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_payment-methods/get.sh b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_payment-methods/get.sh index 7ab8ebd246e61..209780f74d1ee 100644 --- a/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_payment-methods/get.sh +++ b/www/apps/api-reference/specs/store/code_samples/Shell/store_customers_me_payment-methods/get.sh @@ -1,2 +1,2 @@ curl '{backend_url}/store/customers/me/payment-methods' \ --H 'x-medusa-access-token: {access_token}' +-H 'Authorization: Bearer {access_token}' diff --git a/www/apps/api-reference/specs/store/openapi.full.yaml b/www/apps/api-reference/specs/store/openapi.full.yaml index 3bdba034f19fa..80315b72cf2a6 100644 --- a/www/apps/api-reference/specs/store/openapi.full.yaml +++ b/www/apps/api-reference/specs/store/openapi.full.yaml @@ -135,7 +135,7 @@ paths: label: cURL source: | curl '{backend_url}/store/auth' \ - -H 'x-medusa-access-token: {access_token}' + -H 'Authorization: Bearer {access_token}' security: - cookie_auth: [] - jwt_token: [] @@ -235,7 +235,7 @@ paths: label: cURL source: | curl -X DELETE '{backend_url}/store/auth' \ - -H 'x-medusa-access-token: {access_token}' + -H 'Authorization: Bearer {access_token}' security: - cookie_auth: [] - jwt_token: [] @@ -1897,7 +1897,7 @@ paths: label: cURL source: | curl '{backend_url}/store/customers/me' \ - -H 'x-medusa-access-token: {access_token}' + -H 'Authorization: Bearer {access_token}' security: - cookie_auth: [] - jwt_token: [] @@ -1983,7 +1983,7 @@ paths: label: cURL source: | curl -X POST '{backend_url}/store/customers/me' \ - -H 'x-medusa-access-token: {access_token}' \ + -H 'Authorization: Bearer {access_token}' \ -H 'Content-Type: application/json' \ --data-raw '{ "first_name": "Laury" @@ -2052,7 +2052,7 @@ paths: label: cURL source: | curl -X POST '{backend_url}/store/customers/me/addresses' \ - -H 'x-medusa-access-token: {access_token}' \ + -H 'Authorization: Bearer {access_token}' \ -H 'Content-Type: application/json' \ --data-raw '{ "address": { @@ -2125,7 +2125,7 @@ paths: label: cURL source: | curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ - -H 'x-medusa-access-token: {access_token}' \ + -H 'Authorization: Bearer {access_token}' \ -H 'Content-Type: application/json' \ --data-raw '{ "first_name": "Gina" @@ -2183,7 +2183,7 @@ paths: label: cURL source: | curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ - -H 'x-medusa-access-token: {access_token}' + -H 'Authorization: Bearer {access_token}' security: - cookie_auth: [] - jwt_token: [] @@ -2443,7 +2443,7 @@ paths: label: cURL source: | curl '{backend_url}/store/customers/me/orders' \ - -H 'x-medusa-access-token: {access_token}' + -H 'Authorization: Bearer {access_token}' security: - cookie_auth: [] - jwt_token: [] @@ -2492,7 +2492,7 @@ paths: label: cURL source: | curl '{backend_url}/store/customers/me/payment-methods' \ - -H 'x-medusa-access-token: {access_token}' + -H 'Authorization: Bearer {access_token}' security: - cookie_auth: [] - jwt_token: []