chore(docs): Updated API Reference (v2) (#8619)

Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
This commit is contained in:
github-actions[bot]
2024-08-16 06:46:04 +00:00
committed by GitHub
parent 9bdcdc76a8
commit 0f67345308
122 changed files with 10621 additions and 6839 deletions

View File

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

View File

@@ -0,0 +1,7 @@
curl -X POST '{backend_url}/admin/order-edits' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"order_id": "{value}",
"metadata": {}
}'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/order-edits/{id}/shipping-method' \
-H 'x-medusa-access-token: {api_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"shipping_option_id": "{value}"
}'

View File

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

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/order-edits/{id}/shipping-method/{action_id}' \
-H 'x-medusa-access-token: {api_token}'