Skip to content

Commit dda4503

Browse files
committed
DEVDOCS-6658 Fix various issues in b2b-edition and start docs
1 parent 1ef1cb1 commit dda4503

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/b2b-edition/authentication/hosted-auth.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ User-specific tokens can be generated by the **deprecated** [Get a Server to Ser
5858

5959
Server to server tokens can be configured to expire using this endpoint to set a fixed validity period using the `endAt` field in the request. For more information, see [Server-to-Server Authentication](/b2b-edition/apis/rest-management/authentication).
6060

61-
<Callout type= "warning">
61+
<Callout type="warning">
6262
This endpoint generates an `authToken`, which is deprecated. In addition, it does not support users with custom system user roles, even if those roles have API account creation permissions.
6363
</Callout>
6464

docs/b2b-edition/docs/buyer-portal/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Whether you use BigCommerce’s Stencil theme engine, the Catalyst storefront ex
1313

1414

1515
## Supported storefront models
16-
- **Stencil:** Embed and control the Buyer Portal via header/footer scripts and theme hooks. See the [Stencil guide](/b2b-edition/docs/buyer-portal/stencil).
17-
- **Headless (self-hosted):** Run and deploy the open-source Buyer Portal next to your headless storefront. See the [Headless guide](/b2b-edition/docs/buyer-portal//headless).
16+
- **Stencil:** Embed and control the Buyer Portal via header/footer scripts and theme hooks. See the [Stencil guide](/docs/b2b-edition/docs/buyer-portal/stencil).
17+
- **Headless (self-hosted):** Run and deploy the open-source Buyer Portal next to your headless storefront. See the [Headless guide](/docs/b2b-edition/docs/buyer-portal/headless).
1818
- **Catalyst:** Render the Buyer Portal on top of Catalyst and wire authentication. See the [Catalyst guide](/docs/storefront/catalyst/experiments/b2b).
1919

2020
## Prerequisites

docs/start/authentication/customer-login.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ const jwt = require('jsonwebtoken');
161161
const {v4: uuidv4} = require('uuid');
162162

163163
function getLoginUrl(customerId, storeHash, storeUrl, clientId, clientSecret) {
164-
const dateCreated = Math. round((new Date()). getTime() / 1000);
165-
const payload = {
164+
const dateCreated = Math.round((new Date()).getTime() / 1000);
165+
const payload = {
166166
"iss": clientId,
167167
"iat": dateCreated,
168168
"jti": uuidv4(),

docs/start/best-practices/integration-design.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To maintain service quality at scale, BigCommerce observes API traffic. We reser
1212

1313
**Make as few calls as possible; request only information that your app requires to function.**
1414

15-
When interacting with a resource on a store, consider how many calls it takes to accomplish the goal. When you fetch information, investigate whether you can use a bulk endpoint instead of retrieving resources one by one. If possible, use the bulk endpoint and filter the data to retrieve only what you need. For example, the [REST Catalog API](/docs/rest-catalog/products) contains both [Get a product](/docs/rest-catalog/products#get-a-product) and [Get all products](/docs/rest-content/pages#get-pages). If your app or storefront requests one or more products, you can use [Get all products](/docs/rest-content/pages#get-pages) and filter which products you'd like to retrieve using the `id:in` query parameter.
15+
When interacting with a resource on a store, consider how many calls it takes to accomplish the goal. When you fetch information, investigate whether you can use a bulk endpoint instead of retrieving resources one by one. If possible, use the bulk endpoint and filter the data to retrieve only what you need. For example, the [REST Catalog API](/docs/rest-catalog/products) contains both [Get a product](/docs/rest-catalog/products#get-a-product) and [Get all products](/docs/rest-catalog/products#get-all-products). If your app or storefront requests one or more products, you can use [Get all products](/docs/rest-catalog/products#get-all-products) and filter which products you'd like to retrieve using the `id:in` query parameter.
1616

1717
The same principle applies to bulk endpoints. The base number of resources returned from a bulk request is 50. If you need to retrieve 5,000 products, the default response pagination limit requires you to make 100 API calls to the bulk endpoint. Instead, you can use query parameters to set the response limit to 250 and request the same information in 20 calls.
1818

@@ -79,7 +79,7 @@ To handle 503 statuses and cases when multiple URIs return 500 statuses, conside
7979
* [Retry headers](/docs/start/about#bigcommerce-specific-response-headers)
8080
* [REST Catalog API](/docs/rest-catalog/products)
8181
* [Get a product](/docs/rest-catalog/products#get-a-product)
82-
* [Get all products](/docs/rest-content/pages#get-pages)
82+
* [Get all products](/docs/rest-catalog/products#get-all-products)
8383
* [Webhooks](/docs/webhooks)
8484

8585
### External resources

docs/start/migration/orders/migration-phase.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ keywords: order migration, migration phase, testing, delta migration, BigCommerc
55
---
66
# Migration Phase
77

8-
Just as with products, your order migration should include at minimum: testing, initial migration, delta migration. The initial testing process and delta migration will look very similar to those steps in the products migration process, so you can refer back to them as needed. (Load Complete Data)[/docs/start/migration/products/complete-migration] and (Go Live and Delta Migration)[/docs/start/migration/products/delta-migration].
8+
Just as with products, your order migration should include at minimum: testing, initial migration, delta migration. The initial testing process and delta migration will look very similar to those steps in the products migration process, so you can refer back to them as needed. [Load Complete Data](/docs/start/migration/products/complete-migration) and [Go Live and Delta Migration](/docs/start/migration/products/delta-migration).
99

1010
There are some callouts specific to the order migration process, which will be addressed here, but otherwise, use your best judgement when considering how to manage your own work.
1111

0 commit comments

Comments
 (0)