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
companyNameName of the organization
companyPhonePhone number for the organization.
companyTINEINThe Tax Number for the company
businessLicenceThe business license for the company
billingAddress1Street address of the organization 
billingAddress2Second line of the street address of the organization
billingCityCity of the organization
billingStateState/province of the organization
billingZipZip/postal code of the organization
countryCountry of the organization 
companyUrlWebsite url of the organization 
logoImageAddress of the logo image for the organization
timezoneTimezone for the organization 
contactFirstNameFirst name of the primary contact at the organization
contactLastNameLast name of the primary contact at the organization 
contactEmailEmail address for the primary contact at the organization 
contactPhonePhone number for the primary contact at the organization 
accountThe account you want to link to.
account.tenantIdTenant 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",
    "companyUrl" "http://www.berkeley.edu",
    "timezone" "Pacific",
    "contactFirstName" "Albert",
    "contactLastName" "Einstein",
    "contactEmail" "genius@acmeticketing.com",
    "contactPhone" "510.250.9740",
    "account" : {
        "tenantId" : 123,
        "types" : [
            "reseller"
        ]
    }
}