BETA: Please note that the current endpoints are considered beta. It is possible there may be changes before these endpoints are finalised.

Organizations

Get an Organization

Get organization token is authorized for

get /organizations/{organizationId}

Parameters

NameTypeInDescription
organizationIdstringpathOrganization ID

Responses

200: OK response.Organization
{
  "createdAt": "2012-08-08T02:35:21Z",
  "currency": "NZD",
  "id": "01H0S97D8RX4RBFHHTB1HE7SFR",
  "name": "My Awesome Business",
  "timezone": "Australia/Melbourne"
}
404: not_found: Not Found response.

List Organizations

List all organizations based on a token

get /organizations

Parameters

NameTypeInDescription
afterstringqueryThe cursor to use for pagination. Do not use this field manually it will be automatically provided in the response headers (see Paging guide).
querystringquery

Responses

200: OK response.Organization[]
[
  {
    "createdAt": "2012-08-08T02:35:21Z",
    "currency": "AUD",
    "id": "01H0S97D8RX4RBFHHTB1HE7SFR",
    "name": "My Awesome Business",
    "timezone": "Australia/Melbourne"
  },
  {
    "createdAt": "2012-08-08T02:35:21Z",
    "currency": "AUD",
    "id": "01H0S97D8RX4RBFHHTB1HE7SFR",
    "name": "My Awesome Business",
    "timezone": "Australia/Melbourne"
  },
  {
    "createdAt": "2012-08-08T02:35:21Z",
    "currency": "AUD",
    "id": "01H0S97D8RX4RBFHHTB1HE7SFR",
    "name": "My Awesome Business",
    "timezone": "Australia/Melbourne"
  }
]

Models

Organization

NameTypeDescription
idstringUnique organization ID
namestringDisplay name of the organization
createdAtstringTimestamp this org was created
currencystring(enum)(optional) The currency used for purchases for this organization
"AUD", "SGD", "GBP", "NZD", "USD"
timezonestring(optional) Timezone this organization is in

OrganizationTiny

NameTypeDescription
idstringUnique organization ID
namestringDisplay name of the organization

In this article