This quick start guide will take you through making your first requests with BigCommerce’s APIs.
See the Guide to API Accounts for instructions on creating API accounts.
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.
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.
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.
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.
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:
For more information, see the Customer Login API Overview.