docs: fix bugs in API reference (#10557)
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
* - lang: Shell
|
||||
* label: cURL
|
||||
* source: |-
|
||||
* curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* -H 'Authorization: Bearer {access_token}'
|
||||
* tags:
|
||||
* - Customers
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
* label: cURL
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/carts/{id}/line-items' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "variant_id": "{value}",
|
||||
* "quantity": 3360689747918848,
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
* label: cURL
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "quantity": 8980402259623936,
|
||||
* "metadata": {}
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
* label: cURL
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/carts/{id}/promotions' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "promo_codes": [
|
||||
* "{value}"
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
* label: cURL
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "option_id": "{value}"
|
||||
* }'
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/customers' \
|
||||
* -H 'Authorization: Bearer {token}' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "email": "Monserrate.Leannon88@yahoo.com",
|
||||
* "company_name": "{value}",
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/customers/me' \
|
||||
* -H 'Authorization: Bearer {access_token}' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "company_name": "{value}",
|
||||
* "first_name": "{value}",
|
||||
|
||||
@@ -92,8 +92,8 @@
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/customers/me/addresses' \
|
||||
* -H 'Authorization: Bearer {access_token}' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "metadata": {},
|
||||
* "first_name": "{value}",
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \
|
||||
* -H 'Authorization: Bearer {access_token}' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "first_name": "{value}",
|
||||
* }'
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
* label: cURL
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/payment-collections' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "cart_id": "{value}"
|
||||
* }'
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
* label: cURL
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "provider_id": "{value}"
|
||||
* }'
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* label: cURL
|
||||
* source: |-
|
||||
* curl -X POST '{backend_url}/store/return' \
|
||||
* -H 'Content-Type: application/json' \ \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}'
|
||||
* -H 'Content-Type: application/json' \
|
||||
* -H 'x-publishable-api-key: {your_publishable_api_key}' \
|
||||
* --data-raw '{
|
||||
* "order_id": "{value}",
|
||||
* "items": [
|
||||
|
||||
Reference in New Issue
Block a user