Accounts
An account is a customer organization. Accounts hold subscriptions, invoices, payment methods, and contacts.
POST /api/v1/accounts— createGET /api/v1/accounts/{id}— retrievePATCH /api/v1/accounts/{id}— update
POST /api/v1/accounts
Create a new account in this tenant.
Auth scope:
commerce
Body
name
string (1–255)
yes
Account display name
externalId
string (≤255)
no
Your external system ID
email
string (email)
no
Primary email
phone
string (≤50)
no
website
string (≤500)
no
industry
string (≤100)
no
Response 201
Errors
400
Validation failed
401 / 403
Auth / scope
500
Server error
cURL
GET /api/v1/accounts/{id}
Retrieve an account by ID. The platform first looks for a tenant-owned organization; if none exists and the ID is a valid billing-system account ID, the call falls through to the active billing adapter.
Auth scope:
read
Path
id
Internal organization UUID or billing-system account ID
Response 200
When resolved through the billing adapter, the data shape matches the adapter's account-detail response (account number, balance, contacts).
Errors
404
No matching account in this tenant or billing system
cURL
PATCH /api/v1/accounts/{id}
Update fields on a tenant-owned account.
Auth scope:
commerce
Body (all optional)
name
string (1–255)
email
string (email)
phone
string (≤50)
website
string (≤500)
industry
string (≤100)
Response 200
Same shape as GET.
Errors
400
Validation failed
404
Account not found in this tenant
cURL
GET /api/v1/accounts/{id}/invoices
List all invoices for an account, fetched live from the active billing adapter.
Auth scope:
read
Path
id
Billing-system account ID (must match billing-system format)
Response 200
Errors
400
Invalid account ID format
404
No active billing integration configured
cURL
GET /api/v1/accounts/{id}/subscriptions
List subscriptions for an account, fetched live from the active billing adapter.
Auth scope:
read
Response 200
Errors
400
Invalid account ID format
404
No active billing integration configured
cURL
GET /api/v1/accounts/{id}/payment-methods
List payment methods for an account, fetched live from the active billing adapter.
Auth scope:
read
Response 200
Errors
400
Invalid account ID format
404
No active billing integration configured
cURL
Related
Last updated
Was this helpful?
