chore(docs): Generated API Reference (#5259)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
22130ecb63
commit
68915bee86
@@ -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' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
--data-raw '{
|
||||
"type": "product-export",
|
||||
"context": { }
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl '{backend_url}/admin/batch-jobs/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"title": "New Collection"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl -X POST '{backend_url}/admin/currencies' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"name": "VIP"
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl '{backend_url}/admin/customer-groups/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl '{backend_url}/admin/customer-groups/{id}/customers' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"first_name": "Dolly"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"code": "TEST",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl '{backend_url}/admin/discounts/code/{code}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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" }]
|
||||
|
||||
@@ -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" }]
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com",
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl '{backend_url}/admin/draft-orders/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"region_id": "{region_id}"
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"region_id": "{region_id}"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"variant_id": "variant_123",
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl '{backend_url}/admin/inventory-items/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"user": "user@example.com",
|
||||
|
||||
@@ -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}",
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'x-medusa-access-token: {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"resource_id": "{resource_id}",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl '{backend_url}/admin/notifications' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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' \
|
||||
-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" }'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl '{backend_url}/admin/order-edits/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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 }'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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 }'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
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}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
-H 'x-medusa-access-token: {api_token}'
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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}'
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user