openapi: 3.2.0 info: title: Karbonhq Business Cards 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 Business Cards 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: Business Cards description: View or update the Business Card attached to a Contact and/or Organization paths: /v3/BusinessCards/{BusinessCardKey}: get: operationId: getBusinessCardByKey tags: - Business Cards summary: Gets a single Business Card parameters: - required: true in: path name: BusinessCardKey example: 2tBHyXtJBxBy schema: type: string description: The Karbon-generated Business Card key description: Use the `GET` method on this endpoint to receive the details of a Business Card specified using the BusinessCardKey. responses: '200': description: Successful operation content: application/json: schema: allOf: - type: object properties: '@odata.context': type: string example: https://api.karbonhq.com/v3/$metadata#BusinessCards/$entity description: The information about Karbon controllers generating this response. - type: object properties: EntityType: type: string example: Organization enum: - Contact - Organization - ClientGroup description: The type of entity that this business card is connected to. EntityKey: type: string example: 2jHPZngklwxQ description: The unique key for the entity specified this business card is connected to - $ref: '#/components/schemas/BusinessCard' example: '@odata.context': https://api.karbonhq.com/v3/$metadata#BusinessCards/$entity '@odata.type': '#KarbonService.ClientGroupDTO' BusinessCardKey: 2tBHyXtJBxBy EntityType: Organization EntityKey: 2jHPZngklwxQ 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 '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/BusinessCard_Not_Found' '429': description: Rate Limit Exceeded content: application/json: schema: $ref: '#/components/schemas/RateLimitErrorMessage' put: operationId: updateBusinessCardByKey tags: - Business Cards summary: Updates a single Business Card parameters: - required: true in: path name: BusinessCardKey schema: type: string example: 2tBHyXtJBxBy description: The Karbon-generated Business Card key description: Use the `PUT` method on this endpoint to update the details of a Business Card specified using the BusinessCardKey. 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' '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: allOf: - type: object properties: EntityType: type: string example: Organization enum: - Contact - Organization - ClientGroup description: The type of entity that this business card is connected to. EntityKey: type: string example: 2jHPZngklwxQ description: The unique key for the entity specified this business card is connected to - $ref: '#/components/schemas/BusinessCardRequest' 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 '