Introduction - V1
Goodwill API helps traders/investors to build, monitor, and execute trading requirements automatically.
REST API BASE URL
https://api.gwcindia.in/v1/{{api_name}}
HEADER STRUCTURE
Each REST call will have 2 compulsory header parameters:
- api_key
- access_token
| # | Param | Value | Description |
|---|---|---|---|
| 1 | x-api-key | api_key | user/partner api_key |
| 2 | Bearer Token | access_token | Bearer token authorization header |
api_key is a key allocated to the Goodwill User. If you don't have one,sign up here
access_token is a token received as a response from Login 2FA. Input will be in string format.
SUCCESSFUL RESPONSE
- status
- data
ERROR RESPONSE
- status
- error_msg
- error_type
API Endpoint
https://api.gwcindia.in/v1/
curl / cURL
curl --location --request GET 'https://api.gwcindia.in/v1/{{api_name}}'
--header 'x-api-key: {{your_api_key}}'
--header 'Authorization: Bearer {{your_access_token}}'
Success Response Body
{
"status": "success",
"data": {}
}
Error Response Body
{
"status": "error",
"error_msg": "Error Message",
"error_type": "GeneralException"
}