# Choose the default billing organization

Saves which organization to preselect as **Bill to** when you rent a Forge cloud server, and returns the [billing organizations](/docs/api-reference/forge-compute/list-billing-organizations) with it as `default_organization_id`. The choice is yours alone and follows you across devices.

It only preselects. Every server is billed to the organization its [create](/docs/api-reference/forge-compute/create-host) names in `organization_id`, and nothing already running moves. If the saved organization later stops being selectable, the list falls back to your current organization, or the first selectable one, until you choose again.

The organization must be one of yours marked `selectable` in [List billing organizations](/docs/api-reference/forge-compute/list-billing-organizations). Otherwise the request is refused with `403 FORGE_COMPUTE_BILLING_ORGANIZATION_NOT_SELECTABLE`, whose `message` is the reason to show, and nothing is saved. Requires a credential that acts for a person; one confined to some organizations can choose only among those.

#### Body Parameters

**`organization_id`** string required

The organization to preselect: an `id` from `organizations` marked `selectable`. Unknown fields are refused.

## Returns

The [billing organizations](/docs/api-reference/forge-compute/list-billing-organizations#returns), with `default_organization_id` set to the chosen organization.


```json
{
  "default_organization_id": "org_8f2d4b6a1c3e4f5a8b7c9d0e1f2a3b4c",
  "title": "Bill to",
  "help": "Rented servers are billed to this organization's Forge cloud compute.",
  "organizations": [
    {
      "id": "org_3c1e9a7b5d2f4e8a9b0c6d1e2f3a4b5c",
      "name": "Acme Engineering",
      "logo_url": "https://cdn.example.com/logos/acme.png",
      "selectable": true,
      "reason": null,
      "month_to_date_label": "CHF 0.52 on servers this month",
      "order": 0
    },
    {
      "id": "org_8f2d4b6a1c3e4f5a8b7c9d0e1f2a3b4c",
      "name": "Side Project",
      "logo_url": null,
      "selectable": true,
      "reason": null,
      "month_to_date_label": null,
      "order": 1
    }
  ]
}
```

## Errors

| Status | Code | When |
|  --- | --- | --- |
| 401 | `AUTHENTICATION_REQUIRED` | No valid credential. |
| 403 | `API_KEY_PERSON_REQUIRED` | An organization API key: it has no person of its own. |
| 403 | `FORGE_COMPUTE_BILLING_ORGANIZATION_NOT_SELECTABLE` | Servers cannot be billed to this organization: you are not an active member of it, your credential is confined to other organizations ("This key cannot be used in this organization."), Forge cloud compute is off there or could not be checked, you do not hold `use_forge` there, or Aitronos servers are not offered to you there. `message` is the reason to show; `details.organization_id` is the organization. Nothing was saved. |
| 422 | `VALIDATION_ERROR` | A body of the wrong shape: `organization_id` missing or empty, or an unknown field. |



```bash cURL
curl -X PUT "https://api.aitronos.com/v1/forge/compute/billing-organizations/default" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"organization_id": "org_8f2d4b6a1c3e4f5a8b7c9d0e1f2a3b4c"}'
```


```python Python SDK
# pip install aitronos-sdk
#
# The Python SDK does not expose a typed `forge_compute` namespace yet, so call
# the endpoint directly with the same bearer token you would pass to `Aitronos(...)`.
import httpx

ACCESS_TOKEN = "your-access-token"

response = httpx.put(
    "https://api.aitronos.com/v1/forge/compute/billing-organizations/default",
    headers={"Authorization": f"Bearer {ACCESS_TOKEN}"},
    json={"organization_id": "org_8f2d4b6a1c3e4f5a8b7c9d0e1f2a3b4c"},
)
if response.status_code == 403:
    print(response.json()["error"]["message"])
else:
    print("default:", response.json()["default_organization_id"])
```


```python Python
import os
import requests

token = os.environ["AITRONOS_TOKEN"]
response = requests.put(
    "https://api.aitronos.com/v1/forge/compute/billing-organizations/default",
    headers={"Authorization": f"Bearer {token}"},
    json={"organization_id": "org_8f2d4b6a1c3e4f5a8b7c9d0e1f2a3b4c"},
)
print(response.json()["default_organization_id"])
```


```javascript JavaScript
const response = await fetch("https://api.aitronos.com/v1/forge/compute/billing-organizations/default", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.AITRONOS_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ organization_id: "org_8f2d4b6a1c3e4f5a8b7c9d0e1f2a3b4c" }),
});
const picker = await response.json();
console.log(picker.default_organization_id);
```

**Response:**

200 OK

```json
{
  "default_organization_id": "org_8f2d4b6a1c3e4f5a8b7c9d0e1f2a3b4c",
  "title": "Bill to",
  "help": "Rented servers are billed to this organization's Forge cloud compute.",
  "organizations": [
    {
      "id": "org_3c1e9a7b5d2f4e8a9b0c6d1e2f3a4b5c",
      "name": "Acme Engineering",
      "logo_url": "https://cdn.example.com/logos/acme.png",
      "selectable": true,
      "reason": null,
      "month_to_date_label": "CHF 0.52 on servers this month",
      "order": 0
    },
    {
      "id": "org_8f2d4b6a1c3e4f5a8b7c9d0e1f2a3b4c",
      "name": "Side Project",
      "logo_url": null,
      "selectable": true,
      "reason": null,
      "month_to_date_label": null,
      "order": 1
    }
  ]
}
```

403 Forbidden

```json
{
  "success": false,
  "error": {
    "code": "FORGE_COMPUTE_BILLING_ORGANIZATION_NOT_SELECTABLE",
    "message": "You don't have permission to rent servers in this organization.",
    "system_message": "Forge compute billing organization not selectable: 'org_1a2b3c4d5e6f4a7b8c9d0e1f2a3b4c5d'",
    "type": "authorization_error",
    "status": 403,
    "details": {"organization_id": "org_1a2b3c4d5e6f4a7b8c9d0e1f2a3b4c5d"},
    "trace_id": "3f1c9a52-7d4e-4b8a-9c21-6e0d5f7a8b34",
    "timestamp": "2026-10-01T09:00:00Z"
  }
}
```

## Related Resources

- [Forge cloud compute overview](/docs/api-reference/forge-compute/introduction)
- [List billing organizations](/docs/api-reference/forge-compute/list-billing-organizations)
- [Choose the default billing organization](/docs/api-reference/forge-compute/choose-billing-organization)
- [List project groups](/docs/api-reference/forge-compute/list-project-groups)
- [Register or update a project group](/docs/api-reference/forge-compute/put-project-group)
- [Delete a project group](/docs/api-reference/forge-compute/delete-project-group)
- [List compute offerings](/docs/api-reference/forge-compute/list-offerings)
- [Get offering options](/docs/api-reference/forge-compute/get-offering-options)
- [Resolve a free size](/docs/api-reference/forge-compute/resolve-offering-size)
- [List connected accounts](/docs/api-reference/forge-compute/list-credentials)
- [Connect a cloud account](/docs/api-reference/forge-compute/put-credential)
- [Disconnect a cloud account](/docs/api-reference/forge-compute/delete-credential)
- [Create a server](/docs/api-reference/forge-compute/create-host)
- [List servers](/docs/api-reference/forge-compute/list-hosts)
- [List your servers in every organization](/docs/api-reference/forge-compute/list-my-hosts)
- [Get a server](/docs/api-reference/forge-compute/get-host)
- [Get a server's daily cost and uptime](/docs/api-reference/forge-compute/get-host-usage)
- [List a server's running intervals](/docs/api-reference/forge-compute/list-host-intervals)
- [List a server's event history](/docs/api-reference/forge-compute/list-host-events)
- [Park a server](/docs/api-reference/forge-compute/park-host)
- [Resume a server](/docs/api-reference/forge-compute/resume-host)
- [Delete a server](/docs/api-reference/forge-compute/delete-host)
- [Get compute settings](/docs/api-reference/forge-compute/get-settings)
- [Get spend limits](/docs/api-reference/forge-compute/get-limits)
- [Change the organization's limits](/docs/api-reference/forge-compute/update-organization-limits)
- [Set your own limit](/docs/api-reference/forge-compute/update-my-limit)
- [List member limits](/docs/api-reference/forge-compute/list-member-limits)
- [Set a member's limit](/docs/api-reference/forge-compute/update-member-limit)