ballerinax/ Ballerina library



This is a generated connector for Reckon One API v2 OpenAPI specification. Reckon One is a new generation, modular cloud accounting solution that scales with your business – perfect for startups. This is version 2 of the Reckon One API.


Before using this connector in your Ballerina application, complete the following:


To use the Reckon One connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/ module into the Ballerina project.

import ballerinax/;

Step 2: Create a new connector instance

Create a one:ClientConfig with the Bearer_Token obtained, and initialize the connector with it.

one:ClientConfig clientConfig = {
    auth: {
        token: <Bearer_Token>
one:Client baseClient = check new Client(clientConfig);

Step 3: Invoke connector operation

  1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.

    Following is an example on how to list books that the current user has access to, using the connector.

    Gets a list of books that the current user has access to.

    public function main() returns error? {
        one:Books response = check baseClient->getBooks();
  2. Use bal run command to compile and run the Ballerina program.