chore(docs): Generated API Reference (#2572)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
884322447e
commit
325b1e9017
@@ -0,0 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/currencies' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
@@ -0,0 +1,6 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/currencies/{code}' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"includes_tax": true
|
||||
}'
|
||||
@@ -0,0 +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' \
|
||||
--data-raw '{
|
||||
"resources": [{ "id": "item_id" }]
|
||||
}'
|
||||
@@ -0,0 +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' \
|
||||
--data-raw '{
|
||||
"resources": [{ "id": "item_id" }]
|
||||
}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl --location --request GET 'https://medusa-url.com/admin/order-edits' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
@@ -1,3 +1,4 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
-d '{ "order_id": "my_order_id", "internal_note": "my_optional_note" }'
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{ "order_id": "my_order_id", "internal_note": "my_optional_note" }'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header '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' \
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/cancel' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/:id/confirm' \
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/confirm' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/items' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
-d '{ "variant_id": "some_variant_id", "quantity": 3 }'
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{ "variant_id": "variant_01G1G5V2MRX2V3PVSR2WXYPFB6", "quantity": 3 }'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/order-edits/{id}/items/{item_id}' \
|
||||
--header 'Authorization: Bearer {api_token}'
|
||||
-d '{ "quantity": 5 }'
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-raw '{ "quantity": 5 }'
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
curl --location --request POST 'https://medusa-url.com/admin/uploads/protected' \
|
||||
--header 'Authorization: Bearer {api_token}' \
|
||||
--header 'Content-Type: image/jpeg' \
|
||||
--form 'files=@"<FILE_PATH_1>"' \
|
||||
--form 'files=@"<FILE_PATH_1>"'
|
||||
Reference in New Issue
Block a user