Retrieve encoded company bank account details for a checkout session (session ID from token).
GET /checkout/sessions/bank-details — no path parameters.
The session ID is derived from the session token in the Authorization
header (or token query param). Send the session token that was included in
the checkout URL.
Valid currency values are the active bank account currencies for the
organization (see
GET /checkout/sessions/bank-currencies).
If currency is omitted and the org has exactly one such currency, that
currency is used; if there are several, currency is required (400 with
available list in the error message).
The response contains a Base64-encoded JSON payload with the bank account
information. The frontend is expected to decode this payload and display the
fields to the user.
checkout.Bearer <session_token>. The session token is returned
in the checkout URL when the session is created (e.g. ?token=...). The
backend derives the session ID from this token; do not send session_id in
the path.token.
GET /checkout/sessions/bank-currencies for this session. Omit
only when the organization has a single bank currency.