Summary

The Organizations b2b provides an interface for creating and managing a organizations.


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
Note
companyNameThe name of the company. 
companyPhoneThe phone number for the company. 
companyTINEINThe Tax Number for the company. 
businessLicenceThe business license for the company. 
billingAddress1The street address of the company. 
billingAddress2The second part of the street address for the company. 
billingCityThe city that the company is in. 
billingStateThe state that the company is in. 
billingZipZip code for the company. 
countryCountry for the company. 
companyUrlWebsite url for the company. 
logoImageAddress of the logo image for the company. 
timezoneTimezone for the company. 
contactFirstNameFirst name of the primary contact at the company. 
contactLastNameLast name of the primary contact at the company. 
contactEmailEmail address for the primary contact at the company. 
contactPhonePhone number for the primary contact at the company. 
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"
        ]
    }
}

Organization Object

Field
Description
Note
nameThe name of the company. 
phoneNumberThe phone number for the company. 
streetAddress1The street address of the company. 
streetAddress2The second part of the street address for the company. 
cityThe city that the company is in. 
stateThe state that the company is in. 
zipCodeZip code for the company. 
countryCountry for the company. 
companyUrlWebsite url for the company. 
logoImageAddress of the logo image for the company. 
timezoneTimezone for the company. 
contactFirstNameFirst name of the primary contact at the company. 
logoImagePath to the logo image for this account. 
timezoneTimezone for this account.