Request format


    ENDPOINT https://app.paycrypto24.com/api
    

Authentication

The authentication process is carried out by sending Authorization header:

NAMEDEFINITION
Authorization`Bearer` | A Bearer Token is a type of access token used in authentication and authorization.

Examples

Here are some examples of how to communicate with the API:

Javascript

Example of making request in Javascript:

fetch('https://app.paycrypto24.com/api/...', {
  method: "POST",
  headers: {
    "Authorization": "Bearer 3|fy5JH4a8 ********** 1C9958f1f1",
    "Accept": "application/json",
    "Content-Type": "application/json"
  },
  body: JSON.stringify(data)
})

PHP Laravel Client::HTTP

Example of making request in Laravel client:http package:

use Illuminate\Support\Facades\Http;

$url = "https://app.paycrypto24.com/api/...";
$token = "your_bearer_token_here"; // Replace with your actual token

$response = Http::withToken($token)
    ->acceptJson()
    ->post($url, [
        'key1' => 'value1',
        'key2' => 'value2'
    ]);

if ($response->successful()) {
    return $response->json(); // Return or process the response data
} else {
    return response()->json([
        'error' => 'Request failed',
        'status' => $response->status(),
        'message' => $response->body(),
    ], $response->status());
}

CURL

Example of making request with CURL:

curl -X POST https://app.paycrypto24.com/api/... -H "Authorization: Bearer your_bearer_token_here" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"key1": "value1", "key2": "value2"}'