PaystationdocsPaystation

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ório
  • visitor_idstring · queryobrigatório
  • expires_instring · query

    Session lifetime in seconds. Anything that is not a positive integer is ignored and 3600 is used, with no error.

  • expire_instring · query

    Alias of `expires_in`, read only when `expires_in` is absent or empty.

  • cf-turnstile-tokenstring · headerobrigatório

    Cloudflare Turnstile token solved in the browser.

Resposta

200OK

  • uuidstringobrigatório

    Stark Bank tokenization session.

Erros

401Missing or invalid key.
403The Turnstile token was refused (`turnstile_invalid`) or already used too many times (`turnstile_budget_exhausted`): solve the challenge again.
422A parameter is missing (`missing_field`) or invalid (`invalid_param`).
429Rate limited.
500Unexpected 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.