Generate Access Token
POSThttps://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
- application/json
Body
Company ID. Contact Fondy support to obtain the ID and secret key.
Possible values: <= 20 characters
1234
"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
2020-04-06 11:15:27
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
7eec02ed1088b47da639549a109c0e98a75e2d8c76dfa33db4ee18359b2ea677dda37516abc0e439b286261a48d49d3e2fd885d9f09c8ff5c7308afe4180688a
Responses
- 200
- 403
Access token successfully generated.
- application/json
- Schema
- Example (auto)
Schema
Unique ID for tracking the request.
SuVhZRMS7JDD2iGS
Access token for the application.
Yq0GXWeOZ1m8BsiCa4iQPDB84Wjw346
Time in seconds until the token expires.
3602
{
"request_id": "SuVhZRMS7JDD2iGS",
"token": "Yq0GXWeOZ1m8BsiCa4iQPDB84Wjw346",
"expires_in": 3602
}
Invalid request parameters.
- application/json
- Schema
- Example (auto)
Schema
Code indicating the type of error encountered.
403
Message explaining why the request failed.
Incorrect signature
Unique ID for tracking the request.
cGeC7PH59ESqQw30
{
"error_code": 403,
"error_message": "Incorrect signature",
"request_id": "cGeC7PH59ESqQw30"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
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());