cURL
curl --request POST \ --url https://quickei.io/pay/sandbox/api/v1/authentication/token \ --header 'Content-Type: application/json' \ --data ' { "client_id": "<string>", "secret_id": "<string>" } '
Authenticate and obtain an access token
POST https://quickei.io/pay/sandbox/api/v1/authentication/token
<?php require_once('vendor/autoload.php'); $client = new \GuzzleHttp\Client(); $response = $client->request('POST', 'https://quickei.io/pay/sandbox/api/v1/authentication/token', [ 'json' => [ 'client_id' => 'YOUR_CLIENT_ID', 'secret_id' => 'YOUR_SECRET_ID', ], 'headers' => [ 'accept' => 'application/json', 'content-type' => 'application/json', ], ]); echo $response->getBody();
{ "message": { "code": 200, "success": ["SUCCESS"] }, "data": { "access_token": "nyXPO8Re5SXP...", "expire_time": 600 }, "type": "success" }
{ "message": { "code": 400, "error": ["Invalid secret ID"] }, "data": [], "type": "error" }