← Back to home
Quick Start

First SQL Accounting API call — in 5 minutes.

Use the SQL Accounting connector when the client site runs SQL Accounting on a Windows machine with COM BizObjects access. The portal flow stays the same; the API path and local connector are brand-specific.

1
30 seconds

Get your API key

In your AcctBridge dashboard, go to API Keys and click Generate New Key. Your key looks like this:

lb_live_xxxxxxxxxxxxxxxxxxxx

Keys start with lb_live_. Keep it secret — it grants access to your client's accounting data.

2
10 seconds

Verify your tunnel is online

In the dashboard, go to Instances. The instance status must show Connected before API calls will succeed.

Tunnel shows Offline? The client's PC is not running or the local accounting agent service has stopped. Run the installer package from the portal as Administrator, then use Check connection to verify reachability.
3
Any language

Make your first call

List your client's SQL Accounting customers. In the sample, replace lb_live_YOUR_API_KEY with the key you generated in Step 1.

curl -X GET "https://api.acctbridge.com/v1/sqlacc/customer" \
  -H "Authorization: Bearer lb_live_YOUR_API_KEY"
200 OKResponse
{
  "data": [
    {
      "code": "300-A001",
      "companyName": "Sunrise Trading Sdn Bhd",
      "creditLimit": 50000.00,
      "currencyCode": "MYR",
      "area": "Kuala Lumpur",
      "isActive": true
    }
  ],
  "totalRecords": 42
}

That's it. The same pattern works for every endpoint — change the path and method.

Selected SQL Accounting endpoints

All paths are prefixed with https://api.acctbridge.com. Authenticate with Authorization: Bearer <key>.

Customers
GET/v1/sqlacc/customer?CODE={code}
GET/v1/sqlacc/customer
POST/v1/sqlacc/customer
PUT/v1/sqlacc/customer/{code}
DELETE/v1/sqlacc/customer/{code}
AR Invoices
GET/v1/sqlacc/customer-invoice?DOCNO={docno}
GET/v1/sqlacc/customer-invoice
POST/v1/sqlacc/customer-invoice
DELETE/v1/sqlacc/customer-invoice/{docno}
GET/v1/sqlacc/customer-invoice-item
AR Payments
GET/v1/sqlacc/customer-payment
POST/v1/sqlacc/customer-payment
POST/v1/sqlacc/customer-payment/knockoff
Credit Notes
GET/v1/sqlacc/customer-credit-note?DOCNO={docno}
GET/v1/sqlacc/customer-credit-note
POST/v1/sqlacc/customer-credit-note
DELETE/v1/sqlacc/customer-credit-note/{docno}
POST/v1/sqlacc/customer-credit-note/knockoff
Debit Notes
GET/v1/sqlacc/customer-debit-note?DOCNO={docno}
GET/v1/sqlacc/customer-debit-note
POST/v1/sqlacc/customer-debit-note
DELETE/v1/sqlacc/customer-debit-note/{docno}
Sales Orders
GET/v1/sqlacc/sales-order?DOCNO={docno}
GET/v1/sqlacc/sales-order
POST/v1/sqlacc/sales-order
DELETE/v1/sqlacc/sales-order/{docno}
GET/v1/sqlacc/sales-order-item
Suppliers
GET/v1/sqlacc/supplier?CODE={code}
GET/v1/sqlacc/supplier
POST/v1/sqlacc/supplier
PUT/v1/sqlacc/supplier/{code}
DELETE/v1/sqlacc/supplier/{code}
AP Invoices
GET/v1/sqlacc/purchase-invoice?DOCNO={docno}
GET/v1/sqlacc/purchase-invoice
POST/v1/sqlacc/purchase-invoice
DELETE/v1/sqlacc/purchase-invoice/{docno}
AP Payments
GET/v1/sqlacc/purchase-payment
POST/v1/sqlacc/purchase-payment
POST/v1/sqlacc/purchase-payment/knockoff
Stock Items
GET/v1/sqlacc/stock-item
Payment Methods
GET/v1/sqlacc/payment-method

Common errors

StatusCodeFix
401api_key_invalidRegenerate in Dashboard → API Keys
503tunnel_offlineRun the portal installer, then check the agent connection
429rate_limitedReduce bursts or polling frequency
502upstream_errorCheck agent logs on the client machine