openapi: 3.2.0
info:
title: Karbonhq Organizations API
version: v3
contact:
name: API Support
url: https://developers.karbonhq.com/issues/
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
termsOfService: https://karbonhq.com/terms-of-use/
description: 'Operations tagged Organizations across 2 of this provider''s published API definitions: KarbonAPI.json, karbonhq-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.karbonhq.com
description: The production API server
security:
- ApiKeyAuth: []
BearerAuth: []
tags:
- name: Organizations
description: Create an organization to represent marriages and couples and client groups to represent families. Read more
paths:
/v3/Organizations:
get:
tags:
- Organizations
summary: Gets a list of Organizations
parameters:
- in: query
name: $filter
schema:
type: string
examples:
fullName:
value: FullName eq 'Sample Company'
summary: The full name of the organization equals 'Sample Company'
emailAddress:
value: EmailAddress eq 'karbon@example.com'
summary: The email address of the organization equals 'karbon@example.com'
contactTypeEquals:
value: ContactType eq 'Prospect'
summary: The ContactType of the organization equals 'Prospect'
contactTypeContains:
value: contains(ContactType, 'Client')
summary: The ContactType of the organization contains 'Client', would return Organizations with the ContactType 'Client', 'Client - VIP' and 'Inactive Client'
externalKey:
value: ExternalKey eq '123987456'
summary: The ExternalKey of the organization equals '123987456'. ExternalKey is the identifier from an integrated external system - XPM Client ID, Xero Contact ID, or QuickBooks Online Intuit Customer ID.
description: When this parameter is combined with the URI, this endpoint will return a subset of the Organizations that satisfy the `$filter` expression.
- in: query
name: $orderby
schema:
type: string
enum:
- FullName
- FullName desc
- LastModifiedDateTime
- LastModifiedDateTime desc
default: OrganizationKey
example: FullName
description: 'When this parameter is combined with the URI, this endpoint will return a list of Organizations, sorted by the available properties.
'
- $ref: '#/components/parameters/SkipRecords'
- $ref: '#/components/parameters/TopRecords'
description: 'Use the `GET` method on this endpoint to receive a paginated list of Organizations from your tenant. Using the query parameters available to this endpoint, you can also filter the list of Organizations by their full name, email address, or external key.
**Notes**
* This endpoint returns a maximum of 100 Organizations at once.
* If the query results in more than 100 Organizations, a link to the next set of the results will be given in the `@odata.nextLink` field of the response.
* The `$filter` query parameter supports 2 logical operators - `eq` and `and` - and 3 properties to help you form an expression. Usage examples below
Logical Operators
Purpose
FullName
EmailAddress
ExternalKey
eq
Full-text search
/v3/Organizations?$filter=FullName eq ''Sample Company''
/v3/Organizations?$filter=EmailAddress eq ''info@samplecompany.com''
/v3/Organizations?$filter=ExternalKey eq ''123987456''
and
Combines properties
/v3/Organizations?$filter=FullName eq ''Sample Company'' and EmailAddress eq ''info@samplecompany.com'''
operationId: getAllOrganizations
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/GetOrganizations'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Unsupported Property:
$ref: '#/components/examples/Unsupported_Property_Filter'
Unsupported Orderby Property:
$ref: '#/components/examples/Orderby_Unsupported_Property'
$top limit exceeded:
$ref: '#/components/examples/Limit_Exceeded_Top'
Unsupported Option:
$ref: '#/components/examples/Unsupported_option'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFound'
examples:
Unauthorized Access:
$ref: '#/components/examples/UnauthorizedAccess'
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorMessage'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Undefined Error:
$ref: '#/components/examples/elongated_5001'
post:
tags:
- Organizations
summary: Creates a new Organization
description: Use the `POST` method on this endpoint to create a new Organization in your tenant.
operationId: createOrganization
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/CreateOrganizationResponse'
example:
'@odata.context': https://api.karbonhq.com/v3/$metadata#Organizations/KarbonService.OrganizationDTO/$entity
'@odata.type': '#KarbonService.OrganizationDTO'
OrganizationKey: 2Nw8tnxwQCVf
FullName: Sample Company
ClientOwner: rodney.muller@samplecompany.com
ClientManager: jessica.tse@samplecompany.com
ContactType: Prospect
UserDefinedIdentifier: SAMPLECO
RestrictionLevel: Public
LastModifiedDateTime: '2022-07-05T07:30:13.7188114Z'
EntityDescription:
Text: John Doe is the Managing Director of this organization.
AccountingDetail:
ContactPermaKey: null
OrganizationPermaKey: 2Nw8tnxwQCVf
BirthDate: null
DeathDate: null
Salutation: null
Sex: null
FinancialYearEndDay: 11
FinancialYearEndMonth: 2
IncorporationDate: '2021-05-16T00:00:00Z'
IncorporationState: New South Wales
LegalName: Sample Company Pty. Ltd.
LineOfBusiness: Fast Fashion
EntityType: Partnership
TaxCountryCode: AU
TradingName: null
AnnualRevenue: 6000000.5
BaseCurrency: null
GstBasis: Accruals
GstPeriod: Monthly
IncomeTaxInstallmentPeriod: Quarterly
IsVATRegistered: null
OrganizationValuation: null
PaysTax: null
PrepareGST: null
ProvisionalTaxBasic: null
ProvisionalTaxRatio: null
RevenueModel: Markup
SalesTaxBasis: null
SalesTaxPeriod: null
Sells: Products
RegistrationNumbers:
- RegistrationNumber: 444 333 222
Type: Australian Company Number (ACN)
- RegistrationNumber: 444 353 222
Type: Australian Business Number (ABN)
Notes:
- Body: This is a sample note text.
Type: Basic
headers:
Location:
description: The endpoint URL to the newly created Organization.
schema:
type: string
example: https://api.karbonhq.com/v3/Organizations('2Nw8tnxwQCVf')/KarbonService.OrganizationDTO
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Unsupported Option:
$ref: '#/components/examples/Unsupported_option'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFound'
examples:
Unauthorized Access:
$ref: '#/components/examples/UnauthorizedAccess'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Permission Denied:
$ref: '#/components/examples/RestrictionLevel_Permission_Denied'
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorMessage'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Duplicate UDI:
$ref: '#/components/examples/Duplicate_UDI'
Undefined Error:
$ref: '#/components/examples/elongated_5001'
requestBody:
description: Refer to the table below for more information on each field in the request body.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateOrganization'
example:
FullName: Sample Company
ClientOwner: rodney.muller@samplecompany.com
ClientManager: jessica.tse@samplecompany.com
ContactType: Prospect
UserDefinedIdentifier: SAMPLECO
EntityDescription:
Text: John Doe is the Managing Director of this organization.
AccountingDetail:
ContactPermaKey: null
OrganizationPermaKey: 2Nw8tnxwQCVf
BirthDate: null
DeathDate: null
Salutation: null
Sex: null
FinancialYearEndDay: 11
FinancialYearEndMonth: 2
IncorporationDate: '2021-05-16T00:00:00Z'
IncorporationState: New South Wales
LegalName: Sample Company Pty. Ltd.
LineOfBusiness: Fast Fashion
EntityType: Partnership
TaxCountryCode: AU
TradingName: null
AnnualRevenue: 6000000.5
BaseCurrency: null
GstBasis: Accruals
GstPeriod: Monthly
IncomeTaxInstallmentPeriod: Quarterly
IsVATRegistered: null
OrganizationValuation: null
PaysTax: null
PrepareGST: null
ProvisionalTaxBasic: null
ProvisionalTaxRatio: null
RevenueModel: Markup
SalesTaxBasis: null
SalesTaxPeriod: null
Sells: Products
RegistrationNumbers:
- RegistrationNumber: 444 333 222
Type: Australian Company Number (ACN)
- RegistrationNumber: 444 353 222
Type: Australian Business Number (ABN)
Notes:
- Body: This is a sample note text.
Type: Basic
BusinessCards:
- BusinessCardKey: 2tBHyXtJBxBy
EntityType: Organization
EntityKey: 2Nw8tnxwQCVf
IsPrimaryCard: true
WebSites:
- www.website.one
- www.website.two
EmailAddresses:
- sample@example.com
- sample.two@example.com
OrganizationKey: ZGNmtYyLm4z
RoleOrTitle: COO
FacebookLink: facebook.com/sampleName
LinkedInLink: linkedin.com/sampleName
TwitterLink: twitter.com/sampleName
SkypeLink: skype.com/sampleName
Addresses:
- AddressKey: e150a05a-2dea-4292-8bc8-03398c9384e4
AddressLines: 45 Sample Street
City: Alexandria
StateProvinceCounty: NSW
ZipCode: '2015'
CountryCode: AU
Label: Physical
PhoneNumbers:
- PhoneNumberKey: 6e0b9ace-24b1-4328-a922-3b8be5ef5052
Number: '1234567890'
CountryCode: AU
Label: Work
ClientTeam:
- MemberKey: 2q2wx44pTBNh
MemberType: User
RoleType: ClientManager
servers:
- url: https://api.karbonhq.com
description: The production API server
/v3/Organizations/GetOrganizationByUserDefinedIdentifier(UserDefinedIdentifier='{UserDefinedIdentifier}'):
get:
tags:
- Organizations
summary: Gets an Organization using UserDefinedIdentifier
parameters:
- required: true
in: path
name: UserDefinedIdentifier
schema:
type: string
example: SAMPLECO
description: A unique identifier that you had created to identify this Organization. This parameter is **not** case sensitive.
- in: query
name: $expand
schema:
type: string
enum:
- BusinessCards
- ServiceTypes
example: BusinessCards
description: 'When this parameter is combined with the URI, this endpoint will also return the Business Cards or Service Types of the Contact Organization.
'
description: 'Use the `GET` method on this endpoint to receive the details of an Organization specified using the UserDefinedIdentifier.
Using the query parameter available to this endpoint, you can also include Business Card details of the Organization in the response.'
operationId: getOrganizationByUDI
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/WithBusinessCardsCreateOrganizationResponse'
example:
'@odata.context': https://api.karbonhq.com/v3/$metadata#Organizations/KarbonService.OrganizationDTO/$entity
'@odata.type': '#KarbonService.OrganizationDTO'
OrganizationKey: 2Nw8tnxwQCVf
FullName: Sample Company
ClientOwner: rodney.muller@samplecompany.com
ClientManager: jessica.tse@samplecompany.com
ContactType: Prospect
UserDefinedIdentifier: SAMPLECO
RestrictionLevel: Public
LastModifiedDateTime: '2022-07-05T07:30:13.7188114Z'
EntityDescription:
Text: John Doe is the Managing Director of this organization.
AccountingDetail:
ContactPermaKey: null
OrganizationPermaKey: 2Nw8tnxwQCVf
BirthDate: null
DeathDate: null
Salutation: null
Sex: null
FinancialYearEndDay: 11
FinancialYearEndMonth: 2
IncorporationDate: '2021-05-16T00:00:00Z'
IncorporationState: New South Wales
LegalName: Sample Company Pty. Ltd.
LineOfBusiness: Fast Fashion
EntityType: Partnership
TaxCountryCode: AU
TradingName: null
AnnualRevenue: 6000000.5
BaseCurrency: null
GstBasis: Accruals
GstPeriod: Monthly
IncomeTaxInstallmentPeriod: Quarterly
IsVATRegistered: null
OrganizationValuation: null
PaysTax: null
PrepareGST: null
ProvisionalTaxBasic: null
ProvisionalTaxRatio: null
RevenueModel: Markup
SalesTaxBasis: null
SalesTaxPeriod: null
Sells: Products
RegistrationNumbers:
- RegistrationNumber: 444 333 222
Type: Australian Company Number (ACN)
- RegistrationNumber: 444 353 222
Type: Australian Business Number (ABN)
Notes:
- Body: This is a sample note text.
Type: Basic
BusinessCards:
- BusinessCardKey: PVvnQdX1RCH
EntityType: Organization
EntityKey: 2Nw8tnxwQCVf
IsPrimaryCard: true
WebSites:
- www.website.one
- www.website.two
EmailAddresses:
- sample@example.com
- sample.two@example.com
OrganizationKey: null
RoleOrTitle: null
FacebookLink: facebook.com/samplecompany
LinkedInLink: linkedin.com/samplecompany
TwitterLink: twitter.com/samplecompany
SkypeLink: skype.com/samplecompany
Addresses:
- AddressKey: e150a05a-2dea-4292-8bc8-03398c9384e4
AddressLines: 45 Sample Street
City: Alexandria
StateProvinceCounty: NSW
ZipCode: '2015'
CountryCode: AU
Label: Physical
PhoneNumbers:
- PhoneNumberKey: 6e0b9ace-24b1-4328-a922-3b8be5ef5052
Number: '1234567890'
CountryCode: AU
Label: Work
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
UDI Is Empty:
$ref: '#/components/examples/UDI_Is_Empty'
Unsupported Option:
$ref: '#/components/examples/Unsupported_option'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFound'
examples:
Unauthorized Access:
$ref: '#/components/examples/UnauthorizedAccess'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
UDI Not Found:
$ref: '#/components/examples/UDI_Not_Found_Organization'
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorMessage'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Undefined Error:
$ref: '#/components/examples/elongated_5001'
servers:
- url: https://api.karbonhq.com
description: The production API server
/v3/Organizations/{Organizationkey}:
get:
tags:
- Organizations
summary: Gets an Organization using Organizationkey
parameters:
- name: Organizationkey
in: path
required: true
description: The Karbon-generated Organization key
schema:
type: string
example: 2Nw8tnxwQCVf
- in: query
name: $expand
schema:
type: string
examples:
BusinessCards:
value: BusinessCards
summary: Include the Business Card for the Organization the API response
ClientTeam:
value: ClientTeam
summary: Include the Client Team assigned to the Organization in the API response
Contacts:
value: Contacts
summary: Include the Contacts related to the Organization in the API response
ServiceTypes:
value: ServiceTypes
summary: Include the Service Types assigned to the Organization in the API response
BusinessCardAndClientTeam:
value: BusinessCard,ClientTeam
summary: Include the Business Card and the Client Team assigned to the Organization in the API response
description: 'When this parameter is combined with the URI, this endpoint will also return Business Cards, Client Team, Contacts and/or Service Types associated with the Organization. Multiple properties can be returned by specifying a comma separated list.
'
description: 'Use the `GET` method on this endpoint to receive the details of an Organization specified using the `Organizationkey`.
Using the query parameter available to this endpoint, you can also include the Business Card details of the Organization in the response.'
operationId: getOrganizationByID
responses:
'200':
description: Successful operation
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/WithBusinessCardsCreateOrganizationResponse'
- type: object
properties:
Contacts:
$ref: '#/components/schemas/ContactsCardList'
- type: object
properties:
ClientTeam:
$ref: '#/components/schemas/ClientTeam'
example:
'@odata.context': https://api.karbonhq.com/v3/$metadata#Organizations/KarbonService.OrganizationDTO/$entity
'@odata.type': '#KarbonService.OrganizationDTO'
OrganizationKey: 2Nw8tnxwQCVf
FullName: Sample Company
ClientOwner: rodney.muller@samplecompany.com
ClientManager: jessica.tse@samplecompany.com
ContactType: Prospect
UserDefinedIdentifier: SAMPLECO
RestrictionLevel: Public
LastModifiedDateTime: '2022-07-05T07:30:13.7188114Z'
EntityDescription:
Text: John Doe is the Managing Director of this organization.
AccountingDetail:
ContactPermaKey: null
OrganizationPermaKey: 2Nw8tnxwQCVf
BirthDate: null
DeathDate: null
Salutation: null
Sex: null
FinancialYearEndDay: 11
FinancialYearEndMonth: 2
IncorporationDate: '2021-05-16T00:00:00Z'
IncorporationState: New South Wales
LegalName: Sample Company Pty. Ltd.
LineOfBusiness: Fast Fashion
EntityType: Partnership
TaxCountryCode: AU
TradingName: null
AnnualRevenue: 6000000.5
BaseCurrency: null
GstBasis: Accruals
GstPeriod: Monthly
IncomeTaxInstallmentPeriod: Quarterly
IsVATRegistered: null
OrganizationValuation: null
PaysTax: null
PrepareGST: null
ProvisionalTaxBasic: null
ProvisionalTaxRatio: null
RevenueModel: Markup
SalesTaxBasis: null
SalesTaxPeriod: null
Sells: Products
RegistrationNumbers:
- RegistrationNumber: 444 333 222
Type: Australian Company Number (ACN)
- RegistrationNumber: 444 353 222
Type: Australian Business Number (ABN)
Notes:
- Body: This is a sample note text.
Type: Basic
BusinessCards:
- BusinessCardKey: PVvnQdX1RCH
EntityType: Organization
EntityKey: 2Nw8tnxwQCVf
IsPrimaryCard: true
WebSites:
- www.website.one
- www.website.two
EmailAddresses:
- sample@example.com
- sample.two@example.com
OrganizationKey: null
RoleOrTitle: null
FacebookLink: facebook.com/samplecompany
LinkedInLink: linkedin.com/samplecompany
TwitterLink: twitter.com/samplecompany
SkypeLink: skype.com/samplecompany
Addresses:
- AddressKey: e150a05a-2dea-4292-8bc8-03398c9384e4
AddressLines: 45 Sample Street
City: Alexandria
StateProvinceCounty: NSW
ZipCode: '2015'
CountryCode: AU
Label: Physical
PhoneNumbers:
- PhoneNumberKey: 6e0b9ace-24b1-4328-a922-3b8be5ef5052
Number: '1234567890'
CountryCode: AU
Label: Work
Contacts:
- ContactKey: 443pbkv8Vx3Y
FullName: Qutubuddin Musekhan
PreferredName: Qutub
Salutation: Dr
ClientOwner: null
ClientManager: null
Address: null
EmailAddress: qutub@company.com
PhoneNumber: 123-456-7890
RoleOrTitle: CIO
UserDefinedIdentifier: HD567
LastModifiedDateTime: '2022-02-03T03:34:11Z'
ClientTeam:
- MemberKey: JTphCpQqQYg
MemberType: User
RoleType: ClientOwner
- MemberKey: nRML2ngs7WJ
MemberType: User
RoleType: ClientManager
- MemberKey: 3fv7lflmd1Z7
MemberType: User
RoleType: UserDefinedRole2
- MemberKey: 3v9YJmt55hLY
MemberType: User
RoleType: UserDefinedRole1
- MemberKey: 3zdQh89xCmZM
MemberType: User
RoleType: null
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Unsupported Property:
$ref: '#/components/examples/Unsupported_Property_Filter'
Unsupported Orderby Property:
$ref: '#/components/examples/Orderby_Unsupported_Property'
Unsupported Option:
$ref: '#/components/examples/Unsupported_option'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFound'
examples:
Unauthorized Access:
$ref: '#/components/examples/UnauthorizedAccess'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Key Not Found:
$ref: '#/components/examples/Organization_Key_Not_Found_404'
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorMessage'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Undefined Error:
$ref: '#/components/examples/elongated_5001'
put:
tags:
- Organizations
summary: Updates an Organization (Full)
parameters:
- required: true
in: path
name: Organizationkey
schema:
type: string
example: 2Nw8tnxwQCVf
description: The Karbon-generated Organization key
description: 'Use the `PUT` method on this endpoint to update full details of an Organization specified using the `Organizationkey`.
Using the query parameter `$expand` with this endpoint, you can also update the Business Card details of the Organization.
**Note:** When updating business cards, you must include `BusinessCardKey`, `EntityType` and `EntityKey` properties for existing Business Cards - or the existing card and any associated Client Requests may be removed.
**BusinessCards is optional:** If the `BusinessCards` array is omitted from the request body, the existing Business Cards on the Organization are left untouched. Include the `BusinessCards` array only when you intend to update it.
**RegistrationNumber null/empty values delete the entry:** If a `RegistrationNumbers` entry is included with a null, empty, or whitespace `RegistrationNumber` value, any existing registration number of that `Type` is deleted. If no entry exists for that `Type`, the request is a no-op. Non-blank values continue to upsert as before.'
operationId: putOrganizationByID
responses:
'204':
description: No Content
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Incorrect or Missing Data:
$ref: '#/components/examples/Missing_Update_Data'
Unsupported Option:
$ref: '#/components/examples/Unsupported_option'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFound'
examples:
Unauthorized Access:
$ref: '#/components/examples/UnauthorizedAccess'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Permission Denied:
$ref: '#/components/examples/RestrictionLevel_Permission_Denied'
'404':
description: Resource Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Resource Not Found:
$ref: '#/components/examples/HTTP_Resource_Not_Found'
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorMessage'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Non existent Key:
$ref: '#/components/examples/Shortened_5001'
Undefined Error:
$ref: '#/components/examples/elongated_5001'
'409':
description: Conflict — the resource was modified by another request. Refetch the latest version and retry.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Stale Object State:
$ref: '#/components/examples/Conflict_StaleObjectState'
requestBody:
description: Refer to the table below for more information on each field in the request body.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateOrganization'
example:
FullName: Sample Company
ClientOwner: rodney.muller@samplecompany.com
ClientManager: jessica.tse@samplecompany.com
ContactType: Client
UserDefinedIdentifier: SAMPLECO
EntityDescription:
Text: John Doe is the Managing Director of this organization.
AccountingDetail:
ContactKey: null
OrganizationKey: SCwCq2M9pFm
BirthDate: null
DeathDate: null
Salutation: null
Sex: null
FinancialYearEndDay: 31
FinancialYearEndMonth: 3
IncorporationDate: null
IncorporationState: null
LegalName: The Sample Company
LineOfBusiness: Manufacturing
EntityType: Corporation
TaxCountryCode: US
TradingName: null
AnnualRevenue: 10000000
BaseCurrency: null
GstBasis: null
GstPeriod: null
IncomeTaxInstallmentPeriod: null
IsVATRegistered: null
OrganizationValuation: 0
PaysTax: null
PrepareGST: null
ProvisionalTaxBasis: null
ProvisionalTaxRatio: null
RevenueModel: null
SalesTaxBasis: null
SalesTaxPeriod: null
Sells: null
RegistrationNumbers:
- RegistrationNumber: '123456789'
Type: Tax ID
Notes:
- Body: Example text
Type: Basic
BusinessCards:
- BusinessCardKey: 2tBHyXtJBxBy
EntityType: Organization
EntityKey: SCwCq2M9pFm
IsPrimaryCard: true
WebSites:
- www.website.one
- www.website.two
EmailAddresses:
- sample@example.com
- sample.two@example.com
OrganizationKey: null
RoleOrTitle: null
FacebookLink: facebook.com/sampleName
LinkedInLink: linkedin.com/sampleName
TwitterLink: twitter.com/sampleName
SkypeLink: skype.com/sampleName
Addresses:
- AddressKey: e150a05a-2dea-4292-8bc8-03398c9384e4
AddressLines: 45 Sample Street
City: Alexandria
StateProvinceCounty: NSW
ZipCode: '2015'
CountryCode: AU
Label: Physical
PhoneNumbers:
- PhoneNumberKey: 6e0b9ace-24b1-4328-a922-3b8be5ef5052
Number: '1234567890'
CountryCode: AU
Label: Work
ClientTeam:
- MemberKey: 2q2wx44pTBNh
MemberType: User
RoleType: ClientManager
patch:
tags:
- Organizations
summary: Updates an Organization (Partial)
parameters:
- required: true
in: path
name: Organizationkey
schema:
type: string
example: 2Nw8tnxwQCVf
description: The Karbon-generated Organization key
- required: false
in: header
name: Prefer
schema:
type: string
example: return=representation
description: Return the record after it has been updated
description: 'Use the `PATCH` method on this endpoint to update partial details of an Organization specified using the `Organizationkey`.
This method **only supports** editing the `FullName` and `RestrictionLevel` properties.'
operationId: patchOrganizationByID
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
'@odata.context':
type: string
description: The information about Karbon controllers generating this response.
'@odata.type':
type: string
description: The information about Karbon Objects generating this response.
OrganizationKey:
type: string
description: A Karbon-generated value that is used to identify the Organization
FullName:
type: string
description: The full name of the Organization
ClientOwner:
type: string
description: The team member in your firm who looks after client relationship or is responsible for the vast majority of the work of the clients in this Organization. You can only use the UserKey or the email address of an existing team member.
ClientManager:
type: string
description: The team member in your firm who manages the work for the clients in this Organization. You can only use the UserKey or the email address of an existing team member.
ContactType:
type: string
description: The Contact Type for this Organization. You can only use existing Contact Type.
UserDefinedIdentifier:
type: string
description: A unique key that you can use to identify this Organization.
RestrictionLevel:
type: string
description: 'The privacy level for this Organization.
Public Organization can be managed by anyone in the firm
Private Organization can only be managed by the [Client Team](https://help.karbonhq.com/en/articles/1524707-create-a-client-team). Basic details (name of the Organization and the Work Items) related to such Organization are visible to anyone in the firm.
Hidden Organization are only be visible to and managed by the [Client Team](https://help.karbonhq.com/en/articles/1524707-create-a-client-team).
'
default: Public
enum:
- Public
- Private
- Hidden
LastModifiedDateTime:
type: string
format: date-time
description: The date and time at which this Contact was last modified.
example: '2022-07-05T07:30:13.7188114Z'
EntityDescription:
type: object
properties:
Text:
type: string
description: Free-form text that can be used to add more information about the Organization
example: Birthday on June 23.
AccountingDetail:
type:
- string
- 'null'
description: The accounting details associated with the Organization. This property will be `null`.
example:
'@odata.context': https://api.karbonhq.com/v3/$metadata#Organizations/KarbonService.OrganizationDTO/$entity
'@odata.type': '#KarbonService.OrganizationDTO'
OrganizationKey: 2Nw8tnxwQCVf
FullName: Sample Company
ClientOwner: rodney.muller@samplecompany.com
ClientManager: jessica.tse@samplecompany.com
ContactType: Prospect
UserDefinedIdentifier: SAMPLECO
RestrictionLevel: Public
LastModifiedDateTime: '2022-07-05T07:30:13.7188114Z'
EntityDescription:
Text: John Doe is the Managing Director of this organization.
AccountingDetail: null
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Incorrect or Missing Data:
$ref: '#/components/examples/Missing_Update_Data'
Unsupported Option:
$ref: '#/components/examples/Unsupported_option'
Invalid Property:
$ref: '#/components/examples/Invalid_Property'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFound'
examples:
Unauthorized Access:
$ref: '#/components/examples/UnauthorizedAccess'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Permission Denied:
$ref: '#/components/examples/RestrictionLevel_Permission_Denied'
'404':
description: Resource Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFound'
examples:
Key Not Found:
$ref: '#/components/examples/ResourceNotFound'
'429':
description: Rate Limit Exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/RateLimitErrorMessage'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Non existent Key:
$ref: '#/components/examples/Shortened_5001'
Undefined Error:
$ref: '#/components/examples/elongated_5001'
'409':
description: Conflict — the resource was modified by another request. Refetch the latest version and retry.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessages'
examples:
Stale Object State:
$ref: '#/components/examples/Conflict_StaleObjectState'
requestBody:
description: Refer to the table below for more information on each field in the request body.
required: true
content:
application/json:
schema:
type: object
properties:
FullName:
type: string
description: The full name of the Organization
example: Sample Company Pty. Ltd.
servers:
- url: https://api.karbonhq.com
description: The production API server
components:
examples:
Unsupported_option:
description: The error returned when the query option in a request is not allowed for by the API
value:
error:
code: '4002'
message: Query option '