POST api/KshetramAPI/GetAuthToken
Request Information
URI Parameters
None.
Body Parameters
SIB| Name | Description | Type | Additional information |
|---|---|---|---|
| client_id | string |
None. |
|
| client_secret | string |
None. |
|
| grant_type | string |
None. |
|
| scope | string |
None. |
|
| username | string |
None. |
|
| password | string |
None. |
|
| merchant_code | string |
None. |
|
| merchant_name | string |
None. |
|
| client_org_Id | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"client_id": "sample string 1",
"client_secret": "sample string 2",
"grant_type": "sample string 3",
"scope": "sample string 4",
"username": "sample string 5",
"password": "sample string 6",
"merchant_code": "sample string 7",
"merchant_name": "sample string 8",
"client_org_Id": "sample string 9"
}
application/xml, text/xml
Sample:
<SIB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CubixKshetramAPI.Models"> <client_id>sample string 1</client_id> <client_org_Id>sample string 9</client_org_Id> <client_secret>sample string 2</client_secret> <grant_type>sample string 3</grant_type> <merchant_code>sample string 7</merchant_code> <merchant_name>sample string 8</merchant_name> <password>sample string 6</password> <scope>sample string 4</scope> <username>sample string 5</username> </SIB>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |