Base URLs
The Withdrawals API is available in two environments:| Environment | Base URL (v1) | Purpose |
|---|---|---|
| Stage | https://stage.tonder.io/api/v1 | Development and testing |
| Production | https://prod.tonder.io/api/v1 | Live transactions |
Always use the correct base URL for your environment. Using production URLs in stage or vice-versa will result in authentication errors.
Authentication
Header Format
Include your API token in the Authorization header with the following format:Getting Your API TokenThis is a sample token. You need to use the one provided by Tonder in the Developers section of our platform. Log in to your Tonder dashboard and navigate to the Developers section to retrieve your API key.
Example Request (cURL)
Using Postman
When making requests in Postman:-
Set the Authorization Header:
- Go to the Headers tab
- Add a new header:
- Key:
Authorization - Value:
Token YOUR_API_KEY(replaceYOUR_API_KEYwith your actual token)
- Key:
-
Alternative: Use Postman Authorization Tab:
- Go to the Authorization tab
- Select Type:
No Auth(then manually add header) OR use a custom type - Add header:
Authorization: Token YOUR_API_KEY
-
Example Postman Setup:
Token FormatThe token must be prefixed with the word “Token” followed by a space, then your actual API key. The format is:
Token <your_api_key>Data Format Requirements
Timestamps
All timestamps must be in ISO 8601 format. Examples:2024-07-26T10:30:00Z2024-07-26T10:30:00+00:00
Currency Amounts
Currency amounts must be provided as decimal numbers. Examples:1000.00(correct)1000(correct)"1000.00"(incorrect - should not be a string)
JSON Content Type
All requests with a body must include theContent-Type: application/json header.
Next Steps
- Learn about environment configuration
- Review the create withdrawal guide to see authentication in action
- Check HTTP response codes to understand API responses

