-
Notifications
You must be signed in to change notification settings - Fork 55
DEVDOCS-6508 - Write guide for the Company account registration workflow in B2B Edition's GrapQL APIs #1187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…low in B2B Edition's GrapQL APIs Created a new guide for Company Account Registration in the GraphQL Storefront API, detailing workflows for guest and existing customers, related queries, and considerations for new Company accounts.
|
|
||
| Guest users do not have an existing customer account with login credentials. As a result, the requests involved in the [guest registration workflow](#registration-for-guest-users) can be performed anonymously without a token in the Authorization header. | ||
|
|
||
| The [registration workflow for existing customers](#registration-for-existing-storefront-customers) passes a storefront authToken to the Authorization header. This is a Bearer token generated via the `login` mutation following customer login. While it is included in the header of all B2B Edition GraphQL queries and mutations in the flow, it is only required for the `customer` query, which is a proxy request to the [BigCommerce GraphQL Storefront API](https://developer.bigcommerce.com/docs/storefront/graphql). This request uses the following endpoint: `https://api-b2b.bigcommerce.com/api/v3/proxy/bc-storefront/graphql` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrasing "it is only required for the customer query" made it sound to me like you meant that's the only query in all of the B2B GraphQL API that requires it. (There are, of course, many queries and mutations in the B2B GraphQL that require an auth token.) I think this actually meant it's the only query in this flow that requires it, but some re-wording might avoid confusion.
Created a new guide for Company Account Registration in the GraphQL Storefront API, detailing workflows for guest and existing customers, related queries, and considerations for new Company accounts.
DEVDOCS-6508
What changed?
Release notes draft
Anything else?
ping