docs: added how-to guide for "Mange Sales Channels" (#2344)

* fix id in example

* docs: added admin sales channel how-to guide

* docs: small fixes

* docs: added sidebar link

* revert change in api reference

* added link in conceptual guide
This commit is contained in:
Shahed Nasser authored and GitHub committed 2022-10-05 10:45:51 +03:00
1 parent bd94130916
commit d27d995c51
6 files changed
+542 -14

No files matched your search

@@ -135,7 +135,7 @@ fetch(`<SERVER_URL>/admin/price-lists`, {
```bash
curl --location --request POST '<YOUR_SERVER_URL>/admin/price-lists' \
--header 'Authorization: Bearer {api_token}' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "New Price List",
@@ -198,7 +198,7 @@ fetch(`<SERVER_URL>/admin/price-lists/${priceListId}`)
```jsx
curl --location --request GET '<SERVER_URL>/admin/price-lists/{id}' \
--header 'Authorization: Bearer {api_token}'
--header 'Authorization: Bearer <API_TOKEN>'
```
</TabItem>
@@ -248,7 +248,7 @@ fetch(`<SERVER_URL>/admin/price-lists/${priceListId}`, {
```bash
curl --location --request POST '<SERVER_URL>/admin/price-lists/<PRICE_LIST_ID>' \
--header 'Authorization: Bearer {api_token}' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"ends_at": "2022-10-11"
@@ -322,7 +322,7 @@ fetch(`<SERVER_URL>/admin/price-lists/${priceListId}/prices/batch`, {
```bash
curl --location --request POST '<SERVER_URL>/admin/price-lists/<PRICE_LIST_ID>' \
--header 'Authorization: Bearer {api_token}' \
--header 'Authorization: Bearer <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"prices": [
@@ -374,7 +374,7 @@ fetch(`<SERVER_URL>/admin/price-lists/${priceListId}/products/${productId}/price
```bash
curl --location --request DELETE '<SERVER_URL>/admin/price-lists/<PRICE_LIST_ID>/products/<PRODUCT_ID>/prices' \
--header 'Authorization: Bearer {api_token}'
--header 'Authorization: Bearer <API_TOKEN>'
```
</TabItem>
@@ -414,7 +414,7 @@ fetch(`<SERVER_URL>/admin/price-lists/${priceListId}/variants/${variantId}/price
```jsx
curl --location --request DELETE '<SERVER_URL>/admin/price-lists/<PRICE_LIST_ID>/variants/<VARIANT_ID>/prices' \
--header 'Authorization: Bearer {api_token}'
--header 'Authorization: Bearer <API_TOKEN>'
```
</TabItem>
@@ -456,7 +456,7 @@ fetch(`<SERVER_URL>/admin/price-lists/${priceListId}`, {
```jsx
curl --location --request DELETE '<SERVER_URL>/admin/price-lists/<PRICE_LIST_ID>' \
--header 'Authorization: Bearer {api_token}'
--header 'Authorization: Bearer <API_TOKEN>'
```
</TabItem>