PATCH
/
workspaces
/
{workspace_id}
/
billing-accounts
/
{billing_account_id}
/
payment-methods
/
{payment_method_id}
Set Default Payment Method
curl --request PATCH \
  --url https://api.altostrat.io/workspaces/{workspace_id}/billing-accounts/{billing_account_id}/payment-methods/{payment_method_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "message": "Default payment method updated"
}

Authorizations

Authorization
string
header
required

Auth0 JWT token for user authentication.

Path Parameters

workspace_id
string
required

The unique identifier for the workspace.

Example:

"ws_abc123"

billing_account_id
string
required

The unique identifier for the billing account (Stripe customer ID).

Example:

"cus_abc123"

payment_method_id
string
required

The unique identifier for the payment method (Stripe payment method ID).

Example:

"pm_abc123"

Body

application/json · object

Response

200 - application/json

Default payment method updated successfully.

The response is of type object.