patients

Add new payment method

Create a Stripe checkout session to add a new payment method (no charge).

post/api/patients/payment-methods/add

Request

  • Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
  • URL: https://api.corabea.it/api/patients/payment-methods/add
  • Auth: HTTP bearer

Request body

set_as_defaultboolean

Whether to set this payment method as default after adding

Example request

{
  "set_as_default": true
}

Response

Successful Response

checkout_urlstring required

URL to redirect user to Stripe checkout

session_idstring required

Stripe checkout session ID

Example response

{
  "checkout_url": "https://checkout.stripe.com/c/pay/cs_test_xxx",
  "session_id": "cs_test_xxx"
}

Changes

No recorded changes to this operation across all 55 revisions of this API.