Skip to main content
The pages of this section are generated from the OpenAPI contract the API serves at https://api.cufea.com/openapi.json, so they always match it. The descriptions of the contract are in English. Its version history is in the changelog.

Base URL

Authentication

Every endpoint except GET /v1/health takes Authorization: Bearer <key>. The /v1/partner routes take a partner key (cufea_partner_) and nothing else does. See Authentication.

Try it with a sandbox key

Use a cufea_sandbox_ key in the playground. It talks to Cufea’s simulated DIAN, so nothing you send there has legal effect. A cufea_test_ key reaches the DIAN test environment, and a cufea_prod_ key issues real invoices: the API does not know a request came from these docs.
  1. Get a sandbox key on the developer console.
  2. Open an endpoint, such as GET /v1/tenant, and choose Try it.
  3. Paste the key in the authorization field and send.
The playground sends the request through the docs platform’s proxy, so your browser does not call api.cufea.com directly. Your key travels in that request: keep production keys out of it.

Conventions

  • Amounts and quantities are decimal strings, such as "119000.00", never JSON numbers.
  • Errors are application/problem+json; see Errors.
  • Creates and sends take an Idempotency-Key header; see Idempotency.
  • Every keyed response carries X-RateLimit-* headers; see Rate limits.
  • Lists use cursor pagination; see Pagination.