Échangez votre Client ID et Secret contre un token Bearer. Utilisez le token sur toutes les requêtes suivantes.
https://heyqo.cash/business/v1/authentication/token
| Field | Type | Requis |
|---|---|---|
| client_id | string | Oui |
| secret_id | string | Oui |
curl -X POST "https://heyqo.cash/business/v1/authentication/token" \
-H "Content-Type: application/json" \
-d '{
"client_id": "YOUR_CLIENT_ID",
"secret_id": "YOUR_SECRET"
}'
{
"message": { "code": 200, "success": ["SUCCESS"] },
"data": {
"access_token": "...",
"token_type": "Bearer",
"expires_in": 3600,
"mode": "PRODUCTION"
},
"type": "success"
}
Envoyez le token sous la forme Authorization: Bearer {access_token}