Skip to main content

Generate Access Token

GET 

https://api.cleverhub.co/api/v1/payment_gateways/access_token

Generate a temporary access token to authenticate and initiate transactions through the Hello Clever payment gateway. This token is obtained using your app-id and secret-key credentials and is valid for 3600 seconds (1 hour).

Responses

Access token generated successfully.

Schema
    access_tokenstring

    A token used to authenticate payment requests. Expires after 3600 seconds.

    Example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
    expires_ininteger

    Duration in seconds before the token expires.

    Example: 3600

Authorization: app-id

name: app-idtype: apiKeyin: headerdescription: A unique identifier assigned to each application.
name: secret-keytype: apiKeyin: headerdescription: A secure token associated with the `app-id`.
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.cleverhub.co/api/v1/payment_gateways/access_token");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("app-id", "<app-id>");
request.Headers.Add("secret-key", "<app-id>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://api.cleverhub.co/api
Auth
ResponseClear

Click the Send API Request button above and see the response here!