Guida completa per integrazione API e uso del portale merchant.
https://otfxkl5czg.execute-api.eu-south-1.amazonaws.com
Genera una SERVER KEY dal Merchant Portal e inviala come header x-api-key.
Headers: x-api-key: <SERVER_KEY> content-type: application/json
Le API del merchant portal usano JWT Cognito (OAuth code flow).
POST /v1/session per creare una sessione/v1/liveness/start → /v1/liveness/complete/v1/age-check per valutazione età/v1/token/issue per emettere token/v1/token/verify per verifica token lato merchant{
"client_id": "client_YYYYMMDD_xxxxxx",
"session_ttl_sec": 600
}
{
"session_id": "sess_..."
}
{
"session_id": "sess_...",
"face_image_b64": "data:image/jpeg;base64,..."
}
{
"session_id": "sess_...",
"face_image_b64": "data:image/jpeg;base64,..."
}
{
"session_id": "sess_..."
}
{
"token": "eyJhbGciOi..."
}
Due modalità:
Gli accrediti vengono registrati nel ledger con type=CREDIT e reason=TOPUP.
Ritorna client, saldo e stato billing. Usa JWT Cognito.
401 UNAUTHORIZED 403 NOT_PROVISIONED 403 CLIENT_DISABLED 409 BILLING_REQUIRED 409 ALREADY_CLAIMED 409 KEY_LIMIT
Gli accrediti sono basati sugli eventi Stripe. Se usi EventBridge (partner event source), imposta come target la Lambda avp_stripeWebhook. Non serve signature webhook.
Eventi gestiti: checkout.session.completed, payment_intent.succeeded.
Se vuoi usare un webhook HTTP, l’endpoint è:
POST /v1/stripe/webhook