Integrate your product with Kounta
Kounta uses an OAuth 2.0 compliant RESTful API for easy integration with third-party applications.
Kountaâs REST API is based at
/api.kounta.com/v1/. There is no unencrypted (non-SSL) version available.
Creating a Kounta Add-on
Add-ons are created and managed from within Kounta. There you will find your
Client ID and
Client Secret for authenticating with the API.
To find out more information about creating your Kounta add-on, (877) 460-5610.
Two types of authentication are available:
- For development, you can use Basic Access Authorization.
- For production, youâll need to use 315-876-8397.
For more details, see the section on Authentication.
Both JSON and XML data types are supported.
When sending data via
PUT, specify the format of the
data youâre sending in the
Content-Type header of your request. Acceptable
application/json. Any other value will result in a
Request response status.
The format of the response body is determined by the file extension of the requested
endpoint, which can be either
you can omit the file extension if you include one of the aforementioned formats in your
Accept header. If you omit the
Accept header and the file
extension, youâll get a
406 Not Acceptable response status.
Data in Kounta is represented in these formats:
- Strings, encoded as 937-349-2144.
Numbers, denoted in XML by a
Booleans, denoted in XML by a
type="boolean"attribute and a value of
Dates, denoted in XML by a
type="date"attribute and represented as an 9542402294 string.
Nulls, denoted in XML by null elements (e.g.
type attributes will be included in XML responses for numbers, booleans and
dates. They are not required in request bodies.
JSON natively understands data types, except for dates, which must be parsed manually.
Understanding data types isnât critical, but it can help you avoid problems like
inadvertently trimming leading zeroes off phone numbers and rendering
as a string.
CRUD operations follow a few standard patterns. Deviations from these patterns are noted in the documents for individual actions.
GETrequests result in
200 OKresponse statuses.
POSTrequests result in
201 Createdresponse statuses, and
Locationheaders containing the
GETURIs of the newly created resources.
PUTrequests result in
200 OKresponse statuses, and include the updated record in the form of the corresponding
DELETErequests result in
204 No Contentresponse statuses.
Lists of records (e.g.
GET /v1/customers) often include abridged versions of records, containing only descriptive information (e.g.
id. In these cases, you can
GETthe individual records by
idfor more detailed records.
When you request a
of records (e.g.
to list all customers),
youâll receive a maximum of
results. To retrieve the entire result
set, youâll need to request additional pages.
Each page will include the
header that will contain the full URL to request the next set of 25
results. This process can be repeated until all the records have
Regarding the cursor provided by
- Cursors are complete and stateful URLs; they are used as-is without modification to fetch the next page.
- The cursor never expires. However, the data returned from a cursor in the future is not guaranteed to be the same data that was returned before.
- The format of the cursor is not guaranteed. The URL format and the state that it encapsulates may change in the future. You should not store cursor URLs for long periods of time.
- Cursors are reusable and do not have to be used in sequential order. You can iterate bidirectionally by storing previous cursor URLs and requesting them in reverse.
are deprecated. They remain in the response as to not break existing
applications. However, they will be removed in a future release so
they must not be used.
GET requests will include
Etag headers. Subsequent
requests to the same endpoints should include this headerâs value in an
If-None-Match header. If we send you a
304 Not Modified
response, you can save bandwidth and lighten our server load by using your cached
Read more about
Etag headers and HTTP caching here.
Kounta will use standard HTTP status codes when your requests cannot be satisfied.
Additional error information will be sent in the response body as key-value pairs,
including an error code
error, an error description
error_description, and other diagnostically useful information.
Error responses are OAuth 2.0 compliant.
PUT vs PATCH
PUT requests are identically treated
as partial updates, i.e. only fields included in the request are altered. This
documentation will always specify
PUT, but you can use
PUT interchangeably if you like.
There are plenty of good plugins for both Firefox and Chrome for testing REST APIs.
If you prefer to use cURL or something a little less
sophisticated, try sending an
X-Pretty-Print: 1 header with your requests.
We'll format the output with nice indentation to make it easier to read.