PUT
/
accounts
/
subscriptions
curl --request PUT \
  --url https://api.mudstack.com/accounts/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'x-account-id: <x-account-id>'
{
  "account_id": "<string>",
  "stripe_customer_id": "<string>",
  "status": "<string>",
  "licenses": 123,
  "frequency": "yearly",
  "contact": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-account-id
string
required

Query Parameters

tier
string

The subscription tier

frequency
string

The subscription frequency

email
string

The customer email

payment_method_id
string

The payment method ID

Response

200
application/json
Updated subscription details

Represents an account subscription.

account_id
string

The unique identifier for the account.

stripe_customer_id
string

The Stripe customer ID associated with the account.

status
string

The current status of the subscription.

licenses
integer

The number of licenses associated with the subscription.

frequency
enum<string>

The billing frequency of the subscription.

Available options:
yearly,
monthly
contact
string

The contact information for the subscription.