Skip to content

API reference

List drafts

Invoicing API

GET/v1/drafts

Returns this company’s drafts, the most recently changed first, without their content. Fetch one draft for its invoice and settings.

Query parameters

  • kindstring
    One of invoice, quote, proforma.
  • limitinteger

Response

A 200 answer carries these fields.

  • draftsarray of objectRequired
    Show 7 child fields
    • idstring (uuid)Required
    • revisionintegerRequired

      Counted up by every save. Send it as If-Match when you save the draft.

    • kindstringRequired
      One of invoice, quote, proforma.
    • titlestring or nullRequired

      The buyer's name and the invoice number, as far as the draft has them.

    • originobject or nullRequired

      The stored invoice a follow-up was made from. Null for a draft written from scratch.

      Show 2 child fields
      • invoiceIdstring (uuid)Required
      • followUpstringRequired
        One of copy, correction, credit, next, final.
    • createdAtstring (date-time)Required
    • updatedAtstring (date-time)Required
  • hasMorebooleanRequired

Status codes

Status Meaning
200 The drafts.
400
401
501
GET/v1/drafts
Example
curl https://api.certinvo.com/v1/drafts \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const response = await fetch(`https://api.certinvo.com/v1/drafts`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

response = requests.get(
    "https://api.certinvo.com/v1/drafts",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "drafts": [
    {
      "id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
      "revision": 0,
      "kind": "invoice",
      "title": "string",
      "origin": {
        "invoiceId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
        "followUp": "copy"
      },
      "createdAt": "2026-09-17T09:30:00Z",
      "updatedAt": "2026-09-17T09:30:00Z"
    }
  ],
  "hasMore": true
}
Success response
GET
/v1/drafts
List drafts
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Query Parameters2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/drafts" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close