FABRICAI REST API.

FABRICAI REST API.

FabricAI includes a simple REST API that can be used by developers to access data about customer companies, invoices and user analytics.

The access is based on an API key that is tied to a single user (uid) within the FabricAI portal.

The returned data is JSON and it based on Firebase realtime database format. This is easy structure but has a few quirks related on how e.g. arrays of data are stored.

Endpoint

The base address for API is

https://us-central1-invoicetagger.cloudfunctions.net/

(please, note that this endpoint will be subject to change)

Authorization

Each request to the API must include API key that is passed in the headers[’x-api-key’]. Please, contact FabricAI to get your own API key.

Get API user info

Endpoint: /apiV1userData

Method: GET

Response:
Object that holds the user info (whom the API key belongs to)

Get user companies

Endpoint: /apiV1userIntegrations

Method: GET

Response:

Array of customer company ids. Use these ids to get information about the company and/or get company invoices.

[ CUSTOMER_COMPANY_ID ]

Get customer company info

Endpoint: /apiV1integrationBasics

Method: POST

Body:

[{ integration: CUSTOMER_COMPANY_ID }]

Response:

Array of basic info for each customer

[{ integration: CUSTOMER_COMPANY_ID, data: { DATA_ABOUT_CUSTOMER_COMPANY }}]

Get customer company invoices

Endpoint: /apiV1integrationData

Method: GET

Body:

[{ integration: CUSTOMER_COMPANY_ID, filter: FILTER, startAt: START_AT, endAt: END_AT, equalTo: EQUAL_TO }]

Allowed FILTER: tripperStatus /* String, optional */

Allowed tripperStatus: COMPLETED, FAILED, PENDING, SKIPPED /* String, optional */

Response:

Array of customer invoices

[{”integration”: CUSTOMER_COMPANY_ID, ”data”: [ LIST OF INVOICES ]}]

KIRJANPIDON TEKOÄLY

OTA TEKOÄLY KÄYTTÖÖN NYT.

KIRJANPIDON TEKOÄLY

OTA SE KÄYTTÖÖN NYT.

Sovi ilmainen esittely