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


Example Response:

{
    "id": 218347,
    "name": "Zion Bikes",
    "streetAddress1": "123 Blue Lines Way",
    "streetAddress2": "",
    "city": "Bellingham",
    "state": "Washington",
    "zipCode": "99383",
    "country": "United States",
    "createdAt": "2023-03-14T10:59:44-07:00",
    "updatedAt": "2024-10-08T11:56:32-07:00",
    "phoneNumber": "3335556775",
    "companyUrl": "",
    "orgSource": "ACME",
    "integrationId": "ACS369077784",
    "externalId": "0013u00001lhLGfAAM",
    "externalImportId": "ACMEACS369077784",
    "version": 2,
    "externalVersion": 2,
    "addressId": 17705346
}


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
Required?
companyNameName of the organizationyes
companyPhonePhone number for the organization.yes
billingAddress1Street address of the organization yes
billingAddress2Second line of the street address of the organization
billingCityCity of the organizationyes
billingStateState/province of the organizationyes
billingZipZip/postal code of the organizationyes
countryCountry of the organization yes
companyUrlWebsite url of the organization 
contactFirstNameFirst name of the primary contact at the organizationyes- at least the primary contact is required
contactLastNameLast name of the primary contact at the organization yes- at least the primary contact is required
contactEmailEmail address for the primary contact at the organization yes- at least the primary contact is required
contactPhonePhone number for the primary contact at the organization yes- at least the primary contact is required
account.types List of account types.

 

Example Create Organization JSON


CreateOrganizationVo

{

    "companyName" : "Licks Ice Cream",

    "companyPhone" : "510.250.9740",

    "billingAddress1" : "2121 Yum St",

    "billingAddress2" : "Suite #28",

    "billingCity" : "Arcata",

    "billingState" : "CA",

    "billingZip" : "94301",

    "country" : "USA",

    "companyUrl" : "http://www.licks.edu",

    "contactFirstName" : "Rocky",

    "contactLastName" : "Road",

    "contactEmail" : "rocky.road@liks.com",

    "contactPhone" : "510.250.9740"

}