Skip to content

Organization & Billing

Endpoints

Get Organization Details

GET /api/organizations/:id

Returns details of the specified organization.

Response

json
{
  "id": 1,
  "name": "My Org",
  "companyName": "My Company GmbH",
  "street": "Musterstr. 1",
  "postalCode": "12345",
  "city": "Berlin",
  "country": "DE",
  "vatId": "DE123456789",
  "billingEmail": "billing@example.com",
  "createdAt": "2023-01-01T00:00:00.000Z"
}

Update Organization

PUT /api/organizations/:id

Updates the organization details.

Request Body

json
{
  "name": "New Name",
  "companyName": "New Company Name",
  "street": "New Street",
  "postalCode": "54321",
  "city": "New City",
  "country": "US",
  "vatId": "US123",
  "billingEmail": "new@example.com",
  "defaultNotificationChannels": {
    "email": true,
    "sms": false,
    "webhook": true,
    "integrations": false
  },
  "defaultNotificationTargets": {
    "email": "both", // customer, organization, both
    "sms": "organization",
    "webhook": "organization",
    "integrations": "customer"
  }
}

Get Billing Details

GET /api/organizations/:id/billing Returns billing information and payment methods.

Update Billing Details

PUT /api/organizations/:id/billing Updates billing information.

List Invoices

GET /api/organizations/:id/mollie/invoices Lists all invoices for the organization.