Create the BigCommerce access token for shipping insurance
On BigCommerce, shipping insurance needs an access token from your store with one permission: Carts set to modify. ASM uses it only to add the insurance item to the shopper's cart, update its price when the cart changes, and remove it when the shopper turns insurance off. It needs no other permission.
Before you begin
Before you start
- Sign in to your BigCommerce control panel as the store owner. Only the store owner can create API accounts.
Steps
- In your BigCommerce control panel, go to Settings → Store-level API accounts.
- Select Create API account. The Create account page opens.
- Leave Token type on V2/V3 API token.
- Enter a Name you'll recognize later, for example
ASM shipping insurance. - Under OAuth scopes, scroll down to Carts and select modify. Leave every other scope as it is: None, and Metafields Access on Standard.
- Select Save at the bottom of the page.
- BigCommerce shows the new credentials and downloads them as a text file. Copy the Access token. You don't need the Client ID or the Client secret.
- In ASM, go to Settings → Insurance, paste the token into Access token with "Carts modify" permission, and select Save Settings. After saving, the field shows stars instead of the token.
BigCommerce shows the access token only once. Keep the downloaded file somewhere safe. The token lets anyone who has it change carts in your store, so treat it like a password.
Check that it works
Add a product to your storefront cart and turn the insurance option on. The page reloads and the cart total goes up by the insurance price. Turn it off and the price comes off again.
If turning insurance on does nothing:
- The wrong value was pasted. A common mix-up is the Client ID instead of the Access token. Paste the access token from the downloaded file again.
- Carts is set to read-only or None. BigCommerce doesn't let you change an API account's scopes after it's created. Create a new API account with Carts set to modify, paste its access token into ASM, then delete the old API account.
- The API account was deleted. Deleting it in BigCommerce stops the token working right away. Create a new API account and paste its access token into ASM.