Comment on page
API
Supercart provides a native REST API along with SDKS for developers that wish to integrate their website or store to the platform.
The Supercart API uses API keys to authenticate requests. You can view and manage your API keys in the checkout configuration under Webservices
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in exposed areas such as GitHub, client-side code.
Authentication to the API is performed via HTTP Basic Auth. Provide your API key as the Authorization value prefixed with Bearer.
//Add basic auth header to request
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer: ' + key
}
Last modified 7mo ago