Quickstart
This guide walks you through issuing your first authenticated request. You will need:
- A API key (request one from your account manager or admin panel).
- A terminal with
curl, or any HTTP client.
1. Obtain a JWT
Exchange your API key for a short-lived JWT:
curl -X POST {{apiUrl}}/Login/Customer/Api/Verify \
-H "Content-Type: application/json" \
-H "h-region-code: TR" \
-d '{
"email": "YOUR_EMAIL",
"password": "YOUR_PASSWORD"
}'
Response:
{
"success": true,
"message": "Generated sucessfully",
"errorCode": 0,
"data": {
"expiresInHours": 18400,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"customerApiKey": "eabgsd-123dv-sdsasd...",
"balance": 0,
"currencyCode": "USD"
}
}
2. Call an endpoint
Use the JWT in the Authorization header (note: with Bearer prefix —
see the Authentication guide).
curl {{apiUrl}}/order/create \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
3. Explore the reference
Browse the Reseller API reference and try other endpoints. Every operation page includes a runnable code sample in your language of choice.