Organizations
Create Organization
client.organizations.create(OrganizationCreateParams { name, billing_email } body, RequestOptionsoptions?): Organization { id, billing_email, created_at, 9 more }
POST/v1/organizations
Get Organization Details
client.organizations.get(stringorganizationID, RequestOptionsoptions?): Organization { id, billing_email, created_at, 9 more }
GET/v1/organizations/{organization_id}
Update Organization
client.organizations.update(stringorganizationID, OrganizationUpdateParams { billing_email, name } body, RequestOptionsoptions?): Organization { id, billing_email, created_at, 9 more }
PATCH/v1/organizations/{organization_id}
List Organizations
client.organizations.list(OrganizationListParams { cursor, limit } query?, RequestOptionsoptions?): Cursor<Organization { id, billing_email, created_at, 9 more } >
GET/v1/organizations
Leave Organization
client.organizations.leave(stringorganizationID, RequestOptionsoptions?): void
POST/v1/organizations/{organization_id}/leave
OrganizationsMemberships
Get Organization Membership
client.organizations.memberships.get(stringmembershipID, MembershipGetParams { organization_id } params, RequestOptionsoptions?): OrganizationMembership { id, created_at, organization_id, 3 more }
GET/v1/organizations/{organization_id}/memberships/{membership_id}
List Organization Memberships
client.organizations.memberships.list(stringorganizationID, MembershipListParams { cursor, limit } query?, RequestOptionsoptions?): Cursor<OrganizationMembership { id, created_at, organization_id, 3 more } >
GET/v1/organizations/{organization_id}/memberships
OrganizationsAddress
Create Organization Address
client.organizations.address.create(stringorganizationID, AddressCreateParams { city, country, line1, 5 more } body, RequestOptionsoptions?): OrganizationAddress { id, city, country, 9 more }
POST/v1/organizations/{organization_id}/address
Get Organization Address
client.organizations.address.get(stringorganizationID, RequestOptionsoptions?): OrganizationAddress { id, city, country, 9 more }
GET/v1/organizations/{organization_id}/address
Update Organization Address
client.organizations.address.update(stringorganizationID, AddressUpdateParams { city, country, line1, 5 more } body, RequestOptionsoptions?): OrganizationAddress { id, city, country, 9 more }
PATCH/v1/organizations/{organization_id}/address