Docs/User API/Billing account/Update

Update a billing account

Preview
PATCH/user/v1/billingAccount

Update the default billing account.

query parameters

  • organizationId

    string

    The identifier of the organization.

    If not specified the billing account for the user is used.

body parameters

  • displayName

    string

    The human-readable display name of the billing account.

    The maximum length is 200 characters.

    This might be further restricted by the billing provider.

  • email

    string

    The email address of the billing account.

    The maximum length is 320 characters.

    This might be further restricted by the billing provider.

  • phoneNumber

    string

    The E164 phone number of the billing account (e.g. +12125550123).

  • address

    Address

    The address for the billing account.

Returns

  • state

    enum

    The status of the billing account.

    Possible values:
    USER_MANAGEDADMIN_MANAGEDUNMANAGEDBROKENNOT_SETUP
  • displayName

    string

    The human-readable display name of the billing account.

  • email

    string

    The email address of the billing account.

  • phoneNumber

    string

    The E164 phone number for the billing account (e.g. +12125550123).

  • address

    Address

    The billing address for the billing account.

  • currencyCode

    string

    The ISO-4217 currency code for the billing account (e.g. USD).

  • balanceAmount

    string

    The balance amount for the account.

    A negative value indicates an amount which will be subtracted from the next invoice (credit).

    A positive value indicates an amount which will be added to the next invoice (debt).

  • checkouts

    BillingAccountCheckout[]

    The available checkouts.

  • paymentMethods

    PaymentMethod[]

    The default and latest 10 payment methods for the account.

  • subscription

    Subscription

    The subscription for the account.

curl https://api.userhub.com/user/v1/billingAccount?organizationId=org_28seyVGVL1got6 \
  -H "UserHub-Api-Key: $USERHUB_USER_KEY" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN" \
  -X PATCH \
  --json '{
    "displayName": "Acme"
  }'
Response bodyJSON
{
  "state": "USER_MANAGED",
  "displayName": "Acme",
  "currencyCode": "USD",
  "balanceAmount": "0",
  "checkouts": [],
  "paymentMethods": []
}
PreviousGet a billing account
NextCheckouts

Build software thatmonetizes
$

Subscribe to monthly product updates

© 2025 UserHub

Integrations

    UserHub & Auth0UserHub & Stripe BillingUserHub & Google CloudUserHub & FirebaseUserHub & custom auth