Using the API in Test Mode
The Reflow API can operate in live or test mode. While developing and testing your app, it is recommended to work in test mode to avoid the risk of accidentally initializing charges with actual money.
The mode of API requests is determined by the URL subdomain. This applies to all subscription, e-commerce an auth API calls.
# Live mode
https://api.reflowhq.com/...
# Test mode
https://test-api.reflowhq.com/...
When sending requests to the API, only objects of the respective mode will be accessible. For example, when fetching all products in test mode, no live-mode products will be returned.
GET
and POST
requests that target a specific object (usually by its ID) will return 404 Not found
if the item's mode does not match the selected API request mode.
For API routes that requite API key authentication, the same key can be used in both live and test mode.