Organizations
Get an Organization
Get organization token is authorized for
get /organizations/{organizationId}Parameters
| Name | Type | In | Description |
|---|---|---|---|
organizationId | string | path | Organization ID |
Responses
200: OK response.Organization
{
"createdAt": "2012-08-08T02:35:21Z",
"currency": "SGD",
"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 /organizationsParameters
| Name | Type | In | Description |
|---|---|---|---|
after | string | query | The cursor to use for pagination. Do not use this field manually it will be automatically provided in the response headers (see Paging guide). |
query | string | query |
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"
},
{
"createdAt": "2012-08-08T02:35:21Z",
"currency": "AUD",
"id": "01H0S97D8RX4RBFHHTB1HE7SFR",
"name": "My Awesome Business",
"timezone": "Australia/Melbourne"
}
]Models
Organization
An organization
| Name | Type | Description |
|---|---|---|
| id | string | Unique organization ID |
| name | string | Display name of the organization |
| createdAt | string | Timestamp this org was created |
| currency | string(enum) | (optional) "AUD", "SGD", "GBP", "NZD", "USD" |
| timezone | string | (optional) Timezone this organization is in |
OrganizationTiny
| Name | Type | Description |
|---|---|---|
| id | string | Unique organization ID |
| name | string | Display name of the organization |