Skip to main content
PUT
Set default payment method

Authorizations

Authorization
string
header
required

Enter your JWT in the format: Bearer {token}

Path Parameters

workspaceId
string
required

The ID of the workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

billingAccountId
string
required

The ID of the billing account, which corresponds to a Stripe Customer ID (cus_...).

Example:

"cus_a1b2c3d4e5f6g7h8"

paymentMethodId
string
required

The ID of the Stripe Payment Method (pm_...).

Example:

"pm_a1b2c3d4e5f6g7h8"

Response

The default payment method was updated successfully.

message
string
Example:

"Default payment method updated"