Skip to main content
PATCH
/
workspaces
/
{workspace_id}
/
billing-accounts
/
{billing_account_id}
Update Billing Account
curl --request PATCH \
  --url https://api.altostrat.io/workspaces/{workspace_id}/billing-accounts/{billing_account_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "description": "<string>",
  "address": {
    "country": "<string>",
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postal_code": "<string>"
  }
}'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "name": "<string>",
  "email": "jsmith@example.com",
  "phone": "<string>",
  "description": "<string>",
  "currency": "usd",
  "address": {
    "country": "<string>",
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postal_code": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

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"

Body

application/json
name
string
Maximum length: 100
email
string<email>
phone
string | null
Maximum length: 50
description
string | null
Maximum length: 200
address
object

Response

200 - application/json

Billing account updated successfully.

id
string

Stripe customer ID (cus_...)

workspace_id
string
name
string
Maximum length: 100
email
string<email>
phone
string | null
Maximum length: 50
description
string | null
Maximum length: 200
currency
enum<string>
Available options:
usd,
eur,
gbp,
aud,
zar
address
object
created_at
string<date-time>
updated_at
string<date-time>
I