Authorize
Summary
Authorize is our implementation of the OAuth 2.0 framework. It enables secure authorization using standard methods that can easily be integrated in your app. If you're familiar with OAuth 2.0, everything should look familiar. If not, you may want to check out the OAuth 2.0 resources here.
Want to try this API out on our Playground?
Go play nowpost /clientCredentials/oauth2/token/sg/gcb | Client Credentials Grant: Retrieve Access Token |
get /authCode/oauth2/authorize | Authorization Code Grant: Retrieve Authorization Code |
post /authCode/oauth2/token/sg/gcb | Authorization Code Grant: Retrieve Access Token |
post /authCode/oauth2/refresh | Authorization Code Grant: Refresh Access Token |
post /authCode/oauth2/revoke | Authorization Code Grant: Revoke Access Token |
get /oauth2/mfa | Multi-Factor Authentication |
post /cardAuth/oauth2/authorize/{countrycode}/{businesscode} | Enroll and Generate Card Access Token |
post /cardAuth/oauth2/token/{countrycode}/{businesscode} | Activate Card Access Token |
post /cardAuth/oauth2/refresh | Refresh Card Access Token |
post /cardAuth/oauth2/revoke | Revoke Card Access Token |
post /v1/mfa/otp | Generate and Send OTP |
put /v1/mfa/otp | Validate OTP |
Client Credentials Grant: Retrieve Access Token
This API is used to retrieve the access token for your application credentials. You can use this for APIs which do not require customer credential verification and consent (e.g. Onboarding).
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
-
access_token
- The access token value received after exchanging the authorization token. This field should be passed as Authorization header in API request calls
- type : string
-
refresh_token
- You can use this token to refresh an expired access_token.
- type : string
-
scope
- Set of scopes allowed by customer and separated by space
- type : string
-
token_type
- Type of the access token issued. This is bearer token for authorization_code grant type
- type : string
-
expires_in
- Validity of access token in seconds
- type : number
error |
invalid_request |
invalid_grant |
unsupported_grant_type |
unauthorized_client |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
error |
invalid_client |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Authorization Code Grant: Retrieve Authorization Code
This API is used to validate the customer credentials in Citi login Page and redirect back the authorisation code post successful validation.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
field name | field type | mandatory | description |
redirect_uri | location | yes | This is the absolute uri provided in the request |
code | query | yes | The authorization code |
state | query | yes | The same value as sent by the client in the state parameter, if any |
If an error occurs during authorization, two situations can occur. The first is, that the client is not authenticated or recognized. For instance, a wrong redirect URI was sent in the request. In that case the authorization server must not redirect the resource owner to the redirect URI. Instead it should inform the resource owner of the error. The second situation is that client is authenticated correctly, but that something else failed. In that case the following error response is sent to the client, included in the redirect_uri
field name | field type | mandatory | description |
redirect_uri | location | yes | This is the absolute uri provided in the request |
state | query | yes | The same value as sent by the client in the state parameter, if any |
error | query | yes | |
error_description | query | no | |
error_uri | query | no |
Here is the list of errors:
error |
invalid_request |
unauthorized_client |
unsupported_response_type |
invalid_scope |
access_denied |
Authorization Code Grant: Retrieve Access Token
This API is used to validate the authorisation code and return back the access token.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
-
access_token
- The access token value received after exchanging the authorization token. This field should be passed as Authorization header in API request calls
- type : string
-
refresh_token
- You can use this token to refresh an expired access_token.
- type : string
-
scope
- Set of scopes allowed by customer and separated by space
- type : string
-
token_type
- Type of the access token issued. This is bearer token for authorization_code grant type
- type : string
-
expires_in
- Validity of access token in seconds
- type : number
error |
invalid_request |
invalid_grant |
unsupported_grant_type |
unauthorized_client |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
error |
invalid_client |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Authorization Code Grant: Refresh Access Token
This API is used to exchange for a new set of valid access and refresh tokens in case access token has expired and still have a valid refresh token.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
-
access_token
- This field should be passed as Authorization header in API request calls
- type : string
-
refresh_token
- The refresh token value
- type : string
-
scope
- The list of scopes separated by space
- type : string
-
token_type
- The token type
- type : string
-
expires_in
- The access token expiry time (in seconds)
- type : number
error |
invalid_request |
invalid_grant |
unsupported_grant_type |
unauthorized_client |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
error |
invalid_client |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Authorization Code Grant: Revoke Access Token
This API is used to revoke the access token. Along with the access token, the corresponding refresh token is also revoked and vice-versa.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
-
status
- The status of the token revocation request.
- type : string
error |
invalid_request |
invalid_grant |
unauthorized_client |
unsupported_grant_type |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
error |
invalid_client |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Multi-Factor Authentication
This API is the first step of multi-factor authentication flow using authorization code grant. When the application gets an error response "mfaRequired", it should make a call to this API to redirect the user to Citi multi-factor authentication page.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
field name | field type | description |
redirect_uri | location | This is the absolute uri provided in the request |
mfaStatus | query | returned as 'success' when the mfa flow is completed successfully |
state | query | echo back of the value sent in the request |
error | query | field returned when an error occurs due to invalid inputs from client or server side fault. The possible values are as follows - invalid_request | unauthorized_client | access_denied | service_unavailable | temporary_unavailable |
error_description | query | An optional parameter returned in few error scenarios with detailed description of the error for debugging. |
Enroll and Generate Card Access Token
This API is used to enroll the customer to avail services like Rewards Redemption, EPP, LOP etc. from the partner's site through a common registration.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Type | Code | Details |
invalid | invalid_request | Missing or invalid Parameters |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | unAuthorized | Authorization credentials are missing or invalid |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | accessNotConfigured | The request operation is not configured to access this resource |
error | mfaRequired | MFA is required |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | registrationFailed | Registration failed |
invalid | invalid_grant | The provided access grant is invalid, expired, or revoked |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
fatal | serverUnavailable | The request failed due to an internal error |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Activate Card Access Token
This API activates customer's access token. Separate token activation is required for each credit card held by the customer.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
-
token_type
- The token type
- type : string
-
expires_in
- The access token expiry time (in seconds)
- type : integer
- format : int32
-
scope
- The list of scopes separated by space
- type : string
-
refresh_token
- The refresh token value
- type : string
-
cardId
- The card id in encrypted format
- type : string
-
access_token
- This field should be passed as Authorization header in API request calls
- type : string
-
refresh_token_expires_in
- This refer to the time in refersh token expiry
- type : integer
-
consented_on
- This refer to the customer consent time for authorization
- type : string
-
customerId
- Customer number in the encrypted format
- type : string
-
cardReferenceNumber
- Partner will include Card reference number in the settlement file to sent it to Citi to aprove the purchase
- type : string
Type | Code | Details |
invalid | invalidRequest | Missing or invalid Parameters |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | unAuthorized | Authorization credentials are missing or invalid |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | accessNotConfigured | The request operation is not configured to access this resource |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | activationFailed | Link code activation is failed |
error | exceedsMaximumAttempts | Maximum attempts exceeded for activation. Link credit card to a merchant again. |
error | linkageConfirmationCodeExpired | The linkage confirmation Code is expired . Link credit card to a merchant again. |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
fatal | serverUnavailable | The request failed due to an internal error |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Refresh Card Access Token
This API generates a fresh access token. If your access token has expired and you still have a valid refresh token, you can exchange it for a new set of valid access and refresh tokens.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
-
token_type
- The token type
- type : string
-
access_token
- This field should be passed as Authorization header in API request calls
- type : string
-
expires_in
- The access token expiry time (in seconds)
- type : integer
- format : int32
-
scope
- The list of scopes separated by space
- type : string
-
refresh_token
- The refresh token value
- type : string
-
cardId
- The card id in encrypted format
- type : string
Type | Code | Details |
invalid | invalidRequest | Missing or invalid Parameters |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | unAuthorized | Authorization credentials are missing or invalid |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | accessNotConfigured | The request operation is not configured to access this resource |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
invalid | invalid_grant | The provided access grant is invalid, expired, or revoked |
error | unsupported_grant_type | grant type not supported |
error | unauthorized_client | The client is not authorized to request an authorization code using this method |
error | invalidCustomer | Customer not found or invalid |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
fatal | serverUnavailable | The request failed due to an internal error |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Revoke Card Access Token
This API is used to revoke the access token. The revoke call will terminate the access granted by Citi customer to avail services from your application.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Type | Code | Details |
invalid | invalidRequest | Missing or invalid Parameters |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | unAuthorized | Authorization credentials are missing or invalid |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
error | accessNotConfigured | The request operation is not configured to access this resource |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
invalid | invalid_grant | The provided access grant is invalid, expired, or revoked |
error | unsupported_grant_type | grant type not supported |
error | unauthorized_client | The client is not authorized to request an authorization code using this method |
error | invalidCustomer | Customer not found or invalid |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Type | Code | Details |
fatal | serverUnavailable | The request failed due to an internal error |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Generate and Send OTP
This API allows to generate the one time password and delivers to customer.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
-
maskedPhoneNumber
- type : string
- The Customer's phone number having last four digits unmasked
Type | Code | Details |
invalid | invalidRequest | Missing or invalid Parameters |
error | maximumAttemptsLimitExceeded | Max Attempt count reached |
error | phoneNumberNotFound | Missing mobile phone number |
error | smsDeliveryFailed | SMS delivery failed |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
error | unAuthorized | Authorization credential is missing or invalid |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
error | accessNotConfigured | Access is not configured for this resource |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
fatal | serverUnavailable | The request failed due to an internal error |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
Validate OTP
This API validates the OTP token submitted by the customer.
- cURL
- Ruby
- Python
- PHP
- Java
- Node
- Go
- Swift
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Example Request
Type | Code | Details |
invalid | invalidRequest | Missing or invalid Parameters |
error | invalidOTP | Invalid OTP |
error | maximumAttemptsLimitExceeded | Max number of one-time password failures exceeded |
error | otpTokenExpired | OTP Token Expired |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
error | unAuthorized | Authorization credential is missing or invalid |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
error | accessNotConfigured | Access is not configured for this resource |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}
fatal | serverUnavailable | The request failed due to an internal error |
-
error_description
- Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred
- type : string
-
error
- If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.
- type : string
- enum : invalid_request, unauthorized_client, access_denied, unsupported_response_type, invalid_scope, server_error, temporarily_unavailable, unsupported_token_type
-
error_uri
- A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
- type : string
-
required
- error
{
"properties": {
"error_description": {
"description": "Human-readable ASCII [USASCII] text providing additional information, used to assist the client developer in understanding the error that occurred",
"type": "string"
},
"error": {
"description": "If the request fails due to a missing, invalid, or mismatching redirection URI, or if the client identifier is missing or invalid, the authorization server SHOULD inform the resource owner of the error and MUST NOT automatically redirect the user-agent to the invalid redirection URI.",
"type": "string",
"enum": [
"invalid_request",
"unauthorized_client",
"access_denied",
"unsupported_response_type",
"invalid_scope",
"server_error",
"temporarily_unavailable",
"unsupported_token_type"
]
},
"error_uri": {
"description": "A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.",
"type": "string"
}
},
"required": [
"error"
]
}