Skip to main content

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:

  1. api_key
  2. access_token
#ParamValueDescription
1x-api-keyapi_keyuser/partner api_key
2Bearer Tokenaccess_tokenBearer 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

  1. status
  2. data

ERROR RESPONSE

  1. status
  2. error_msg
  3. 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"

}