{
  "info": {
    "name": "QuoteBill API 1.1.0",
    "description": "Make quotations and invoices in a QuoteBill account, read them, and work out document totals by country.\n\nSet the collection variable apiKey to a key from QuoteBill Company settings. Do not share or export a collection that holds a key.\n\nMade from https://quotebill.com/openapi.json; the guide is https://quotebill.com/en/developers/.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://quotebill.com/functions/v1/api"
    },
    {
      "key": "apiKey",
      "value": ""
    },
    {
      "key": "IdempotencyKey",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Account",
      "description": "The key.",
      "item": [
        {
          "name": "Check the key",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/ping",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "ping"
              ]
            },
            "description": "Answers {\"ok\": true} for a key that works. Any key.\n\noperationId: ping"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Catalogue",
      "description": "What the site publishes: kinds, templates, countries and their tax rates.",
      "item": [
        {
          "name": "List the kinds and templates",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/templates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "templates"
              ]
            },
            "description": "The kinds of document the API makes and the templates of those kinds. Any key. The example shows the first three templates.\n\noperationId: listTemplates"
          },
          "response": []
        },
        {
          "name": "List the countries, their currencies and published tax rates",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/countries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "countries"
              ]
            },
            "description": "Every country a document may name, with the currency and decimals its money is rounded to and the tax rate QuoteBill applies by default, from the catalogue the site publishes. A rate is a published rate to confirm, not tax advice. Any key. The example shows three countries.\n\noperationId: listCountries"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Documents",
      "description": "The member's own documents.",
      "item": [
        {
          "name": "List your documents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/documents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "documents"
              ],
              "query": [
                {
                  "key": "kind",
                  "value": "",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "",
                  "description": "Such as draft, sent or paid.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "25",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "",
                  "description": "The next_cursor of the page before, unchanged.",
                  "disabled": true
                }
              ]
            },
            "description": "Your own documents, however they were made, newest first: metadata only. Scope documents:read. Any other parameter is refused.\n\noperationId: listDocuments"
          },
          "response": []
        },
        {
          "name": "Make a document",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{IdempotencyKey}}",
                "description": "Remembered for 24 hours. The same key with a different request is refused (409 idempotency_key_reused).",
                "disabled": true
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"kind\": \"invoice\",\n  \"country\": \"KR\",\n  \"issue_date\": \"2026-10-04\",\n  \"due_date\": \"2026-11-03\",\n  \"customer\": {\n    \"name\": \"Acme Ltd\",\n    \"email\": \"billing@acme.example\",\n    \"address\": \"12 Harbour Road, Rotterdam\",\n    \"tax_id\": \"NL123456789B01\"\n  },\n  \"items\": [\n    {\n      \"description\": \"Website design\",\n      \"quantity\": 1,\n      \"unit_price\": 1500000\n    },\n    {\n      \"description\": \"Hosting (12 months)\",\n      \"quantity\": 12,\n      \"unit_price\": 10000\n    }\n  ],\n  \"notes\": \"Thank you for your business.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/v1/documents",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "documents"
              ]
            },
            "description": "Makes a draft in your cloud, the way the editor makes one, with your company details as the sender. It counts against your cloud document limit. Scope documents:create.\n\noperationId: createDocument"
          },
          "response": []
        },
        {
          "name": "Read one of your documents",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/documents/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "documents",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "doc-7c0b8a4e-3f1d-4a52-9d6e-0b2f5c1e8a77",
                  "description": ""
                }
              ]
            },
            "description": "The customer, the lines, the notes and the totals. A document that is not yours is a 404, as one that does not exist. Scope documents:read.\n\noperationId: getDocument"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Calculation",
      "description": "Figures worked out as a document's are, saved nowhere.",
      "item": [
        {
          "name": "Work out a document's figures without saving it",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"country\": \"DE\",\n  \"currency\": \"EUR\",\n  \"items\": [\n    {\n      \"description\": \"Design work\",\n      \"quantity\": 3,\n      \"unit_price\": 33.33,\n      \"discount\": {\n        \"type\": \"percent\",\n        \"value\": 10\n      }\n    },\n    {\n      \"description\": \"Printing\",\n      \"quantity\": 0.5,\n      \"unit_price\": 19.99\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/v1/calculate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "calculate"
              ]
            },
            "description": "The subtotal, the line discounts, the tax and the total that a document of this body would show, worked out by the code that works out a saved document's: the totals equal the totals POST /v1/documents answers with for the same body. Fields the request leaves out come from your account's settings, as for a document; send country, currency and tax_rate for an answer that does not depend on them. Nothing is saved. Any key; it counts against the key's limits. Prices are before tax.\n\noperationId: calculate"
          },
          "response": []
        }
      ]
    }
  ]
}
