Obtain your "API Key", which consists of a username and password. To obtain your API Key, login to the Dashboard and navigate to Integrations > Get API Credentials. The username and password are used for "Basic Authentication" when making requests to the API. A "User-Agent" header is also required by the API to be included in all requests.
Note about creating new transactions via the API
When preparing your database structure for storing values obtained from FastSpring via our JSON payloads you might assume the following datatypes:
- All "string" columns are VARCHAR 255, accordingly trimmed
- Encoding is UTF-8
- For numeric values (such as price or discount values) 2dp precision is expected ("2.00")
Available API Endpoints
In order to maintain a responsive user experience, FastSpring may impose request rate limits on API calls originating from individual accounts. In the event that the rate limit is met, the response to the API request will be an http 404 response code (though this may be improved soon).
If you need to make a large number of API requests in a very short time, such that you may encounter rate limits, consider using batch requests where possible. For example, when retrieving authenticated account management URLs, you can obtain URLs for multiple account IDs in a single request:
More information about this example can be found in our Knowledge Base article about the accounts endpoint.