Convert offer to invoice
POST
/v1/offers/{id}/invoiceTurns an accepted offer into an invoice draft, like the button in Numina. The draft has the offer's customer, lines and payment details, is dated today and due in 14 days, and has the offer's ID in source_offer_id.
Change or book the draft like any other: POST /v1/invoices/{id}/book books it.
An offer converts once. Converting it again returns the same draft with 200, so it's safe to retry.
Errors
409when the offer isn't accepted400 validation_errorwhen the customer has been archived since
Requires one ofinvoices:writewrite:draftwrite:ledger
Path parameters
- Offer ID
Errors
400The request is invalid401Missing or invalid credentials403A scope is missing, or the company is archived404It doesn't exist in this company409The offer isn't accepted, or is being updated429You're over the rate limit500Something went wrong on our side
Every error has the same shape. See Errors.
curl -X POST https://api.numina.app/v1/offers/550e8400-e29b-41d4-a716-446655440000/invoice \
-H "Authorization: Bearer numi_YOUR_API_KEY"const response = await fetch("https://api.numina.app/v1/offers/550e8400-e29b-41d4-a716-446655440000/invoice", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.NUMINA_API_KEY}`,
},
});
const data = await response.json();import os
import requests
response = requests.post(
"https://api.numina.app/v1/offers/550e8400-e29b-41d4-a716-446655440000/invoice",
headers={
"Authorization": f"Bearer {os.environ['NUMINA_API_KEY']}",
},
)
data = response.json()Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"invoice_number": 1001,
"offer_number": 42,
"type": "invoice",
"credited_invoice_id": "550e8400-e29b-41d4-a716-446655440000",
"source_offer_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "sent",
"issue_date": "2026-01-15",
"due_date": "2026-02-15",
"valid_until": "2026-02-15",
"contact_id": "550e8400-e29b-41d4-a716-446655440001",
"contact_name": "Acme ApS",
"currency": "DKK",
"subtotal": 10000,
"vat": 2500,
"vat_rate": 25,
"total": 12500,
"has_mixed_vat": false,
"outstanding_balance": 12500,
"outstanding_balance_currency": "DKK",
"currency_rate": 0,
"delivery_status": "sent",
"email_delivery_status": "string",
"email_sent_at": "string",
"e_invoice_status": "delivered",
"e_invoice_sent_at": "string",
"e_invoice_number": "5790000123456",
"e_invoice_scheme": "GLN",
"attn_person": "Jane Doe",
"order_reference": "PO-2026-0042",
"is_overdue": false,
"payment_state": "open",
"unmatched_payments_note": "string",
"items": [
{
"unit": "string",
"vat_account_id": "string",
"vat_code": "string",
"sales_account_number": 0,
"vat_rate": 0,
"id": "550e8400-e29b-41d4-a716-446655440002",
"description": "Consulting services",
"quantity": 10,
"unit_price": 1000
}
],
"memo": "Project Q1 delivery",
"payment_details": {
"bank_name": "Danske Bank",
"scheme": "dk-registration-number",
"clearing_code": "3409",
"account_number": "0012345678",
"iban": "DK5030000012345678",
"swift_bic": "DABADKKK",
"other_details": null
},
"created_at": "2026-01-15T10:30:00Z"
}{
"id": "550e8400-e29b-41d4-a716-446655440000",
"invoice_number": 1001,
"offer_number": 42,
"type": "invoice",
"credited_invoice_id": "550e8400-e29b-41d4-a716-446655440000",
"source_offer_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "sent",
"issue_date": "2026-01-15",
"due_date": "2026-02-15",
"valid_until": "2026-02-15",
"contact_id": "550e8400-e29b-41d4-a716-446655440001",
"contact_name": "Acme ApS",
"currency": "DKK",
"subtotal": 10000,
"vat": 2500,
"vat_rate": 25,
"total": 12500,
"has_mixed_vat": false,
"outstanding_balance": 12500,
"outstanding_balance_currency": "DKK",
"currency_rate": 0,
"delivery_status": "sent",
"email_delivery_status": "string",
"email_sent_at": "string",
"e_invoice_status": "delivered",
"e_invoice_sent_at": "string",
"e_invoice_number": "5790000123456",
"e_invoice_scheme": "GLN",
"attn_person": "Jane Doe",
"order_reference": "PO-2026-0042",
"is_overdue": false,
"payment_state": "open",
"unmatched_payments_note": "string",
"items": [
{
"unit": "string",
"vat_account_id": "string",
"vat_code": "string",
"sales_account_number": 0,
"vat_rate": 0,
"id": "550e8400-e29b-41d4-a716-446655440002",
"description": "Consulting services",
"quantity": 10,
"unit_price": 1000
}
],
"memo": "Project Q1 delivery",
"payment_details": {
"bank_name": "Danske Bank",
"scheme": "dk-registration-number",
"clearing_code": "3409",
"account_number": "0012345678",
"iban": "DK5030000012345678",
"swift_bic": "DABADKKK",
"other_details": null
},
"created_at": "2026-01-15T10:30:00Z"
}