Total Access Docs
Guides

Guides

Step-by-step integration tutorials and examples.

Guides

Practical tutorials for integrating with the Total Access platform.

Getting started

New to Total Access? Start here:

  1. Getting Started — Set up your API key and make your first request
  2. Authentication — Learn API keys vs JWT tokens
  3. Webhooks — Set up real-time event notifications

Available guides

GuideDescription
Module ContextScope webhooks and API keys to specific modules
Industry SolutionsAvailable industry solutions and how to use them with the Public Data API
WhatsApp IntegrationSend and receive WhatsApp Business messages
Accounting ExportSync to Xero, QuickBooks, and Sage
FormsBuild, submit, and export custom forms
Workflows & AutomationsAutomate business processes with triggers
IoT IntegrationsConnect and manage smart IoT devices
OAuth2 Developer PortalBuild and publish third-party apps
Payments & BillingManage payments, cards, and subscriptions
White Label & BrandingCustomise branding and domains
Node.js SDKUse the official Node.js SDK

Common integration patterns

Sync invoices from your system

  1. Create an outbound webhook for invoice.created events
  2. Store invoices in your local database
  3. Use the API to update invoice status when paid

Import bills from email

  1. Set up an inbound webhook for bill data
  2. Configure your email parser to forward parsed bill data
  3. Total Access will auto-match suppliers and route for approval

Real-time attendance sync

  1. Subscribe to employee.clocked_in and employee.clocked_out events
  2. Sync attendance records to your HR/payroll system
  3. Use the API to query historical attendance data

Fleet tracking integration

  1. Create an inbound webhook with vehicle_location type
  2. Configure your GPS trackers to POST location updates
  3. Use the Public Data API to query vehicle locations

Payment notification integration

  1. Create an inbound webhook with payment_notification type
  2. Configure your payment gateway to send notifications
  3. Total Access matches payments to invoices automatically

Code examples

Node.js

const TotalAccess = require('totalaccess-sdk');

const client = new TotalAccess({
  apiKey: process.env.TA_API_KEY,
  environment: 'production',
});

// List recent invoices
const invoices = await client.finance.invoices.list({
  limit: 10,
  sort: 'created_at:desc',
});

// Create a webhook
const webhook = await client.webhooks.create({
  url: 'https://your-app.com/webhooks/ta',
  events: ['invoice.created', 'invoice.paid'],
});

Python

import requests

API_BASE = "https://totalaccess.co.za/api/v1"
HEADERS = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json",
}

# List invoices
response = requests.get(f"{API_BASE}/finance/invoices", headers=HEADERS)
invoices = response.json()["data"]

# Create a webhook
webhook = requests.post(
    f"{API_BASE}/webhooks",
    headers=HEADERS,
    json={
        "url": "https://your-app.com/webhooks/ta",
        "events": ["invoice.created", "invoice.paid"],
    },
)

cURL

# List invoices
curl -X GET https://totalaccess.co.za/api/v1/finance/invoices \
  -H "Authorization: Bearer $TA_API_KEY"

# Create a webhook
curl -X POST https://totalaccess.co.za/api/v1/webhooks \
  -H "Authorization: Bearer $TA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-app.com/webhooks/ta",
    "events": ["invoice.created", "invoice.paid"]
  }'

More guides are being added. Have a specific integration scenario? Contact support and we'll add a guide for it.

On this page