chore(docs): Generated API Reference (#4706)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com> Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
This commit is contained in:
committed by
GitHub
parent
efdea04963
commit
658339767b
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/apps' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/apps' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/apps/authorizations' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/apps/authorizations' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"application_name": "example",
|
||||
"state": "ready",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/auth' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/auth' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/auth' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/auth' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/auth' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/auth' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com",
|
||||
"password": "supersecret"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/batch-jobs' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/batch-jobs' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/batch-jobs' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
curl -X POST 'https://medusa-url.com/admin/batch-jobs' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
--data-raw '{
|
||||
"type": "product-export",
|
||||
"context": { }
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/batch-jobs/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/batch-jobs/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/batch-jobs/{id}/cancel' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/batch-jobs/{id}/cancel' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/batch-jobs/{id}/confirm' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/batch-jobs/{id}/confirm' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/collections' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/collections' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/collections' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/collections' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"title": "New Collection"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/collections/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/collections/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/collections/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/collections/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/collections/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/collections/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"title": "New Collection"
|
||||
}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/collections/{id}/products/batch' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X DELETE 'https://medusa-url.com/admin/collections/{id}/products/batch' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"product_ids": [
|
||||
"prod_01G1G5V2MBA328390B5AXJ610F"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/collections/{id}/products/batch' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/collections/{id}/products/batch' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"product_ids": [
|
||||
"prod_01G1G5V2MBA328390B5AXJ610F"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/currencies' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/currencies' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/currencies/{code}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/currencies/{code}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"includes_tax": true
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/customer-groups' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/customer-groups' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/customer-groups' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/customer-groups' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"name": "VIP"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/customer-groups/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/customer-groups/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/customer-groups/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/customer-groups/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/customer-groups/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/customer-groups/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"name": "VIP"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/customer-groups/{id}/customers' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/customer-groups/{id}/customers' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/customer-groups/{id}/customers/batch' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X DELETE 'https://medusa-url.com/admin/customer-groups/{id}/customers/batch' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"customer_ids": [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/customer-groups/{id}/customers/batch' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/customer-groups/{id}/customers/batch' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"customer_ids": [
|
||||
{
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/customers' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/customers' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/customers' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/customers' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com",
|
||||
"first_name": "Caterina",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/customers/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/customers/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/customers/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/customers/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"first_name": "Dolly"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/discounts' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/discounts' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/discounts' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/discounts' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"code": "TEST",
|
||||
"rule": {
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/discounts/code/{code}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/discounts/code/{code}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/discounts/{id}/conditions' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/discounts/{id}/conditions' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"operator": "in"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"products": [
|
||||
"prod_01G1G5V2MBA328390B5AXJ610F"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition_id}/batch' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X DELETE 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition_id}/batch' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"resources": [{ "id": "item_id" }]
|
||||
}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition_id}/batch' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/discounts/{id}/conditions/{condition_id}/batch' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"resources": [{ "id": "item_id" }]
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/discounts/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/discounts/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/discounts/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/discounts/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/discounts/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/discounts/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"code": "TEST"
|
||||
}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/discounts/{id}/dynamic-codes' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/discounts/{id}/dynamic-codes' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"code": "TEST"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/discounts/{id}/dynamic-codes/{code}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/discounts/{id}/dynamic-codes/{code}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/discounts/{id}/regions/{region_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/discounts/{id}/regions/{region_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/discounts/{id}/regions/{region_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/discounts/{id}/regions/{region_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/draft-orders' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/draft-orders' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/draft-orders' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/draft-orders' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com",
|
||||
"region_id": "{region_id}"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/draft-orders/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/draft-orders/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/draft-orders/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/draft-orders/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/draft-orders/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/draft-orders/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com"
|
||||
}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/draft-orders/{id}/line-items' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/draft-orders/{id}/line-items' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"quantity": 1
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/draft-orders/{id}/line-items/{line_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/draft-orders/{id}/line-items/{line_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/draft-orders/{id}/line-items/{line_id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/draft-orders/{id}/line-items/{line_id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"quantity": 1
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/draft-orders/{id}/pay' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/draft-orders/{id}/pay' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/gift-cards' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/gift-cards' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/gift-cards' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/gift-cards' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"region_id": "{region_id}"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/gift-cards/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/gift-cards/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/gift-cards/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/gift-cards/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/gift-cards/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/gift-cards/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"region_id": "{region_id}"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/inventory-items' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/inventory-items' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/inventory-items' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/inventory-items' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"variant_id": "variant_123",
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/inventory-items/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/inventory-items/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/inventory-items/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/inventory-items/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/inventory-items/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/inventory-items/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"origin_country": "US"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/inventory-items/{id}/location-levels' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/inventory-items/{id}/location-levels' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/inventory-items/{id}/location-levels' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/inventory-items/{id}/location-levels' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"location_id": "sloc_123",
|
||||
"stocked_quantity": 10
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/inventory-items/{id}/location-levels/{location_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/inventory-items/{id}/location-levels/{location_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/inventory-items/{id}/location-levels/{location_id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/inventory-items/{id}/location-levels/{location_id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"stocked_quantity": 15
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/invites' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/invites' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/invites' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/invites' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"user": "user@example.com",
|
||||
"role": "admin"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/invites/accept' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/invites/accept' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"token": "{token}",
|
||||
"user": {
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/invites/{invite_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/invites/{invite_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/invites/{invite_id}/resend' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/invites/{invite_id}/resend' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/notes' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/notes' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/notes' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/notes' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"resource_id": "{resource_id}",
|
||||
"resource_type": "order",
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/notes/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/notes/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/notes/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/notes/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/notes/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/notes/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"value": "We delivered this order"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/notifications' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/notifications' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/notifications/{id}/resend' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/notifications/{id}/resend' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/order-edits' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/order-edits' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/order-edits' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{ "order_id": "my_order_id", "internal_note": "my_optional_note" }'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/order-edits/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/order-edits/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/order-edits/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/order-edits/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/order-edits/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"internal_note": "internal reason XY"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/cancel' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/order-edits/{id}/cancel' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/order-edits/{id}/changes/{change_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/order-edits/{id}/changes/{change_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/confirm' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/order-edits/{id}/confirm' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/items' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/order-edits/{id}/items' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{ "variant_id": "variant_01G1G5V2MRX2V3PVSR2WXYPFB6", "quantity": 3 }'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request DELETE 'https://medusa-url.com/admin/order-edits/{id}/items/{item_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X DELETE 'https://medusa-url.com/admin/order-edits/{id}/items/{item_id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/items/{item_id}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/order-edits/{id}/items/{item_id}' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{ "quantity": 5 }'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/request' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/order-edits/{id}/request' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/orders' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/orders' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/orders/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl 'https://medusa-url.com/admin/orders/{id}' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/orders/adasda' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
curl -X POST 'https://medusa-url.com/admin/orders/adasda' \
|
||||
-H 'Authorization: Bearer {api_token}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "user@example.com"
|
||||
}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/orders/{id}/archive' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/orders/{id}/archive' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/orders/{id}/cancel' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/orders/{id}/cancel' \
|
||||
-H 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/orders/{id}/capture' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
curl -X POST 'https://medusa-url.com/admin/orders/{id}/capture' \
|
||||
-H 'Authorization: Bearer {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