Open a Stark Bank tokenization session
GET /v1/checkout_sessions
Open a Stark Bank tokenization session
GET/v1/checkout_sessions
Autenticação
- Chave públicapk_…, pode ir para o navegador
- Chave secretask_…, só no seu servidor
Envie a chave no cabeçalho Authorization: Bearer <chave>.
Parâmetros
acquirer_namestring · queryobrigatóriovisitor_idstring · queryobrigatórioexpires_instring · querySession lifetime in seconds. Anything that is not a positive integer is ignored and 3600 is used, with no error.
expire_instring · queryAlias of `expires_in`, read only when `expires_in` is absent or empty.
cf-turnstile-tokenstring · headerobrigatórioCloudflare Turnstile token solved in the browser.
Resposta
200OK
uuidstringobrigatórioStark Bank tokenization session.
Erros
| 401 | Missing or invalid key. |
| 403 | The Turnstile token was refused (`turnstile_invalid`) or already used too many times (`turnstile_budget_exhausted`): solve the challenge again. |
| 422 | A parameter is missing (`missing_field`) or invalid (`invalid_param`). |
| 429 | Rate limited. |
| 500 | Unexpected error, or `api_unavailable`. |
Todo erro vem no mesmo envelope: error.type, error.code, error.message e error.request_id, também devolvido no cabeçalho X-Request-Id.