.png)
Create Access Token
ENDPOINTS
post
/v1/oauth/token
Header parameters
Collapse
Authorization
string
required
Standard HTTP Basic Authentication based on the `consumer key` and `consumer secret` provided during the application registration process.A string composed of `Basic`+ `(space)` + `base64encode(consumer_key + ":" + consumer_secret)`; example `Basic ODU4S0pRczVXwGdMRkhUUUhtSGhNdTRYHlpRa3N1ZGY6STA0UThtMFJZZEF1dUlwYg`
originating_ip
string
no
The IP address of the device making the request for authentication.If not provided the IP address logged will be the IP address extracted from the HTTP requestNote: this should be the originating device, rather than the client making the request e.g. if a mobile device is used the ip address should be that of the mobile device, rather than a back end service
user-agent
string
required
Identifies the application and the platform making the request.The expected format is `{Appname}/{Appversion}[/{DeviceID}][;{Platform User-Agent}]` e.g. iPhone/1.0/abc12345;Nokia3110
di_tid
string
required
Unique id used to identify the request. The id allows the request to be traced through the entire request and response flow. The expected id is a UUID, in the canonical form e.g 123e4567-e89b-12d3-a456-426655440000
offering_id
string
no
Uniquely identifies the name of the client app making the request.When not provided this is derived based on a property held against the application within Apigee
Body parameters
Collapse
{"grant_type":"password","username":"string","password":"string"}
Responses
Collapse
200
Token successfully created
Response Body
{"expires_in":"string","di_fiid":"string","di_ficustomer":"string","access_token":"string","refresh_token":"string","refresh_token_expires_in":"string"}
400
Bad Request. Returned when the submitted request does not match the requirements defined in the specification
Response Body
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
401
Unauthorized. Returned when the authentication request is unsuccessful
Response Body
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
500
Internal Server Error. Returned when an unexpected fault occurs whilst processing the request
Response Body
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
curl --request POST \
--url https://api.candescent.com/digitalbanking/v1/oauth/token \
--header 'Authorization: SOME_STRING_VALUE' \
--header 'accept: application/xml' \
--header 'content-type: application/x-www-form-urlencoded' \
--header 'di_fiid: SOME_STRING_VALUE' \
--header 'di_tid: SOME_STRING_VALUE' \
--header 'offering_id: SOME_STRING_VALUE' \
--header 'originating_ip: SOME_STRING_VALUE' \
--header 'user-agent: SOME_STRING_VALUE' \
--data '{"grant_type":"password","username":"String","password":"String"}'
RESPONSE
{"expires_in":"string","di_fiid":"string","di_ficustomer":"string","access_token":"string","refresh_token":"string","refresh_token_expires_in":"string"}
{"expires_in":"string","di_fiid":"string","di_ficustomer":"string","access_token":"string","refresh_token":"string","refresh_token_expires_in":"string"}
{"expires_in":"string","di_fiid":"string","di_ficustomer":"string","access_token":"string","refresh_token":"string","refresh_token_expires_in":"string"}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}
{"statusMessage":"string","errorInfo":{"errorType":"USER_ERROR","errorCode":"string","errorMessage":"string"}}