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:
@@ -0,0 +1,6 @@
|
||||
curl -X DELETE '{backend_url}/store/carts/{id}/gift-cards' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"code": "{value}"
|
||||
}'
|
||||
@@ -0,0 +1,6 @@
|
||||
curl -X POST '{backend_url}/store/carts/{id}/gift-cards' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"code": "{value}"
|
||||
}'
|
||||
@@ -0,0 +1,6 @@
|
||||
curl -X POST '{backend_url}/store/carts/{id}/store-credits' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"amount": 48
|
||||
}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl -X POST '{backend_url}/store/gift-card-invitations/{code}/accept' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl -X POST '{backend_url}/store/gift-card-invitations/{code}/reject' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl '{backend_url}/store/gift-cards' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl '{backend_url}/store/gift-cards/{id}' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
@@ -0,0 +1,6 @@
|
||||
curl -X POST '{backend_url}/store/gift-cards/{id}/invitation' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"email": "Morton61@hotmail.com"
|
||||
}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl -X POST '{backend_url}/store/gift-cards/{id}/redeem' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl '{backend_url}/store/store-credit-accounts' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
@@ -0,0 +1,2 @@
|
||||
curl '{backend_url}/store/store-credit-accounts/{id}' \
|
||||
-H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
Reference in New Issue
Block a user