chore(docs): Generated API Reference (#5259)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
This commit is contained in:
1 parent
22130ecb63
commit
68915bee86
439 files changed
+696
-398
No files matched your search
@@ -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);
|
||||||
|
});
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/apps' \
|
curl '{backend_url}/admin/apps' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/apps/authorizations' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"application_name": "example",
|
"application_name": "example",
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/auth' \
|
curl -X DELETE '{backend_url}/admin/auth' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/auth' \
|
curl '{backend_url}/admin/auth' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/batch-jobs' \
|
curl '{backend_url}/admin/batch-jobs' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
curl -X POST '{backend_url}/admin/batch-jobs' \
|
curl -X POST '{backend_url}/admin/batch-jobs' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-H 'Authorization: Bearer {api_token}' \
|
-H 'x-medusa-access-token: {api_token}' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"type": "product-export",
|
"type": "product-export",
|
||||||
"context": { }
|
"context": { }
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/batch-jobs/{id}' \
|
curl '{backend_url}/admin/batch-jobs/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/batch-jobs/{id}/cancel' \
|
curl -X POST '{backend_url}/admin/batch-jobs/{id}/cancel' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/batch-jobs/{id}/confirm' \
|
curl -X POST '{backend_url}/admin/batch-jobs/{id}/confirm' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/collections' \
|
curl '{backend_url}/admin/collections' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/collections' \
|
curl -X POST '{backend_url}/admin/collections' \
|
||||||
-H 'Authorization: Bearer {api_token}' \
|
-H 'x-medusa-access-token: {api_token}' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"title": "New Collection"
|
"title": "New Collection"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/collections/{id}' \
|
curl -X DELETE '{backend_url}/admin/collections/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/collections/{id}' \
|
curl '{backend_url}/admin/collections/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/collections/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"title": "New Collection"
|
"title": "New Collection"
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/collections/{id}/products/batch' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"product_ids": [
|
"product_ids": [
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/collections/{id}/products/batch' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"product_ids": [
|
"product_ids": [
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/currencies' \
|
curl -X POST '{backend_url}/admin/currencies' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/currencies/{code}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"includes_tax": true
|
"includes_tax": true
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/customer-groups' \
|
curl '{backend_url}/admin/customer-groups' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/customer-groups' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"name": "VIP"
|
"name": "VIP"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/customer-groups/{id}' \
|
curl -X DELETE '{backend_url}/admin/customer-groups/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/customer-groups/{id}' \
|
curl '{backend_url}/admin/customer-groups/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/customer-groups/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"name": "VIP"
|
"name": "VIP"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/customer-groups/{id}/customers' \
|
curl '{backend_url}/admin/customer-groups/{id}/customers' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/customer-groups/{id}/customers/batch' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"customer_ids": [
|
"customer_ids": [
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/customer-groups/{id}/customers/batch' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"customer_ids": [
|
"customer_ids": [
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/customers' \
|
curl '{backend_url}/admin/customers' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/customers' \
|
curl -X POST '{backend_url}/admin/customers' \
|
||||||
-H 'Authorization: Bearer {api_token}' \
|
-H 'x-medusa-access-token: {api_token}' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"email": "user@example.com",
|
"email": "user@example.com",
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/customers/{id}' \
|
curl '{backend_url}/admin/customers/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/customers/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"first_name": "Dolly"
|
"first_name": "Dolly"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/discounts' \
|
curl '{backend_url}/admin/discounts' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/discounts' \
|
curl -X POST '{backend_url}/admin/discounts' \
|
||||||
-H 'Authorization: Bearer {api_token}' \
|
-H 'x-medusa-access-token: {api_token}' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"code": "TEST",
|
"code": "TEST",
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/discounts/code/{code}' \
|
curl '{backend_url}/admin/discounts/code/{code}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/discounts/{id}/conditions' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"operator": "in"
|
"operator": "in"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/discounts/{id}/conditions/{condition_id}' \
|
curl -X DELETE '{backend_url}/admin/discounts/{id}/conditions/{condition_id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/discounts/{id}/conditions/{condition_id}' \
|
curl '{backend_url}/admin/discounts/{id}/conditions/{condition_id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/discounts/{id}/conditions/{condition}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"products": [
|
"products": [
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/discounts/{id}/conditions/{condition_id}/batch' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"resources": [{ "id": "item_id" }]
|
"resources": [{ "id": "item_id" }]
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/discounts/{id}/conditions/{condition_id}/batch' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"resources": [{ "id": "item_id" }]
|
"resources": [{ "id": "item_id" }]
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/discounts/{id}' \
|
curl -X DELETE '{backend_url}/admin/discounts/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/discounts/{id}' \
|
curl '{backend_url}/admin/discounts/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/discounts/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"code": "TEST"
|
"code": "TEST"
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/discounts/{id}/dynamic-codes' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"code": "TEST"
|
"code": "TEST"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/discounts/{id}/dynamic-codes/{code}' \
|
curl -X DELETE '{backend_url}/admin/discounts/{id}/dynamic-codes/{code}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/discounts/{id}/regions/{region_id}' \
|
curl -X DELETE '{backend_url}/admin/discounts/{id}/regions/{region_id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/discounts/{id}/regions/{region_id}' \
|
curl -X POST '{backend_url}/admin/discounts/{id}/regions/{region_id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/draft-orders' \
|
curl '{backend_url}/admin/draft-orders' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/draft-orders' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"email": "user@example.com",
|
"email": "user@example.com",
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/draft-orders/{id}' \
|
curl -X DELETE '{backend_url}/admin/draft-orders/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/draft-orders/{id}' \
|
curl '{backend_url}/admin/draft-orders/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/draft-orders/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"email": "user@example.com"
|
"email": "user@example.com"
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/draft-orders/{id}/line-items' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"quantity": 1
|
"quantity": 1
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/draft-orders/{id}/line-items/{line_id}' \
|
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}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/draft-orders/{id}/line-items/{line_id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"quantity": 1
|
"quantity": 1
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/draft-orders/{id}/pay' \
|
curl -X POST '{backend_url}/admin/draft-orders/{id}/pay' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/gift-cards' \
|
curl '{backend_url}/admin/gift-cards' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/gift-cards' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"region_id": "{region_id}"
|
"region_id": "{region_id}"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/gift-cards/{id}' \
|
curl -X DELETE '{backend_url}/admin/gift-cards/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/gift-cards/{id}' \
|
curl '{backend_url}/admin/gift-cards/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/gift-cards/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"region_id": "{region_id}"
|
"region_id": "{region_id}"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/inventory-items' \
|
curl '{backend_url}/admin/inventory-items' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/inventory-items' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"variant_id": "variant_123",
|
"variant_id": "variant_123",
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/inventory-items/{id}' \
|
curl -X DELETE '{backend_url}/admin/inventory-items/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/inventory-items/{id}' \
|
curl '{backend_url}/admin/inventory-items/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/inventory-items/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"origin_country": "US"
|
"origin_country": "US"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/inventory-items/{id}/location-levels' \
|
curl '{backend_url}/admin/inventory-items/{id}/location-levels' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/inventory-items/{id}/location-levels' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"location_id": "sloc_123",
|
"location_id": "sloc_123",
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/inventory-items/{id}/location-levels/{location_id}' \
|
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}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/inventory-items/{id}/location-levels/{location_id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"stocked_quantity": 15
|
"stocked_quantity": 15
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/invites' \
|
curl '{backend_url}/admin/invites' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/invites' \
|
curl -X POST '{backend_url}/admin/invites' \
|
||||||
-H 'Authorization: Bearer {api_token}' \
|
-H 'x-medusa-access-token: {api_token}' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"user": "user@example.com",
|
"user": "user@example.com",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/invites/accept' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"token": "{token}",
|
"token": "{token}",
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/invites/{invite_id}' \
|
curl -X DELETE '{backend_url}/admin/invites/{invite_id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/invites/{invite_id}/resend' \
|
curl -X POST '{backend_url}/admin/invites/{invite_id}/resend' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/notes' \
|
curl '{backend_url}/admin/notes' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/notes' \
|
curl -X POST '{backend_url}/admin/notes' \
|
||||||
-H 'Authorization: Bearer {api_token}' \
|
-H 'x-medusa-access-token: {api_token}' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"resource_id": "{resource_id}",
|
"resource_id": "{resource_id}",
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/notes/{id}' \
|
curl -X DELETE '{backend_url}/admin/notes/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/notes/{id}' \
|
curl '{backend_url}/admin/notes/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/notes/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"value": "We delivered this order"
|
"value": "We delivered this order"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/notifications' \
|
curl '{backend_url}/admin/notifications' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/notifications/{id}/resend' \
|
curl -X POST '{backend_url}/admin/notifications/{id}/resend' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/order-edits' \
|
curl '{backend_url}/admin/order-edits' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
curl -X POST '{backend_url}/admin/order-edits' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{ "order_id": "my_order_id", "internal_note": "my_optional_note" }'
|
--data-raw '{ "order_id": "my_order_id", "internal_note": "my_optional_note" }'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/order-edits/{id}' \
|
curl -X DELETE '{backend_url}/admin/order-edits/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/order-edits/{id}' \
|
curl '{backend_url}/admin/order-edits/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/order-edits/{id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"internal_note": "internal reason XY"
|
"internal_note": "internal reason XY"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/order-edits/{id}/cancel' \
|
curl -X POST '{backend_url}/admin/order-edits/{id}/cancel' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/order-edits/{id}/changes/{change_id}' \
|
curl -X DELETE '{backend_url}/admin/order-edits/{id}/changes/{change_id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/order-edits/{id}/confirm' \
|
curl -X POST '{backend_url}/admin/order-edits/{id}/confirm' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
curl -X POST '{backend_url}/admin/order-edits/{id}/items' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{ "variant_id": "variant_01G1G5V2MRX2V3PVSR2WXYPFB6", "quantity": 3 }'
|
--data-raw '{ "variant_id": "variant_01G1G5V2MRX2V3PVSR2WXYPFB6", "quantity": 3 }'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X DELETE '{backend_url}/admin/order-edits/{id}/items/{item_id}' \
|
curl -X DELETE '{backend_url}/admin/order-edits/{id}/items/{item_id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
curl -X POST '{backend_url}/admin/order-edits/{id}/items/{item_id}' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{ "quantity": 5 }'
|
--data-raw '{ "quantity": 5 }'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/order-edits/{id}/request' \
|
curl -X POST '{backend_url}/admin/order-edits/{id}/request' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/orders' \
|
curl '{backend_url}/admin/orders' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
curl '{backend_url}/admin/orders/{id}' \
|
curl '{backend_url}/admin/orders/{id}' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
curl -X POST '{backend_url}/admin/orders/adasda' \
|
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' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-raw '{
|
--data-raw '{
|
||||||
"email": "user@example.com"
|
"email": "user@example.com"
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/orders/{id}/archive' \
|
curl -X POST '{backend_url}/admin/orders/{id}/archive' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/orders/{id}/cancel' \
|
curl -X POST '{backend_url}/admin/orders/{id}/cancel' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
curl -X POST '{backend_url}/admin/orders/{id}/capture' \
|
curl -X POST '{backend_url}/admin/orders/{id}/capture' \
|
||||||
-H 'Authorization: Bearer {api_token}'
|
-H 'x-medusa-access-token: {api_token}'
|
||||||
Loaded 100 of 439 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user