Authentication

AUTH001: Redirect to Akifast Login Page

get

Redirects the user to Akifast OAuth2 login page to initiate the authorization flow. The merchant must pass the required query parameters.

Query parameters
grant_typestring · enumRequired

Must be set to authorization_code.

Possible values:
response_typestring · enumRequired

Must be set to code.

Possible values:
client_idstringRequired

The client_id of the merchant.

statestringOptional

Optional state value used for CSRF protection and to maintain state between request and callback.

redirect_uristring · uriRequired

URI to which the user will be redirected after authentication.

Responses
302
Redirect to Akifast Login Page
application/json
get
GET /oauth/authorize HTTP/1.1
Host: oauth.sandbox.akifast.com
Accept: */*
{
  "redirect_to": "https://oauth.sandbox.akifast.com/oauth/authorize?grant_type=authorization_code&response_type=code&client_id=YOUR_CLIENT_ID&state=xyz123&redirect_uri=https%3A%2F%2Fyourapp.com%2Foauth-callback"
}

Was this helpful?