docs: add loyalty plugin routes to OAS (#12811)

* generated OAS

* remove unused schemas

* generated specs

* add cloud badge for routes

* add to loyalty plugin page

* allow clicking the tooltip
This commit is contained in:
Shahed Nasser
2025-06-24 19:17:55 +03:00
committed by GitHub
parent 3826bde591
commit 93cf79cb0f
164 changed files with 16001 additions and 88 deletions

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/gift-cards' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,14 @@
curl -X POST '{backend_url}/admin/gift-cards' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"code": "{value}",
"value": 19,
"currency_code": "bwp",
"expires_at": "2025-07-20T15:47:23.951Z",
"reference_id": "{value}",
"reference": "{value}",
"line_item_id": "{value}",
"customer_id": "{value}",
"metadata": {}
}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/gift-cards/{id}' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/admin/gift-cards/{id}' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/gift-cards/{id}/redeem' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"customer_id": "{value}"
}'

View File

@@ -0,0 +1,6 @@
curl -X POST '{backend_url}/admin/gift-cards/{id}/transfer' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"customer_id": "{value}"
}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/store-credit-accounts' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,7 @@
curl -X POST '{backend_url}/admin/store-credit-accounts' \
-H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \
--data-raw '{
"currency_code": "nzd",
"customer_id": "{value}"
}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/store-credit-accounts/{id}' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/store-credit-accounts/{id}/transactions' \
-H 'Authorization: Bearer {access_token}'

View File

@@ -0,0 +1,2 @@
curl '{backend_url}/admin/transaction-groups' \
-H 'Authorization: Bearer {access_token}'