Quick Start
This quick start guide will take you through making your first requests with BigCommerce’s APIs.
REST Management API
Create an API account
See the Guide to API Accounts for instructions on creating API accounts.
Use Request Runner
You can experiment with our REST Management APIs using the Request Runner, which is built in to the API Reference for most endpoints.
Copy and paste your store_hash and access_token into the form, then click Send.
Visual Studio Code REST Client
Postman
If you use Visual Studio Code, another way to make API requests is with the REST Client extension. Once you have it installed, create a new file called bigcommerce.http and paste in the following:
Save and you’ll see the send request link above GET. Click send request and the response will open in a split window.
REST Storefront API quick start
To make your first requests in a browser with the REST Storefront APIs, see the step-by-step tutorial Working with Storefront Cart and Checkout APIs.
GraphQL Storefront API
Create a storefront token
This example uses Request Runner to make an initial request that creates a Storefront API token. It is a REST API request, so you will need to copy and paste your API credentials.
In the allowed_cors_origins array, include the URL(s) of the storefront from which you plan to use the token.
Create a sample request in the browser
While viewing your storefront in a browser, open the developer tools JavaScript console; for example, Google Chrome’s Console. Add your API token to the authorization header in the following code sample and add a valid Product ID for the entityId, then run the code in the console:
Customer Login API
For more information, see the Customer Login API Overview.