Summary
The Organizations b2b provides an interface for creating and managing a organizations. Organizations are used for groups and reseller bookings.
Get Organizations
GET /v2/b2b/organization
Get the available organizations
Response:
A list of OrganizationVo
Get Organization
GET /v2/b2b/organization/{id}
Gets a single organization by Id
Input
id: the organization id
Response:
An OrganizationVo object if successful
Create Organization
POST /v2/b2b/organization
Body:
A CreateOrganizationVo object
Response:
An OrganizationVo object if successful
Update Organization
PUT /v2/b2b/organization
Body:
An OrganizationVo object
Response:
An OrganizationVo object if successful
Objects
Create Organization Object
Field | Description |
---|---|
companyName | Name of the organization |
companyPhone | Phone number for the organization. |
companyTINEIN | The Tax Number for the company |
businessLicence | The business license for the company |
billingAddress1 | Street address of the organization |
billingAddress2 | Second line of the street address of the organization |
billingCity | City of the organization |
billingState | State/province of the organization |
billingZip | Zip/postal code of the organization |
country | Country of the organization |
companyUrl | Website url of the organization |
logoImage | Address of the logo image for the organization |
timezone | Timezone for the organization |
contactFirstName | First name of the primary contact at the organization |
contactLastName | Last name of the primary contact at the organization |
contactEmail | Email address for the primary contact at the organization |
contactPhone | Phone number for the primary contact at the organization |
account | The account you want to link to. |
account.tenantId | Tenant ID of the account you want to link to. |
account.types | List of account types. |
Example Create Organization JSON
CreateOrganizationVo
{ "companyName" : "ACME Ticketing" , "companyPhone" : "510.250.9740" , "companyTINEIN" : "557-72-9740" , "businessLicence" : "557-72-9740" , "billingAddress1" : "2121 University Avenue" , "billingAddress2" : "Suite #28" , "billingCity" : "Palo Alto" , "billingState" : "CA" , "billingZip" : "94301" , "country" : "USA" , "timezone" : "Pacific" , "contactFirstName" : "Albert" , "contactLastName" : "Einstein" , "contactEmail" : "genius@acmeticketing.com" , "contactPhone" : "510.250.9740" , "account" : { "tenantId" : 123, "types" : [ "reseller" ] } } |