Skip to content

Common errors ​

Guide to identifying and fixing the most frequent issues when integrating with the API.

Authentication ​

401 – Token or API key required ​

  • Cause: No authentication header or session cookie was sent.
  • Fix: Include the Authorization: Bearer <Key ID>:<Secret> or X-API-Key: <Key ID>:<Secret> header on every request. See Authentication.

401 – Invalid API key ​

  • Cause: Wrong Key ID, wrong Secret, or the key was revoked.
  • Fix: Double-check the Key ID and Secret from Settings > Integrations. If the Secret was lost, create a new key.

401 – API key expired ​

  • Cause: The key had an expiration date and it has passed.
  • Fix: Create a new key under Settings > Integrations and update your app with the new Key ID and Secret.

401 – API key not usable ​

  • Cause: Invalid, revoked or expired credentials, or the company is not in a state that can use that key.
  • Fix: Check Key ID/Secret, expiry and that the company has active administrators; if it persists, contact support. See Authentication.

401 – Expected API key but a web session is present ​

  • Cause: The client already has a signed-in abaco session; that session takes priority over the API key header.
  • Fix: Test with a client that has no session (script, Postman, private window without login). See Authentication.

Mutating requests from the browser (403) ​

Requests that change data from a browser must come from an allowed origin. Prefer server-to-server calls with an API key (curl, Postman, your backend); never put the Secret in the front end.

403 – Origin not allowed / request not validated ​

  • Cause: Call from a disallowed origin, or the request could not be validated.
  • Fix: Call from your backend with an API key. Contact abaco if you need origin support.

Permissions and web session (403) ​

403 – Web session required (WEB_SESSION_REQUIRED) ​

  • Cause: The route is web-app only (change company, user permissions, etc.), not for API key integrations.
  • Fix: Perform those actions while signed into abaco; there is no API key equivalent.

403 – Key management not allowed with API key (API_KEY_MANAGEMENT_FORBIDDEN) ​

  • Cause: You tried to manage API keys using an integration API key.
  • Fix: Keys are only created and revoked in the web app (Settings > Integrations on abaco.hn); that is not part of the documented integration API.

403 – DELETE not allowed with API key (API_KEY_DELETE_FORBIDDEN) ​

  • Cause: You sent a DELETE request using only an API key.
  • Fix: Remove the resource from the web app while signed in, or use cancel/reversal flows exposed as POST where applicable.

429 – Too many requests (RATE_LIMIT_EXCEEDED) ​

  • Cause: You exceeded the per–API key request limit in the time window (when enabled; see Rate limits).
  • Fix: Use backoff and lower concurrency; see the rate limits guide.

Endpoint and network ​

Timeout or connection refused ​

  • Cause: Wrong base URL, firewall, or unstable network.
  • Fix: Confirm you are using the correct endpoint (production: https://api.abaco.hn). Ensure your environment allows outbound HTTPS on port 443.

404 – Not Found on base path ​

  • Cause: Missing resource path or malformed base URL.
  • Fix: The base URL is only the origin (e.g. https://api.abaco.hn). Each request must use a full path, e.g. GET https://api.abaco.hn/business-partners.

Data and validation ​

400 – Bad Request / validation errors ​

  • Cause: Invalid body or parameters (missing required fields, wrong formats).
  • Fix: Check the response body; it usually includes per-field details. See the API reference for types and requirements.

403 – Forbidden (other) ​

  • Cause: Business permission denied, billing/SaaS blocking access, or another code in the response body.
  • Fix: Read the JSON message and code. If it is not one of the cases above, ensure the key belongs to the correct company and that the resource exists for that company.

Next steps ​