QuickInvoice · A product by Up2Date Software

For developers · API v1

API Documentation

REST API for integrating QuickInvoice with external apps: issue invoices, read customers and products, receive signed webhooks. Base URL: https://quickinvoice.ro/api/v1

Developers reviewing a software integration
Illustrative image
On this page

Introduction

All requests use JSON and are isolated to the company the API key belongs to. Rate limit: 120 requests/minute per key. Keys are generated from Dashboard → Settings → API & Integrations.

Authentication

Send the key (format qi_live_…) in any of these headers:

Authorization: Bearer qi_live_...
X-Api-Key: qi_live_...
# Test connection
curl https://quickinvoice.ro/api/v1/ping -H "X-Api-Key: qi_live_..."
# → { "ok": true, "company": "SC Exemplu SRL", "taxCode": "RO12345678", "apiVersion": "v1" }

GraphQL: request only what you need

For selective reads, POST to /api/graphql with the same API key. Invoices, customers, contracts and products/services are available as paginated lists or by ID. The key determines the company; its creator’s current permissions are rechecked on every request.

Choose key permissions in Settings → API & Integrations. New keys default to read-only: invoices:read, customers:read, contracts:read and products:read. Invoice creation (invoices:write), payments (payments:write), e-invoicing (spv:submit) and explicit customer creation (customers:write) are enabled separately. Relations, financial summaries and full REST responses may require additional read scopes. The creator’s current permissions still apply. The credits:write permission for requesting and applying credit is granted explicitly; existing keys do not receive it automatically.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"query Integration($page:Int!,$limit:Int!){ invoices(page:$page,limit:$limit){ data{id invoiceNumber totalAmount currency} meta{page totalPages} } products(limit:10){ data{id sku price currency} } }","variables":{"page":1,"limit":10}}'

Decimal fields are exact decimal strings (for example "121.5"), without automatic floating-point conversion. Request relations and meta.total or meta.totalPages explicitly when needed.

Maximum 50 rows/page, page 10,000, 20 root fields, depth 8 and complexity 5,000. Shared REST/GraphQL budget: 120 requests/minute/key, coordinated through Redis across instances using the same connection and namespace.

Always check errors[].extensions.code, including HTTP 200 responses. Invalid requests may return 400. Authentication/access errors use UNAUTHENTICATED/FORBIDDEN and may have HTTP 200; rate limiting returns HTTP 429 and TOO_MANY_REQUESTS. If Redis is unavailable, you receive HTTP 503 and SERVICE_UNAVAILABLE, without a local fallback. Do not send keys in URLs or combine JWT and API-key credentials.

Download the authenticated SDL from GET /api/v1/graphql/schema; introspection is disabled. Contract details and financial commands are available through GraphQL. Explicit customer creation retains its REST route.

Issue and collect: issueInvoice requires invoices:write; recordPayment requires payments:write and a current OWNER/MANAGER role. Request only an operation receipt if needed; selecting invoice also requires invoices:read, and invoice.customer requires customers:read, checked before writing. Existing calculations, audit and service rules are reused. This batch issues native invoices and records manual payments (CASH, CARD_TERMINAL, BANK_TRANSFER); it does not submit invoices to SPV.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation Issue($input:IssueInvoiceInput!){issueInvoice(input:$input){invoiceId replayed invoice{invoiceNumber totalAmount currency}}}","variables":{"input":{"idempotencyKey":"__IDEMPOTENCY_KEY__","customerName":"Client exemplu","currency":"RON","items":[{"description":"Serviciu","quantity":1,"unitPrice":"100","taxRate":21}]}}}'
curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation Collect($input:RecordPaymentInput!){recordPayment(input:$input){invoiceId paymentId replayed}}","variables":{"input":{"idempotencyKey":"__IDEMPOTENCY_KEY__","invoiceId":"__INVOICE_ID__","amount":"10","method":"BANK_TRANSFER"}}}'

Replace __IDEMPOTENCY_KEY__ with a unique 1–200 character key per operation and __INVOICE_ID__ with the target invoice. Retry with the same key and input, including after a timeout or response error: the operation may already be committed. CONFLICT means the key was reused with different data. Retry invoice issuance through the same GraphQL channel; reusing an issuance key on REST causes a conflict. Manual payments share their identity across REST/GraphQL.

Send DecimalInput as strings ("100.25"), without exponents or JSON numbers: prices allow up to 6 decimals, discounts and payments 2, exchange rates 8. Values must fit the existing financial service precision; payment amounts must be positive. Maximum 100 invoice lines, one root mutation per request and 64,000 characters for variables. HTTP 200 alone does not mean success: check errors before using data.

Read contract instalments with paymentSchedules(contractId, page, limit), paymentSchedule(id) or contract.paymentSchedules(limit). Request meta.totalPages to traverse the full calendar; the contract relation previews 20 rows by default, capped at 50. amount and paidAmount are net in the schedule currency; invoice amounts are gross. dueDate is the estimate; confirmedDueDate is the confirmed due date. contracts:read permits calendar access; selecting invoice also requires invoices:read, and invoice.customer requires customers:read.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"query Calendar($contractId:ID!,$page:Int!){paymentSchedules(contractId:$contractId,page:$page,limit:20){data{id scheduleNumber amount paidAmount currency dueDate confirmedDueDate status invoice{invoiceNumber totalAmount paidAmount}} meta{total totalPages}}}","variables":{"contractId":"__CONTRACT_ID__","page":1}}'

For an already confirmed instalment, issueScheduleInvoice requires invoices:write + contracts:read and a current OWNER/MANAGER role. Replace __CONTRACT_ID__ and __SCHEDULE_ID__. The instalment is the stable identity: the same instalment and series return the same invoice, including across the internal REST flow and GraphQL; do not supply a new idempotency key. Changing the series on retry causes CONFLICT. Clients cannot override source amounts, VAT, currency or due dates. Confirm the condition through the existing workflow before issuing; collections use recordPayment and the shared ledger. Issuance keeps the FACT series unless you explicitly choose another, matching the existing contract workflow.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation IssueTranche($input:IssueScheduleInvoiceInput!){issueScheduleInvoice(input:$input){scheduleId invoiceId replayed}}","variables":{"input":{"scheduleId":"__SCHEDULE_ID__","series":"FACT"}}}'

Applying credit to the replacement invoice requires credits:write and a current OWNER/MANAGER role. Prepare the credit note and regularization through the existing workflow. Replace __CREDIT_NOTE_ID__ and __CREDIT_KEY__ (a unique key, up to 100 characters), keep the amount as a string with up to 2 decimals and provide 10–4,000 characters of evidence. requestCreditApplicationApproval only requests approval; voting and delegation remain in the internal interface with a distinct reviewer.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation RequestCredit($input:CreditApplicationApprovalInput!){requestCreditApplicationApproval(input:$input){id status}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","amount":"100","idempotencyKey":"__CREDIT_KEY__","evidence":"Verificare documentata a aplicarii creditului"}}}'

Replace __APPROVAL_ID__ with the returned ID and track your own request with creditApplicationApproval(id). Once approved, apply the exact same amount, evidence and key through applyInvoiceCredit. Changed balances or policy may invalidate approval; execution performs the final check. Company policy and threshold determine when approval is required. A minimal receipt requires only credits:write; application { ... } also needs invoices:read, and invoice.customer needs customers:read. creditApplication(id) provides selective reads with invoices:read. Applying credit does not record new cash: invoice paidAmount remains the cash collected.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"query CreditStatus($id:ID!){creditApplicationApproval(id:$id){id status consumedAt}}","variables":{"id":"__APPROVAL_ID__"}}'
curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation ApplyCredit($input:ApplyInvoiceCreditInput!){applyInvoiceCredit(input:$input){applicationId replayed}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","amount":"100","idempotencyKey":"__CREDIT_KEY__","evidence":"Verificare documentata a aplicarii creditului","approvalId":"__APPROVAL_ID__"}}}'

After a timeout or response error, retry application with the same key and data. Internal REST and GraphQL share application identity regardless of JSON property order; a different amount or evidence causes CONFLICT. Do not automatically request a new approval after application. Status queries are limited to your own requests and expose no raw proposal, votes or private documents.

Regularization links an issued credit note to its replacement invoice without moving cash. Explicitly enable credits:regularize, then use requestCreditRegularizationApproval and regularizeCreditNote with the same documents and evidence (10–4,000 characters). Replace __CREDIT_NOTE_ID__, __REPLACEMENT_ID__ and __APPROVAL_ID__. Read your request status with creditRegularizationApproval(id). There is no idempotencyKey: the credit note identifies regularization; different documents or evidence on retry cause CONFLICT.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation RequestRegularization($input:CreditRegularizationApprovalInput!){requestCreditRegularizationApproval(input:$input){id status}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","replacementInvoiceId":"__REPLACEMENT_ID__","evidence":"Verificare documentata a regularizarii fiscale"}}}'
curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation Regularize($input:RegularizeCreditNoteInput!){regularizeCreditNote(input:$input){regularizationId replayed}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","replacementInvoiceId":"__REPLACEMENT_ID__","evidence":"Verificare documentata a regularizarii fiscale","approvalId":"__APPROVAL_ID__"}}}'

Releasing a credit application explicitly requires credits:release. Request approval with requestCreditReleaseApproval, track creditReleaseApproval(id), then execute releaseInvoiceCredit with __APPLICATION_ID__ and the approved evidence. The application identifies the operation; retrying an already committed release returns replayed=true and preserves the first evidence, even if new evidence differs. No refund or new cash collection is created.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation RequestRelease($input:CreditReleaseApprovalInput!){requestCreditReleaseApproval(input:$input){id status}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","applicationId":"__APPLICATION_ID__","evidence":"Verificare documentata a eliberarii creditului"}}}'
curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation Release($input:ReleaseInvoiceCreditInput!){releaseInvoiceCredit(input:$input){applicationId replayed}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","applicationId":"__APPLICATION_ID__","evidence":"Verificare documentata a eliberarii creditului","approvalId":"__APPROVAL_ID__"}}}'

Existing keys do not automatically receive these permissions. Both operations require a current OWNER/MANAGER role and honor company policy/threshold. Voting remains in the internal workflow with a distinct reviewer. Minimal receipts need only the operation scope; regularization/application also need invoices:read, and invoice customers need customers:read, checked before writing. After a timeout, retry the same operation without automatically requesting another approval. fiscalRegularization(id) supports selective reads with invoices:read; private evidence and snapshots are not exposed.

Refunds use the explicit refunds:write permission. Request approval with requestRefundApproval, let a separate reviewer approve internally, then call refundCreditNote with the same data and approvalId. Cash/bank records an already executed refund; bank requires the matching unallocated debit. Stripe reserves capacity and queues delivery; RESERVED does not mean money has been returned.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation RequestRefund($input:RefundApprovalInput!){requestRefundApproval(input:$input){id status}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","paymentId":"__PAYMENT_ID__","amount":"50.00","method":"CASH","idempotencyKey":"__REFUND_KEY__","evidence":"Verified refund evidence for original collection"}}}'
curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation Refund($input:RefundCreditNoteInput!){refundCreditNote(input:$input){refundId replayed}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","paymentId":"__PAYMENT_ID__","amount":"50.00","method":"CASH","idempotencyKey":"__REFUND_KEY__","evidence":"Verified refund evidence for original collection","approvalId":"__APPROVAL_ID__"}}}'
curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"query RefundState($approval:ID!,$refund:ID!){refundApproval(id:$approval){id status} customerRefund(id:$refund){id amount currency status confirmedAt dispatchedAt}}","variables":{"approval":"__APPROVAL_ID__","refund":"__REFUND_ID__"}}'

Send amount as a decimal string (maximum two places), evidence (10–4,000 characters) and a stable idempotencyKey (1–100 characters). Retry the same command/key after a timeout. Track your request through refundApproval; customerRefund and optional refund projections additionally require invoices:read. UNKNOWN requires reconcileStripeRefund or the existing internal workflow/webhook; never create a new refund just to retry delivery. Internal evidence, provider payloads and errors are excluded.

To verify a Stripe refund, explicitly enable refunds:reconcile and call reconcileStripeRefund with creditNoteId, refundId and providerRefundId (re_...). This permission does not grant refund creation, approval votes or invoice reads. The command reads Stripe truth and updates the existing refund; it never sends another refund. Unknown/mismatched local sources are rejected before provider access.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation Reconcile($input:ReconcileStripeRefundInput!){reconcileStripeRefund(input:$input){refundId replayed}}","variables":{"input":{"creditNoteId":"__CREDIT_NOTE_ID__","refundId":"__REFUND_ID__","providerRefundId":"__PROVIDER_REFUND_ID__"}}}'

A minimal receipt needs only refunds:reconcile. Selecting refund additionally requires invoices:read, checked before any provider call. Retry the same three IDs after a timeout; replayed describes whether the local state changed, not whether Stripe was called. Each retry checks provider truth again. Actor access is rechecked after Stripe returns; state, audit and durable movement commit together. The remaining contract operations keep their current workflows.

Submit invoices or issued credit notes with submitSpvDocument (spv:submit), specifying documentId, kind INVOICE/CREDIT_NOTE and a stable idempotencyKey (1–100 characters). The existing service freezes XML and records a durable attempt before contacting ANAF. A receipt is not final ANAF acceptance. Retry the same key after a timeout; UNKNOWN/IN_FLIGHT/PREPARED require review, never an automatic second upload.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation Submit($input:SubmitSpvDocumentInput!){submitSpvDocument(input:$input){attemptId replayed}}","variables":{"input":{"documentId":"__DOCUMENT_ID__","kind":"INVOICE","idempotencyKey":"__SPV_KEY__"}}}'

spvSubmission(id) reads only selected journal fields and requires invoices:read. Optional submission in the mutation also requires invoices:read, checked before writing. To query ANAF and update the stored result, explicitly enable spv:reconcile and call refreshSpvDocumentStatus. It cannot upload documents. Historical ERP documents retain the existing submission restriction; no override or arbitrary XML input is provided.

curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"query Attempt($id:ID!){spvSubmission(id:$id){id status spvIndex testMode xmlSha256}}","variables":{"id":"__ATTEMPT_ID__"}}'
curl -X POST https://quickinvoice.ro/api/graphql \
  -H "X-Api-Key: qi_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"mutation Refresh($input:RefreshSpvDocumentStatusInput!){refreshSpvDocumentStatus(input:$input){documentId kind success state}}","variables":{"input":{"documentId":"__DOCUMENT_ID__","kind":"INVOICE"}}}'

Contracts: confirmScheduleCondition, linkScheduleInvoice, previewContractRevision, requestContractRevisionApproval and reviseContractPlan require contracts:write. Historical collection registration, allocation and release use the existing ledger and additionally require payments:write. contractFinancialSummary and contractHistoricalReview require contracts:read + invoices:read. Source revisions and independent approvals still apply according to policy; API keys cannot vote on approvals.

query Contract($id:ID!){ contract(id:$id){id contractNumber} contractFinancialSummary(id:$id){collectionSummary{currency target collected toCollect missingRate}} }

invoiceItems, invoicePayments and contractItems are paginated. invoice.fiscalBalance uses the shared exact fiscal balance; unknown conversions remain null. customerProfile explicitly requires customers:profile + customers:read for private CRM fields; conversations return summaries only, up to five.

M2M company lookup: GET /api/v1/companies/:cui, with companies:read and a header-only API key. CUIs are validated, sources and caches are separate, and unavailable persons remain null. 400/401/403/404/429/503 use stable codes; honor Retry-After. Public availability requires backend deployment; person data requires a configured, authorized provider.

curl "https://quickinvoice.ro/api/v1/companies/RO12345674" -H "X-Api-Key: qi_live_..."

Invoices

GET /invoices · GET /invoices/:id · POST /invoices · GET /invoices/:id/pdf

When listing you can pass: status (DRAFT, SENT, VIEWED, PAID, PARTIAL, OVERDUE, CANCELED), type (INVOICE, PROFORMA, DELIVERY_NOTE), customerId, search, dateFrom/dateTo, page, limit (max 100).

# Issue an invoice (unitPrice = NET price; VAT is computed from taxRate)
curl -X POST https://quickinvoice.ro/api/v1/invoices \
  -H "X-Api-Key: qi_live_..." -H "Content-Type: application/json" \
  -d '{
    "customerName": "SC Exemplu SRL",
    "customerCIF": "RO12345678",
    "customerEmail": "client@exemplu.ro",
    "items": [
      { "description": "Web services", "quantity": 1, "unitPrice": 500, "taxRate": 21 }
    ]
  }'

If you don't send a series, the company's default series is used. The customer is created/updated automatically by phone number. Download the PDF with GET /invoices/:id/pdf.

Customers

GET /customers?search=&limit=&offset= · GET /customers/:id · POST /customers (phone required).

Products

GET /products?search=&categoryId=&type= (PRODUCT or SERVICE) · GET /products/:id. Read-only in v1.

Webhooks

You receive a JSON POST every time an event occurs. You add the endpoints in Dashboard → Settings → API & Integrations → Webhooks. Available events:

invoice.created, invoice.paid, invoice.overdue, customer.created, payment.received.

POST <your url>
X-QuickInvoice-Event: invoice.created
X-QuickInvoice-Signature: sha256=<hmac>

{
  "event": "invoice.created",
  "createdAt": "2026-07-05T10:00:00.000Z",
  "data": {
    "invoiceId": "…", "invoiceNumber": "FACT-2026-0001",
    "total": 266.20, "currency": "RON", "status": "SENT"
  }
}

Verify the signature: compute HMAC-SHA256 over the raw request body with the webhook secret (whsec_…) and compare with the X-QuickInvoice-Signature header. An endpoint that repeatedly fails is disabled automatically.

// Node.js — verify signature
const crypto = require('crypto');
const expected = 'sha256=' + crypto.createHmac('sha256', WHSEC)
  .update(rawBody).digest('hex');
const valid = expected === req.headers['x-quickinvoice-signature'];

Zapier

The simplest option, with no app to install: create a Zap with the “Webhooks by Zapier → Catch Hook” trigger, copy the generated URL and add it as a webhook in QuickInvoice (you pick the event). From now on every invoice/payment starts the Zap. You can map the fields from data into any action (Google Sheets, email, CRM, etc.).

As a polling alternative, Zapier can periodically query GET https://quickinvoice.ro/api/v1/invoices?limit=… and deduplicate by id.

Make (Integromat)

In Make, add the “Webhooks → Custom webhook” module, copy the address and set it as a webhook in QuickInvoice. The scenario starts instantly on every event, with the full payload available for the next steps.

WooCommerce

Install the official QuickInvoice for WooCommerce plugin, put the API key in WooCommerce → QuickInvoice and invoices are issued automatically on every paid order, with PDF download from the order page and the tax ID captured for B2B.

Shopify

No app to install: in Shopify Admin → Settings → Notifications → Webhooks add an Order payment (JSON) webhook to:

https://quickinvoice.ro/api/v1/webhooks/shopify?key=qi_live_...

The invoice is issued automatically on every paid order, race-safe, no duplicates.

Errors

Standard format, common codes:

400 invalid request · 401 missing/invalid/revoked key · 404 resource not found · 429 rate limit exceeded.

Need help with your integration? Write to us at contact@quickinvoice.ro.