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

Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-09-29 23:46:58 +03:00
committed by GitHub
parent 22130ecb63
commit 68915bee86
439 changed files with 696 additions and 398 deletions

View File

@@ -0,0 +1,9 @@
import Medusa from "@medusajs/medusa-js"
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
medusa.admin.auth.getToken({
email: 'user@example.com',
password: 'supersecret'
})
.then(({ accessToken }) => {
console.log(accessToekn);
});

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/apps' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/apps/authorizations' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"application_name": "example",

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/auth' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/auth' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/batch-jobs' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,6 +1,6 @@
curl -X POST '{backend_url}/admin/batch-jobs' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
--data-raw '{
"type": "product-export",
"context": { }

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/batch-jobs/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/batch-jobs/{id}/cancel' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/batch-jobs/{id}/confirm' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/collections' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/collections' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"title": "New Collection"

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/collections/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/collections/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/collections/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"title": "New Collection"

View File

@@ -1,5 +1,5 @@
curl -X DELETE '{backend_url}/admin/collections/{id}/products/batch' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"product_ids": [

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/collections/{id}/products/batch' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"product_ids": [

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/currencies' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/currencies/{code}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"includes_tax": true

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/customer-groups' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/customer-groups' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "VIP"

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/customer-groups/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/customer-groups/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/customer-groups/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "VIP"

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/customer-groups/{id}/customers' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X DELETE '{backend_url}/admin/customer-groups/{id}/customers/batch' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"customer_ids": [

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/customer-groups/{id}/customers/batch' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"customer_ids": [

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/customers' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/customers' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"email": "user@example.com",

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/customers/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/customers/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"first_name": "Dolly"

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/discounts' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/discounts' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"code": "TEST",

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/discounts/code/{code}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/discounts/{id}/conditions' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"operator": "in"

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/discounts/{id}/conditions/{condition_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/discounts/{id}/conditions/{condition_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/discounts/{id}/conditions/{condition}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"products": [

View File

@@ -1,5 +1,5 @@
curl -X DELETE '{backend_url}/admin/discounts/{id}/conditions/{condition_id}/batch' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"resources": [{ "id": "item_id" }]

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/discounts/{id}/conditions/{condition_id}/batch' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"resources": [{ "id": "item_id" }]

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/discounts/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/discounts/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/discounts/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"code": "TEST"

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/discounts/{id}/dynamic-codes' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"code": "TEST"

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/discounts/{id}/dynamic-codes/{code}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/discounts/{id}/regions/{region_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/discounts/{id}/regions/{region_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/draft-orders' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/draft-orders' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"email": "user@example.com",

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/draft-orders/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/draft-orders/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"email": "user@example.com"

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/line-items' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"quantity": 1

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/draft-orders/{id}/line-items/{line_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/line-items/{line_id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"quantity": 1

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/draft-orders/{id}/pay' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/gift-cards' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/gift-cards' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"region_id": "{region_id}"

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/gift-cards/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/gift-cards/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/gift-cards/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"region_id": "{region_id}"

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/inventory-items' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/inventory-items' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"variant_id": "variant_123",

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/inventory-items/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/inventory-items/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/inventory-items/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"origin_country": "US"

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/inventory-items/{id}/location-levels' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/inventory-items/{id}/location-levels' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"location_id": "sloc_123",

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/inventory-items/{id}/location-levels/{location_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/inventory-items/{id}/location-levels/{location_id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"stocked_quantity": 15

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/invites' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/invites' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"user": "user@example.com",

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/invites/accept' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"token": "{token}",

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/invites/{invite_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/invites/{invite_id}/resend' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/notes' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/notes' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"resource_id": "{resource_id}",

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/notes/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/notes/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/notes/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"value": "We delivered this order"

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/notifications' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/notifications/{id}/resend' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/order-edits' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,4 +1,4 @@
curl -X POST '{backend_url}/admin/order-edits' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{ "order_id": "my_order_id", "internal_note": "my_optional_note" }'

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/order-edits/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/order-edits/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/order-edits/{id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"internal_note": "internal reason XY"

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/order-edits/{id}/cancel' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/order-edits/{id}/changes/{change_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/order-edits/{id}/confirm' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,4 +1,4 @@
curl -X POST '{backend_url}/admin/order-edits/{id}/items' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{ "variant_id": "variant_01G1G5V2MRX2V3PVSR2WXYPFB6", "quantity": 3 }'

View File

@@ -1,2 +1,2 @@
curl -X DELETE '{backend_url}/admin/order-edits/{id}/items/{item_id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,4 +1,4 @@
curl -X POST '{backend_url}/admin/order-edits/{id}/items/{item_id}' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{ "quantity": 5 }'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/order-edits/{id}/request' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/orders' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl '{backend_url}/admin/orders/{id}' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,5 +1,5 @@
curl -X POST '{backend_url}/admin/orders/adasda' \
-H 'Authorization: Bearer {api_token}' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"email": "user@example.com"

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/orders/{id}/archive' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/orders/{id}/cancel' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

View File

@@ -1,2 +1,2 @@
curl -X POST '{backend_url}/admin/orders/{id}/capture' \
-H 'Authorization: Bearer {api_token}'
-H 'x-medusa-access-token: {api_token}'

Some files were not shown because too many files have changed in this diff Show More