docs: update store cURL examples in OAS (#9099)

This commit is contained in:
Shahed Nasser
2024-09-16 15:37:11 +03:00
committed by GitHub
parent 8584031041
commit 35ffaf73d7
79 changed files with 183 additions and 89 deletions
@@ -1 +1 @@
curl -X POST '{backend_url}/auth/customer/{auth_provider}' curl -X POST '{backend_url}/auth/customer/github'
@@ -1 +1 @@
curl -X POST '{backend_url}/auth/customer/{auth_provider}/callback' curl -X POST '{backend_url}/auth/customer/github/callback?code=123'
@@ -1 +1,6 @@
curl -X POST '{backend_url}/auth/customer/{auth_provider}/register' curl -X POST '{backend_url}/auth/customer/emailpass/register' \
-H 'Content-Type: application/json' \
--data-raw '{
"email": "customer@gmail.com",
"password": "supersecret"
}'
@@ -0,0 +1,2 @@
curl -X POST '{backend_url}/auth/token/refresh' \
-H 'Authorization: Bearer {token}'
@@ -1 +1,2 @@
curl -X POST '{backend_url}/store/carts' curl -X POST '{backend_url}/store/carts' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/carts/{id}' curl '{backend_url}/store/carts/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl -X POST '{backend_url}/store/carts/{id}' curl -X POST '{backend_url}/store/carts/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl -X POST '{backend_url}/store/carts/{id}/complete' curl -X POST '{backend_url}/store/carts/{id}/complete' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,5 +1,6 @@
curl -X POST '{backend_url}/store/carts/{id}/line-items' \ curl -X POST '{backend_url}/store/carts/{id}/line-items' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"variant_id": "{value}", "variant_id": "{value}",
"quantity": 3360689747918848, "quantity": 3360689747918848,
@@ -1 +1,2 @@
curl -X DELETE '{backend_url}/store/carts/{id}/line-items/{line_id}' curl -X DELETE '{backend_url}/store/carts/{id}/line-items/{line_id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,5 +1,6 @@
curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \ curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"quantity": 8980402259623936, "quantity": 8980402259623936,
"metadata": {} "metadata": {}
@@ -1 +1,2 @@
curl -X DELETE '{backend_url}/store/carts/{id}/promotions' curl -X DELETE '{backend_url}/store/carts/{id}/promotions' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,5 +1,6 @@
curl -X POST '{backend_url}/store/carts/{id}/promotions' \ curl -X POST '{backend_url}/store/carts/{id}/promotions' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"promo_codes": [ "promo_codes": [
"{value}" "{value}"
@@ -1,5 +1,6 @@
curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \ curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"option_id": "{value}" "option_id": "{value}"
}' }'
@@ -1 +1,2 @@
curl -X POST '{backend_url}/store/carts/{id}/taxes' curl -X POST '{backend_url}/store/carts/{id}/taxes' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/collections' curl '{backend_url}/store/collections' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/collections/{id}' curl '{backend_url}/store/collections/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/currencies' curl '{backend_url}/store/currencies' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/currencies/{code}' curl '{backend_url}/store/currencies/{code}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,5 +1,7 @@
curl -X POST '{backend_url}/store/customers' \ curl -X POST '{backend_url}/store/customers' \
-H 'Content-Type: application/json' \ -H 'Authorization: Bearer {token}' \
-H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"email": "Monserrate.Leannon88@yahoo.com", "email": "Monserrate.Leannon88@yahoo.com",
"company_name": "{value}", "company_name": "{value}",
@@ -1,2 +1,3 @@
curl '{backend_url}/store/customers/me' \ curl '{backend_url}/store/customers/me' \
-H 'Authorization: Bearer {access_token}' -H 'Authorization: Bearer {access_token}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,6 +1,7 @@
curl -X POST '{backend_url}/store/customers/me' \ curl -X POST '{backend_url}/store/customers/me' \
-H 'Authorization: Bearer {access_token}' \ -H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"company_name": "{value}", "company_name": "{value}",
"first_name": "{value}", "first_name": "{value}",
@@ -1,2 +1,3 @@
curl '{backend_url}/store/customers/me/addresses' \ curl '{backend_url}/store/customers/me/addresses' \
-H 'Authorization: Bearer {access_token}' -H 'Authorization: Bearer {access_token}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,6 +1,7 @@
curl -X POST '{backend_url}/store/customers/me/addresses' \ curl -X POST '{backend_url}/store/customers/me/addresses' \
-H 'Authorization: Bearer {access_token}' \ -H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"metadata": {}, "metadata": {},
"first_name": "{value}", "first_name": "{value}",
@@ -1,2 +1,3 @@
curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ 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}' -H 'Authorization: Bearer {access_token}'
@@ -1,2 +1,3 @@
curl '{backend_url}/store/customers/me/addresses/{address_id}' \ curl '{backend_url}/store/customers/me/addresses/{address_id}' \
-H 'Authorization: Bearer {access_token}' -H 'Authorization: Bearer {access_token}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,17 +1,7 @@
curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \
-H 'Authorization: Bearer {access_token}' \ -H 'Authorization: Bearer {access_token}' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"metadata": {},
"first_name": "{value}", "first_name": "{value}",
"last_name": "{value}",
"phone": "{value}",
"company": "{value}",
"address_1": "{value}",
"address_2": "{value}",
"city": "{value}",
"country_code": "{value}",
"province": "{value}",
"postal_code": "{value}",
"address_name": "{value}"
}' }'
@@ -1 +1,2 @@
curl '{backend_url}/store/orders' curl '{backend_url}/store/orders' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/orders/{id}' curl '{backend_url}/store/orders/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,5 +1,6 @@
curl -X POST '{backend_url}/store/payment-collections' \ curl -X POST '{backend_url}/store/payment-collections' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"cart_id": "{value}", "cart_id": "{value}",
"region_id": "{value}", "region_id": "{value}",
@@ -1,5 +1,6 @@
curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \ curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"provider_id": "{value}" "provider_id": "{value}"
}' }'
@@ -1 +1,2 @@
curl '{backend_url}/store/payment-providers' curl '{backend_url}/store/payment-providers' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/product-categories' curl '{backend_url}/store/product-categories' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/product-categories/{id}' curl '{backend_url}/store/product-categories/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/products' curl '{backend_url}/store/products' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/products/{id}' curl '{backend_url}/store/products/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/regions' curl '{backend_url}/store/regions' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/return-reasons' curl '{backend_url}/store/return-reasons' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1 +1,2 @@
curl '{backend_url}/store/return-reasons/{id}' curl '{backend_url}/store/return-reasons/{id}' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -1,5 +1,6 @@
curl -X POST '{backend_url}/store/return' \ curl -X POST '{backend_url}/store/return' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \ \
-H 'x-publishable-api-key: {your_publishable_api_key}'
--data-raw '{ --data-raw '{
"order_id": "{value}", "order_id": "{value}",
"items": [ "items": [
@@ -1 +1,2 @@
curl '{backend_url}/store/shipping-options' curl '{backend_url}/store/shipping-options' \
-H 'x-publishable-api-key: {your_publishable_api_key}'
@@ -42,7 +42,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl -X DELETE '{backend_url}/store/carts/{id}/line-items/{line_id}' * source: |-
* curl -X DELETE '{backend_url}/store/carts/{id}/line-items/{line_id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Carts * - Carts
* responses: * responses:
@@ -32,7 +32,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl -X DELETE '{backend_url}/store/carts/{id}/promotions' * source: |-
* curl -X DELETE '{backend_url}/store/carts/{id}/promotions' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Carts * - Carts
* responses: * responses:
@@ -40,7 +40,8 @@
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: |- * source: |-
* curl -X DELETE '{backend_url}/store/customers/me/addresses/{address_id}' \ * 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}' * -H 'Authorization: Bearer {access_token}'
* tags: * tags:
* - Customers * - Customers
@@ -32,7 +32,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/carts/{id}' * source: |-
* curl '{backend_url}/store/carts/{id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Carts * - Carts
* responses: * responses:
@@ -802,7 +802,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/collections' * source: |-
* curl '{backend_url}/store/collections' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Collections * - Collections
* responses: * responses:
@@ -35,7 +35,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/collections/{id}' * source: |-
* curl '{backend_url}/store/collections/{id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Collections * - Collections
* responses: * responses:
@@ -92,7 +92,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/currencies' * source: |-
* curl '{backend_url}/store/currencies' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Currencies * - Currencies
* responses: * responses:
@@ -32,7 +32,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/currencies/{code}' * source: |-
* curl '{backend_url}/store/currencies/{code}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Currencies * - Currencies
* responses: * responses:
@@ -35,7 +35,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl '{backend_url}/store/customers/me' \ * curl '{backend_url}/store/customers/me' \
* -H 'Authorization: Bearer {access_token}' * -H 'Authorization: Bearer {access_token}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Customers * - Customers
* responses: * responses:
@@ -91,7 +91,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl '{backend_url}/store/customers/me/addresses' \ * curl '{backend_url}/store/customers/me/addresses' \
* -H 'Authorization: Bearer {access_token}' * -H 'Authorization: Bearer {access_token}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Customers * - Customers
* responses: * responses:
@@ -38,7 +38,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl '{backend_url}/store/customers/me/addresses/{address_id}' \ * curl '{backend_url}/store/customers/me/addresses/{address_id}' \
* -H 'Authorization: Bearer {access_token}' * -H 'Authorization: Bearer {access_token}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Customers * - Customers
* responses: * responses:
@@ -118,7 +118,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/orders' * source: |-
* curl '{backend_url}/store/orders' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Orders * - Orders
* responses: * responses:
@@ -32,7 +32,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/orders/{id}' * source: |-
* curl '{backend_url}/store/orders/{id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Orders * - Orders
* responses: * responses:
@@ -61,7 +61,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/payment-providers' * source: |-
* curl '{backend_url}/store/payment-providers' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Payment Providers * - Payment Providers
* responses: * responses:
@@ -858,7 +858,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/product-categories' * source: |-
* curl '{backend_url}/store/product-categories' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Product Categories * - Product Categories
* responses: * responses:
@@ -51,7 +51,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/product-categories/{id}' * source: |-
* curl '{backend_url}/store/product-categories/{id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Product Categories * - Product Categories
* responses: * responses:
@@ -932,7 +932,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/products' * source: |-
* curl '{backend_url}/store/products' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Products * - Products
* responses: * responses:
@@ -70,7 +70,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/products/{id}' * source: |-
* curl '{backend_url}/store/products/{id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Products * - Products
* responses: * responses:
@@ -123,7 +123,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/regions' * source: |-
* curl '{backend_url}/store/regions' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Regions * - Regions
* responses: * responses:
@@ -32,7 +32,8 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/regions/{id}' * source: |-
* curl '{backend_url}/store/regions/{id}'
* tags: * tags:
* - Regions * - Regions
* responses: * responses:
@@ -50,7 +50,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/return-reasons' * source: |-
* curl '{backend_url}/store/return-reasons' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Return Reasons * - Return Reasons
* responses: * responses:
@@ -32,7 +32,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/return-reasons/{id}' * source: |-
* curl '{backend_url}/store/return-reasons/{id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Return Reasons * - Return Reasons
* responses: * responses:
@@ -77,7 +77,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl '{backend_url}/store/shipping-options' * source: |-
* curl '{backend_url}/store/shipping-options' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Shipping Options * - Shipping Options
* responses: * responses:
@@ -39,7 +39,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl -X POST '{backend_url}/store/carts' * source: |-
* curl -X POST '{backend_url}/store/carts' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Carts * - Carts
* responses: * responses:
@@ -45,7 +45,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl -X POST '{backend_url}/store/carts/{id}' * source: |-
* curl -X POST '{backend_url}/store/carts/{id}' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Carts * - Carts
* responses: * responses:
@@ -35,7 +35,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl -X POST '{backend_url}/store/carts/{id}/complete' * source: |-
* curl -X POST '{backend_url}/store/carts/{id}/complete' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Carts * - Carts
* responses: * responses:
@@ -43,7 +43,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl -X POST '{backend_url}/store/carts/{id}/line-items' \ * curl -X POST '{backend_url}/store/carts/{id}/line-items' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "variant_id": "{value}", * "variant_id": "{value}",
* "quantity": 3360689747918848, * "quantity": 3360689747918848,
@@ -49,7 +49,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \ * curl -X POST '{backend_url}/store/carts/{id}/line-items/{line_id}' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "quantity": 8980402259623936, * "quantity": 8980402259623936,
* "metadata": {} * "metadata": {}
@@ -51,7 +51,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl -X POST '{backend_url}/store/carts/{id}/promotions' \ * curl -X POST '{backend_url}/store/carts/{id}/promotions' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "promo_codes": [ * "promo_codes": [
* "{value}" * "{value}"
@@ -57,7 +57,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \ * curl -X POST '{backend_url}/store/carts/{id}/shipping-methods' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "option_id": "{value}" * "option_id": "{value}"
* }' * }'
@@ -38,7 +38,9 @@
* x-codeSamples: * x-codeSamples:
* - lang: Shell * - lang: Shell
* label: cURL * label: cURL
* source: curl -X POST '{backend_url}/store/carts/{id}/taxes' * source: |-
* curl -X POST '{backend_url}/store/carts/{id}/taxes' \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* tags: * tags:
* - Carts * - Carts
* responses: * responses:
@@ -37,7 +37,8 @@
* source: |- * source: |-
* curl -X POST '{backend_url}/store/customers' \ * curl -X POST '{backend_url}/store/customers' \
* -H 'Authorization: Bearer {token}' \ * -H 'Authorization: Bearer {token}' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "email": "Monserrate.Leannon88@yahoo.com", * "email": "Monserrate.Leannon88@yahoo.com",
* "company_name": "{value}", * "company_name": "{value}",
@@ -40,7 +40,8 @@
* source: |- * source: |-
* curl -X POST '{backend_url}/store/customers/me' \ * curl -X POST '{backend_url}/store/customers/me' \
* -H 'Authorization: Bearer {access_token}' \ * -H 'Authorization: Bearer {access_token}' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "company_name": "{value}", * "company_name": "{value}",
* "first_name": "{value}", * "first_name": "{value}",
@@ -98,7 +98,8 @@
* source: |- * source: |-
* curl -X POST '{backend_url}/store/customers/me/addresses' \ * curl -X POST '{backend_url}/store/customers/me/addresses' \
* -H 'Authorization: Bearer {access_token}' \ * -H 'Authorization: Bearer {access_token}' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "metadata": {}, * "metadata": {},
* "first_name": "{value}", * "first_name": "{value}",
@@ -104,7 +104,8 @@
* source: |- * source: |-
* curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \ * curl -X POST '{backend_url}/store/customers/me/addresses/{address_id}' \
* -H 'Authorization: Bearer {access_token}' \ * -H 'Authorization: Bearer {access_token}' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "first_name": "{value}", * "first_name": "{value}",
* }' * }'
@@ -36,7 +36,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl -X POST '{backend_url}/store/payment-collections' \ * curl -X POST '{backend_url}/store/payment-collections' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "cart_id": "{value}", * "cart_id": "{value}",
* "region_id": "{value}", * "region_id": "{value}",
@@ -61,7 +61,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \ * curl -X POST '{backend_url}/store/payment-collections/{id}/payment-sessions' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "provider_id": "{value}" * "provider_id": "{value}"
* }' * }'
@@ -14,7 +14,8 @@
* label: cURL * label: cURL
* source: |- * source: |-
* curl -X POST '{backend_url}/store/return' \ * curl -X POST '{backend_url}/store/return' \
* -H 'Content-Type: application/json' \ * -H 'Content-Type: application/json' \ \
* -H 'x-publishable-api-key: {your_publishable_api_key}'
* --data-raw '{ * --data-raw '{
* "order_id": "{value}", * "order_id": "{value}",
* "items": [ * "items": [