Skip to content

Record a payment method added from the profile​

POST
/me/payment-methods/sync

Records the method a profile SetupIntent saved, once the browser's
confirmSetup has finished, and returns it. Stripe's
setup_intent.succeeded event records the same method, in either
order, so calling this twice, or after the event, returns the same
method. The donor's first saved method becomes their default.

The caller's own signed-in session only.

Authorizations​

BearerAuth

In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.

Type
HTTP (bearer)

Request Body​

application/json
JSON
{
"setup_intent_id": "seti_1Example0000"
}

Responses​

The saved method.

application/json
JSON
{
"data": {
"method": "string"
}
}

Playground​

Server
Authorization
Body

Samples​

Powered by VitePress OpenAPI

Built with VitePress