API reference / Apps
List failed Stripe payments
Card payments that failed in the workspace's Stripe since a date (the last 7 days by default), newest first, with why they failed. Read only. Needs Stripe connected.
get
/api/v1/apps/stripe/failed-paymentsOther ways to call it
CLI
troopy stripe failed-paymentsMCP tool
troopy_stripe_failed_paymentsRate limit60 calls in 60 seconds, for each key
Query parameters
sincestringOn or after this date; 7 days ago when left out
date
limitintegerAt most 50; ask for 10 or fewer to read them all at once
Default 10 · At least 1 · At most 50
cursorstringThe next value from the previous page
At most 200 characters
Response
200 · application/jsondata*array<object>9 properties
id*stringcustomer*string | nullemail*string | nullamount*numberIn the currency's main unit: dollars, not cents
currency*stringISO code, like usd
failureCode*string | nullfailureMessage*string | nullinvoice*string | nullcreated*stringISO 8601 date and time
hasMore*booleannext*string | nullPass as cursor for the next page; null on the last
Errors
400 invalid_inputFix the field named in detail. Each operation's schema is in /api/v1/openapi.json.
401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
429 rate_limitedWait the number of seconds in Retry-After, then retry.