Skip to content

office

The active office context, reliant on the domain-office assignment in Settings > Domains. Will return null if there's no active context.

Single office accounts do not have an implied website office context — there's only an active office if it is assigned explicitly to the domain.

ACCESS

Directly accessible in all Website templates.

Example

json
{
  "id": 1,
  "agency_id": 1,
  "name": "Los Angeles",
  "phone": "310-691-7900",
  "email": "la@agency.com",
  "physical_address1": "469 S. Robertson Blvd",
  "physical_address2": "Suite 101A",
  "physical_address3": "Beverly Hills, CA",
  "physical_postcode": "90214",
  "postal_address1": "469 S. Robertson Blvd",
  "postal_address2": "Suite 101A",
  "postal_address3": "Beverly Hills, CA",
  "postal_postcode": "90214",
  "country_id": "US",
  "country_name": "United States",
  "currency_id": "USD",
  "timezone": "America/Los_Angeles",
  "domain": "la.agency.com",
  "date_format_short": "%m/%d/%Y",
  "date_format_medium": "%B %e, %Y",
  "date_format_long": "%A, %B %e, %Y",
  "bank_name": null,
  "bank_branch": null,
  "bank_account_number": null,
  "bank_routing_number": null,
  "bank_swift_code": null,
  "tax_number": null,
  "created_at": "2025-01-31 12:00:00",
  "updated_at": "2025-01-31 12:00:00",
  "deleted_at": "2025-01-31 12:00:00"
}

Properties

id integer
agency_id integer
name string
phone string
email string
physical_address1 string
physical_address2 string
physical_address3 string
physical_postcode string
postal_address1 string
postal_address2 string
postal_address3 string
postal_postcode string
country_id string

ISO 3166-1 alpha-2 country code.

country_name string
currency_id string
timezone string
domain string
date_format_short string

Office-configured short date format string for use with the Liquid date filter.

date_format_medium string

Office-configured medium date format string for use with the Liquid date filter.

date_format_long string

Office-configured long date format string for use with the Liquid date filter.

bank_name string
bank_branch string
bank_account_number string
bank_routing_number string
bank_swift_code string
tax_number string
created_at datetime
updated_at datetime
deleted_at datetime