patients

Set default payment method

Set a payment method as the default for future payments.

put/api/patients/payment-methods/default

Request body

payment_method_idstring required

Stripe payment method ID to set as default

Example request

{
  "payment_method_id": "pm_1234567890"
}

Response

Successful Response

successboolean required

Whether the operation was successful

default_payment_method_idstring required

ID of the new default payment method

titlestring

Success title

messagestring required

Success message

Example response

{
  "default_payment_method_id": "pm_1234567890",
  "message": "Metodo di pagamento predefinito aggiornato con successo",
  "success": true
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.