Skip to main content

Generate Access Token

POST 

https://wallet.fondy.eu/authorizer/token/application/get

This endpoint generates an access token for the application by sending a POST request with the required parameters. The parameters include the application_id, date, and signature. Refer to Fondy support to obtain the necessary application_id and secret key.

Request

Body

    application_idstringrequired

    Company ID. Contact Fondy support to obtain the ID and secret key.

    Possible values: <= 20 characters

    Example: 1234
    datestringrequired

    "Date in any format. Acts as a salt for the SHA-512 signature hash. Examples include '2020-04-06 11:15:27' or a timestamp like '1586171872'."

    Possible values: <= 1024 characters

    Example: 2020-04-06 11:15:27
    signaturestringrequired

    The signature is formed by concatenating the company private key, company id, and date parameter through a vertical bar "|" (in utf-8 encoding). From the received line, you need to take the sha512 hash in hex.

    Possible values: <= 128 characters

    Example: 7eec02ed1088b47da639549a109c0e98a75e2d8c76dfa33db4ee18359b2ea677dda37516abc0e439b286261a48d49d3e2fd885d9f09c8ff5c7308afe4180688a

Responses

Access token successfully generated.

Schema
    request_idstring

    Unique ID for tracking the request.

    Example: SuVhZRMS7JDD2iGS
    tokenstring

    Access token for the application.

    Example: Yq0GXWeOZ1m8BsiCa4iQPDB84Wjw346
    expires_ininteger

    Time in seconds until the token expires.

    Example: 3602
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://wallet.fondy.eu/authorizer/token/application/get");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"application_id\": \"1234\",\n \"date\": \"2020-04-06 11:15:27\",\n \"signature\": \"7eec02ed1088b47da639549a109c0e98a75e2d8c76dfa33db4ee18359b2ea677dda37516abc0e439b286261a48d49d3e2fd885d9f09c8ff5c7308afe4180688a\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://wallet.fondy.eu
Body
{
  "application_id": "1234",
  "date": "2020-04-06 11:15:27",
  "signature": "7eec02ed1088b47da639549a109c0e98a75e2d8c76dfa33db4ee18359b2ea677dda37516abc0e439b286261a48d49d3e2fd885d9f09c8ff5c7308afe4180688a"
}
ResponseClear

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