Bước 1 · Lấy JWT
POST https://openapi.casso.vn/oauth/token
Gửi app_id và app_secret trong body JSON. Nhận access_token (JWT RS256), expires_in ≈ 900 giây và exp. Cache token và dùng lại tới gần exp: endpoint này giới hạn 30 request/phút/IP.
{
"access_token": "eyJhbGciOiJSUzI1NiIs…",
"token_type": "Bearer",
"expires_in": 900,
"issued_at": 1762850000,
"exp": 1762850900
}