List Stripe connections
const url = 'http://localhost:8080/v1/settings/stripe';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/v1/settings/stripe \ --header 'Authorization: Bearer <token>'Returns the tenant’s Stripe connections for both modes in one list (at most two rows, live first), whatever the caller’s mode. No secret values are returned, only prefixes and last four characters.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Connections
object
object
Also the {id} in the Stripe webhook URL /v1/webhooks/stripe/{id}.
Set after Stripe accepted the key.
First 12 characters of the secret key.
Last time Stripe accepted the key.
Why the last Stripe check failed, in Stripe’s own words (or the network error when Stripe was not reached). Empty when it passed.
What kind of failure last_verified_error is. rejected: Stripe
answered and refused the key (invalid, revoked, or without access).
unavailable: Stripe was not reached, or answered 429/5xx, so the
key was not checked; connecting again may work. Absent when the
check passed, and on keys that failed before this field existed.
Connect response only. Number of stuck invoices being retried in the background.
Example
{ "data": [ { "last_verified_error_kind": "rejected" } ]}