POST api/Legacy/GetToken
Get authentication token for document and Signer
Request Information
URI Parameters
None.
Body Parameters
TokenRequestName | Description | Type | Additional information |
---|---|---|---|
docId | string |
None. |
|
kt | string |
None. |
|
phone | string |
None. |
|
returnUrl | string |
None. |
|
cert | string |
None. |
|
username | string |
None. |
|
password | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "docId": "sample string 1", "kt": "sample string 2", "phone": "sample string 3", "returnUrl": "sample string 4", "cert": "sample string 5", "username": "sample string 6", "password": "sample string 7" }
application/xml, text/xml
Sample:
<TokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Advania.Model.Signet2.Legacy"> <password xmlns="http://schemas.datacontract.org/2004/07/Advania.Model.Signet2">sample string 7</password> <username xmlns="http://schemas.datacontract.org/2004/07/Advania.Model.Signet2">sample string 6</username> <cert>sample string 5</cert> <docId>sample string 1</docId> <kt>sample string 2</kt> <phone>sample string 3</phone> <returnUrl>sample string 4</returnUrl> </TokenRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GetTokenResponseName | Description | Type | Additional information |
---|---|---|---|
GetTokenResult | string |
None. |
|
outStatus | ResultStatus |
None. |
Response Formats
application/json, text/json
Sample:
{ "GetTokenResult": "sample string 1", "outStatus": { "StatusCode": "00", "Message": "sample string 2", "Result": 0 } }
application/xml, text/xml
Sample:
<GetTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Advania.Model.Signet2.Legacy"> <outStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/Advania.Model.Common" xmlns="http://schemas.datacontract.org/2004/07/Advania.Model.Signet2"> <d2p1:Message>sample string 2</d2p1:Message> <d2p1:Result>Success</d2p1:Result> <d2p1:StatusCode>00</d2p1:StatusCode> </outStatus> <GetTokenResult>sample string 1</GetTokenResult> </GetTokenResponse>