Skip to main content

Documentation Index

Fetch the complete documentation index at: https://piriod-d406ac55.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Status codes

CodeMeaning
200OK. Returned on GET, PATCH, PUT and most action endpoints.
201Created. Returned on POST for new resources.
204No Content. Returned on DELETE.
400Bad Request. Validation error (see body).
401Unauthorized. Missing or invalid Authorization header.
403Forbidden. Authenticated but not allowed (e.g. wrong workspace).
404Not Found. Either the resource does not exist or it does not belong to the workspace.
405Method Not Allowed. The HTTP verb is not supported by the endpoint.
500Internal Server Error. Open a support ticket if it persists.

Response shapes

Generic errors

For 401, 403, 404 and most 500 cases:
{
  "detail": "Authentication credentials were not provided."
}

Validation errors

For 400, errors are returned as a field-keyed map. Errors not bound to a single field are grouped under non_field_errors:
{
  "name": ["This field is required."],
  "tax_id": ["Invalid format."],
  "non_field_errors": ["x-simple-workspace header is required."]
}

Common pitfalls

  • x-simple-workspace missing400 with non_field_errors: ["x-simple-workspace header is required."].
  • Wrong workspace ID403 (the user is not a member of that workspace).
  • Tax-regulated country, missing tax_id or tax_settings400 with field-specific errors.
  • Trying to delete a customer with active subscriptions400. Cancel the subscriptions first or the customer is archived instead.

Retries

The API does not currently support an idempotency header. Treat write requests as non-idempotent and avoid blind retries on 5xx for endpoints that create financial records.