# Convert offer to invoice

`POST /v1/offers/{id}/invoice`

Turns 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

- `409` when the offer isn't accepted
- `400 validation_error` when the customer has been archived since

**Scopes:** any of `invoices:write`, `write:draft`, `write:ledger`

## Request

```bash
curl -X POST https://api.numina.app/v1/offers/550e8400-e29b-41d4-a716-446655440000/invoice \
  -H "Authorization: Bearer numi_YOUR_API_KEY"
```

## Path parameters

- `id` (string (uuid), required): Offer ID

## Response `200`

The invoice draft made from the offer earlier

```json
{
  "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"
}
```

## Errors

- `400` Bad Request - The request is invalid
- `401` Unauthorized - Missing or invalid credentials
- `403` Forbidden - A scope is missing, or the company is archived
- `404` Not Found - It doesn't exist in this company
- `409` Conflict - The offer isn't accepted, or is being updated
- `429` Too Many Requests - You're over the rate limit
- `500` Internal Server Error - Something went wrong on our side

See https://developers.numina.app/errors.md for the error format.
