Skip to content

OrganizationAccount

An OrganizationAccount is your ObjectsGrid tenant. Every object, account and policy you create belongs to it, and its id (org-123-4567) appears in your tokens. You choose its region, accessPoint EU or US, when you register it, and its data stays there.

Registering it also creates your UserAccount as its first administrator, a default ABAC policy, and an access token for you; see the quick start.

verified is false for an OrganizationAccount created without signing in, until an administrator is bound with POST /organizationaccounts/{id}/administrator: it is held to 50,000 requests a month meanwhile. Only the platform sets it, with verifiedAt; accounts created before 2026-11-22 have neither and count as verified.

identityProviders lists the apps whose users may sign in: an ID token is accepted only if its issuer is listed and its audience (aud) is one of that issuer's clientIds. It starts with the app you registered with. Add your own app's Google client id before your users sign in; see Sign in with Google.

monthlyQuota is your spending cap: the number of API requests a month you are willing to be billed for. See Usage and limits.

customerDataRetentionYears is how long an erased person's data stays readable to the accounting role in the Orders that point to it, counted from the newest of those orders: 1 to 30 years, 10 when unset. See Personal data and erasure.

Only an administrator can change identityProviders, monthlyQuota and customerDataRetentionYears. A PUT that leaves one out keeps it.

JSON Schema

Example

Create one with POST /organizationaccounts:

{
  "name": "Northpeak Outdoor",
  "accessPoint": "EU",
  "countryCode": "DE"
}

Fields

Required: name, accessPoint.

Field Type Required Description
id string The object's id. Assigned by ObjectsGrid when the object is created.
name string Yes The OrganizationAccount Name
description string The OrganizationAccount Description
countryCode CountryCodeEnumeration The OrganizationAccount Country Code
commerceCode string The OrganizationAccount Commerce Code
ownerID string The OrganizationAccount Owner ID
accessPoint one of EU, US Yes The OrganizationAccount AccessPoint
tags list of Tag Tags your ABAC policy decides on. Created empty when not sent, kept by a PUT that leaves them out, cleared by null or [].
monthlyQuota integer The OrganizationAccount's monthly spending cap: the number of billable API requests a month it is willing to be billed for (responses of 500 and above, 401, 403 and 429, and token requests are free; a GraphQL request counts once). Past it, requests get 429, except token requests and reading or replacing the OrganizationAccount, so that an administrator can raise it. 0 means the platform's default, 100,000. While the OrganizationAccount is unverified (verified false), at most 50,000 requests a month are allowed, whatever monthlyQuota says; one created without an ID token and without a cap gets 50,000. Only an administrator changes it, and a replacement (PUT) that does not mention it keeps it. Responses carry X-ObjectsGrid-Quota-Limit and X-ObjectsGrid-Quota-Used.
customerDataRetentionYears integer How long, in years, an erased person's data stays readable to the accounting role (security.role = accounting) in the Orders that point to it, counted from the newest of those orders; then it is erased from them too. 1 to 30; 10 when unset. Only an administrator changes it, and a replacement (PUT) that does not mention it keeps it.
refreshTokenLifetimeHours integer How long, in hours, a user's sign-in lasts, whichever identity provider it was made with: the refresh tokens it gets, each used once and replaced by the next, are refused once that long has passed since the person signed in with the identity provider; then the app has the person sign in again. 1 to 2400 (100 days). Unset, a sign-in lasts as long as the app refreshes it at least every 100 days. The current value applies, so shortening it ends longer sign-ins at their next refresh. Only an administrator changes it, and a replacement (PUT) that does not mention it keeps it.
jsonLdAddresses object The addresses of your own web pages, by object type, used when an object is read as a JSON-LD document (GET /{id} with Accept: application/ld+json) to give it and the objects it references your addresses as @id and url. Each value is an https address without a query, in which {field} is replaced by the object's top-level field of that name, such as {id} or {sku}; a fragment, such as #product, is kept in @id and left out of url. An object whose field is missing or empty, or whose type is not listed, gets no @id. The stored objects keep their API addresses (at_id). Only an administrator changes it, and a replacement (PUT) that does not mention it keeps it.
identityProviders list of object The apps whose ID tokens log users into the OrganizationAccount (OAuth 2.0 token exchange): an ID token is accepted only if its issuer is listed here and its audience (aud) is one of that issuer's clientIds. None listed, no user logs in; service accounts still do. An OrganizationAccount is created with the app its creator signed in with; one created without an ID token with none, until an administrator is bound (POST /organizationaccounts/{id}/administrator), whose app is then added. Only an administrator adds or removes apps, and a replacement (PUT) that does not mention identityProviders keeps them. Issuers: https://accounts.google.com, https://appleid.apple.com, and up to 3 of the organization account's own OpenID Connect issuers, such as its Okta org (https://acme.okta.com or https://acme.okta.com/oauth2/default, or its custom URL domain). An own issuer is checked when it is added: an https URL without query, fragment or port, whose discovery document ({issuer}/.well-known/openid-configuration) names exactly that issuer, a jwks_uri on https and RS256 ID tokens; ID tokens are then verified with its published keys. Changing an own issuer (for example to a custom URL domain) gives its users new user accounts: a user account is found by issuer and subject.
identityProviders[].issuer URL Yes The identity provider's issuer (iss), exactly as its ID tokens carry it: https://accounts.google.com, https://appleid.apple.com, or the organization account's own OpenID Connect issuer, e.g. https://acme.okta.com/oauth2/default
identityProviders[].clientIds list of string Yes The client ids of the apps registered with the issuer whose ID tokens are accepted: Google's OAuth client ids, e.g. 1234-abc.apps.googleusercontent.com; for Apple, the Services ID of a web app (e.g. com.example.shop.web) and the bundle id of an iOS app (e.g. com.example.shop); for Okta, the app integration's client ID (e.g. 0oa1b2c3d4EXAMPLE)
verified boolean False while the OrganizationAccount, created without an ID token (zero-friction onboarding), has no administrator who signed in: it is then held to 50,000 requests a month. True once an administrator is bound (POST /organizationaccounts/{id}/administrator), or from the start when it was created with an ID token. Absent on OrganizationAccounts created before 2026-11-22, which count as verified. Set by the platform only: a write that sends it keeps the stored value.
verifiedAt date-time When the OrganizationAccount was verified. Set by the platform only.

REST API

Base URL https://apis.objectsgrid.com. Every request sends the X-ObjectsGrid-AccessPoint and Authorization: Bearer <access token> headers; see the REST API guide.

Operation Request
Create POST /organizationaccounts
Retrieve GET /organizationaccounts/{orgacctid}
Replace PUT /organizationaccounts/{orgacctid}
Delete DELETE /organizationaccounts/{orgacctid}
Bind an administrator to an unverified organization account POST /organizationaccounts/{orgacctid}/administrator

The OpenAPI contract, with every parameter and response: OrganizationAccounts (JSON).