RespireSoft InvoicingAPI docsReferenceWebhooks

Errors

A failed request answers with a problem document. The code never changes, the words may.

Errors use the media type application/problem+json (RFC 9457).

{
  "type": "https://invoicing.respiresoft.com/docs/api/errors#resource_missing",
  "title": "Not found",
  "status": 404,
  "code": "resource_missing",
  "detail": "There is no invoice with the id \"inv_x\" in this account.",
  "param": "id"
}

Statuses

StatusMeaning
400The request could not be understood, for example a bad limit or cursor.
401No key, or a wrong, revoked or expired key.
403The key may not do this: missing scope, or the feature is off for the business.
404No such object in this account (also for objects of another mode).
409The object is in the wrong state, or the same Idempotency-Key is still being processed.
413The request is too large.
422A field is wrong or unknown.
429Too many requests.
5xxOur side. Retry with the same Idempotency-Key.

Codes

CodeWhen
invalid_api_keyThe key is missing or unknown.
insufficient_scopeThe key lacks the scope the endpoint needs.
rate_limitedMore than 600 requests a minute.
resource_missingThe id does not exist in this account and mode.
validation_failedA field is invalid; see errors.
unknown_parameterA field the endpoint does not know. Unknown fields are refused, never ignored.
invalid_cursor, invalid_limit, invalid_type, invalid_statusA bad list parameter.
idempotency_key_requiredA POST without an Idempotency-Key header.
idempotency_key_reusedThe same key was used with a different request.
idempotency_in_progressThe first request with this key is still running.
invalid_stateThe object cannot do this now, for example running a plan that is paused. Commands that are refused use their reason as the code.
endpoint_disabledThe webhook endpoint is switched off; switch it on first.
not_replayableA test event cannot be replayed.
too_many_endpointsYou have the maximum of 20 webhook endpoints.
server_errorOur side. Retry; if it keeps happening send us the Request-Id.