This group of endpoints allows you to manage GL codes (accounting codes) for your business.
GL codes are used to classify expenses for bookkeeping export. Businesses with a connected accounting integration (Xero, MYOB, NetSuite, QuickBooks, Business Central) cannot create or delete GL codes via the API — those are managed by the integration sync. Businesses with a manual integration or no integration can freely create, update, and delete GL codes. A manual integration is automatically created on the first POST if none exists.
Returns a paginated list of GL codes for the given business.
Security
BearerAuth
GET
curl -i -X GET \
'https://public.letsweel.com/v1/businesses/123/accounting-codes?offset=50&limit=50' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "count": 100, "next": "limit=50&offset=50", "previous": null, "results": [ { … } ] }