POST
/
workspaces
/
{workspace_id}
/
billing-accounts
Create Billing Account
curl --request POST \
  --url https://api.altostrat.io/workspaces/{workspace_id}/billing-accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "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>"
  }
}'
{
  "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"

Body

application/json

Response

201
application/json

Billing account created successfully.

The response is of type object.