Release Notes

August 22, 2022

We have added a new endpoint to Karbon's public API that allow you to retrieve or update a single BusinessCard.

This document provides an overview of the Aug 2, 2022 release of Karbon's Public API.

In summary, we have created an API endpoint that makes it possible to retrieve or update a single

JSONCopied!
BusinessCard
.

  1. JSONCopied!
    GET Business Card by BusinessCardKey
  2. JSONCopied!
    PUT Business Card by BusinessCardKey

JSONCopied!
GET Business Card by BusinessCardKey

Endpoint:

JSONCopied!
https://api.karbonhq.com/v3/BusinessCards/{BusinessCardKey}

We have added a new endpoint that, when used with

JSONCopied!
GET
method, retrieves a Business Card using its
JSONCopied!
BusinessCardKey
.

To make an API call to this endpoint using

JSONCopied!
GET
method, replace {
JSONCopied!
BusinessCardKey}
parameter in the endpoint with a valid
JSONCopied!
BusinessCardKey
.

Note: You can still retrieve a

JSONCopied!
BusinessCard
through the
JSONCopied!
Contacts
,
JSONCopied!
Organizations
and
JSONCopied!
ClientGroups
APIs.

Example use case

You want to retrieve a Business Card associated with a Karbon entity. To receive the

JSONCopied!
BusinessCard
, use
JSONCopied!
GET
method on the following endpoint and replace
JSONCopied!
{BusinessCardKey}
with Karbon generated key unique to a Business Card.

Endpoint:

JSONCopied!
https://api.karbonhq.com/v3/BusinessCards/{BusinessCardKey}


JSONCopied!
PUT Business Card by BusinessCardKey

Endpoint:

JSONCopied!
https://api.karbonhq.com/v3/BusinessCards/{BusinessCardKey}

We have also enabled

JSONCopied!
PUT
method on the same endpoint, allowing you to update a Business Card using its
JSONCopied!
BusinessCardKey
.

To make an API call to this endpoint using

JSONCopied!
PUT
method:

  • Replace
    JSONCopied!
    {BusinessCardKey}
    parameter in the endpoint with a valid
    JSONCopied!
    BusinessCardKey
  • Ensure the request payload includes all
    JSONCopied!
    BusinessCard
    properties
    • Supply changes to the properties that you want to update
    • Supply original value to the properties that you don't want to update

Note

  • The
    JSONCopied!
    EntityType
    property of the
    JSONCopied!
    BusinessCard
    must match the entity (Contact, Organization or ClientGroup) it belongs to.
  • Setting the value of
    JSONCopied!
    IsPrimaryCard
    parameter will have no effect for Business Cards associated with Organizations, ClientGroups and Contacts.
  • A future version of this API endpoint will include validation for the
    JSONCopied!
    IsPrimaryCard
    property.
  • You can still update a
    JSONCopied!
    BusinessCard
    using
    JSONCopied!
    PUT
    method against Contacts, Organizations or ClientGroups API. However, those API endpoints require you to send a payload, containing a full data set for that entity (i.e., entity details, all other
    JSONCopied!
    BusinessCards
    and any
    JSONCopied!
    AccountingDetails
    ).
  • Updating multiple Business Cards using the Contacts API will set the first
    JSONCopied!
    BusinessCard
    as the primary card. In such scenario, it disregards the value of
    JSONCopied!
    IsPrimaryCard
    property for all objects within the
    JSONCopied!
    BusinessCards
    array.

Example use case

You want to update a Business Card associated with a Karbon entity. To update the

JSONCopied!
BusinessCard
, use
JSONCopied!
PUT
method on the endpoint given below. Replace
JSONCopied!
{BusinessCardKey}
with Karbon generated key unique to a Business Card and supply a request payload with all properties associated with the
JSONCopied!
BusinessCard
.

Endpoint:

JSONCopied!
https://api.karbonhq.com/v3/BusinessCards/{BusinessCardKey}