create_invoice
Send a Norway B2B electronic invoice over the Peppol network in Peppol BIS 3.0 / EHF (EN 16931) format via Storecove (a certified Peppol Access Point). Norway is moving to mandatory structured e-invoicing for domestic B2B: the parliament (Stortinget) has adopted the reform and the sending obligation applies from 2027-01-01. Builds the structured invoice JSON from seller + buyer (name, Norwegian VAT NO<9 digits>MVA and/or organisasjonsnummer 9 digits, address) and line items (description, quantity, net unit price, VAT rate 25/15/12/0), computes the Norwegian VAT (MVA) breakdown, and submits it under YOUR OWN Storecove credentials. Bring your own credential as header x-storecove-key. You must also pass seller_legal_entity_id — the legalEntityId of the sender you created in your Storecove account. Norwegian VAT (MVA) rates: 25 (standard), 15 (food/groceries), 12 (transport/accommodation and other low-rate services), 0 (zero-rated/exempt/reverse charge). Amounts in NOK. Delivery over Peppol is asynchronous: this returns a submission guid — use get_delivery_evidence with it to fetch the delivery proof/status. Tip: call check_recipient first to confirm the buyer is reachable on Peppol. There is no cancel over Peppol: to reverse an invoice you issue a credit note (a new invoice).
Parameters24
| seller_legal_entity_id | string | required | REQUIRED. The Storecove legalEntityId of the sender (created in your Storecove account under Senders). Numeric id, passed through to Storecove. |
| seller_name | string | required | Seller legal/company name. |
| seller_vat | string | optional | Seller Norwegian VAT number, format NO<9 digits>MVA (e.g. NO999999999MVA). Provide this and/or seller_org_number. |
| seller_org_number | string | optional | Optional seller Norwegian organisasjonsnummer (organization number), 9 digits. |
| seller_address | string | required | Seller street address. |
| seller_city | string | required | Seller city. |
| seller_zip | string | required | Seller postal code. |
| seller_country | string | optional | Seller country code. Default NO. |
| customer_name | string | required | Buyer legal/company name. |
| customer_vat | string | optional | Buyer Norwegian VAT number NO<9 digits>MVA. Provide this and/or customer_org_number (used to route on Peppol if no explicit recipient id is given). |
| customer_org_number | string | optional | Optional buyer Norwegian organisasjonsnummer (organization number), 9 digits. |
| customer_address | string | required | Buyer street address. |
| customer_city | string | required | Buyer city. |
| customer_zip | string | required | Buyer postal code. |
| customer_country | string | optional | Buyer country code. Default NO. |
| recipient_peppol_scheme | string | optional | Optional explicit Peppol routing scheme (EAS/ISO6523). Norway: 0192 (organisasjonsnummer). Default 0192 when routing by organization number. |
| recipient_peppol_id | string | optional | Optional explicit Peppol participant identifier to route to (overrides deriving from the customer organisasjonsnummer/VAT). |
| recipient_email | string | optional | Optional email fallback — used if the recipient is not on Peppol (Storecove can email a copy). |
| invoice_number | string | optional | Invoice number. Auto-generated if omitted. |
| issue_date | string | optional | Invoice issue date, YYYY-MM-DD. Default: today (UTC). |
| due_date | string | optional | Optional payment due date, YYYY-MM-DD. |
| currency | string | optional | Document currency. Default NOK. |
| note | string | optional | Optional free-text note on the invoice. |
| lines | array | required | Invoice line items. Each: description, unit_price (net, VAT-exclusive, NOK), vat_rate (25|15|12|0), optional quantity (default 1), optional tax_category (S standard / Z zero-rated / E exempt / AE reverse charge; default S for rate>0, Z for rate 0), optional item_name. |
Raw schema
{
"type": "object",
"properties": {
"seller_legal_entity_id": {
"type": "string",
"description": "REQUIRED. The Storecove legalEntityId of the sender (created in your Storecove account under Senders). Numeric id, passed through to Storecove."
},
"seller_name": {
"type": "string",
"description": "Seller legal/company name."
},
"seller_vat": {
"type": "string",
"description": "Seller Norwegian VAT number, format NO<9 digits>MVA (e.g. NO999999999MVA). Provide this and/or seller_org_number."
},
"seller_org_number": {
"type": "string",
"description": "Optional seller Norwegian organisasjonsnummer (organization number), 9 digits."
},
"seller_address": {
"type": "string",
"description": "Seller street address."
},
"seller_city": {
"type": "string",
"description": "Seller city."
},
"seller_zip": {
"type": "string",
"description": "Seller postal code."
},
"seller_country": {
"type": "string",
"description": "Seller country code. Default NO."
},
"customer_name": {
"type": "string",
"description": "Buyer legal/company name."
},
"customer_vat": {
"type": "string",
"description": "Buyer Norwegian VAT number NO<9 digits>MVA. Provide this and/or customer_org_number (used to route on Peppol if no explicit recipient id is given)."
},
"customer_org_number": {
"type": "string",
"description": "Optional buyer Norwegian organisasjonsnummer (organization number), 9 digits."
},
"customer_address": {
"type": "string",
"description": "Buyer street address."
},
"customer_city": {
"type": "string",
"description": "Buyer city."
},
"customer_zip": {
"type": "string",
"description": "Buyer postal code."
},
"customer_country": {
"type": "string",
"description": "Buyer country code. Default NO."
},
"recipient_peppol_scheme": {
"type": "string",
"description": "Optional explicit Peppol routing scheme (EAS/ISO6523). Norway: 0192 (organisasjonsnummer). Default 0192 when routing by organization number."
},
"recipient_peppol_id": {
"type": "string",
"description": "Optional explicit Peppol participant identifier to route to (overrides deriving from the customer organisasjonsnummer/VAT)."
},
"recipient_email": {
"type": "string",
"description": "Optional email fallback — used if the recipient is not on Peppol (Storecove can email a copy)."
},
"invoice_number": {
"type": "string",
"description": "Invoice number. Auto-generated if omitted."
},
"issue_date": {
"type": "string",
"description": "Invoice issue date, YYYY-MM-DD. Default: today (UTC)."
},
"due_date": {
"type": "string",
"description": "Optional payment due date, YYYY-MM-DD."
},
"currency": {
"type": "string",
"description": "Document currency. Default NOK."
},
"note": {
"type": "string",
"description": "Optional free-text note on the invoice."
},
"lines": {
"type": "array",
"minItems": 1,
"description": "Invoice line items. Each: description, unit_price (net, VAT-exclusive, NOK), vat_rate (25|15|12|0), optional quantity (default 1), optional tax_category (S standard / Z zero-rated / E exempt / AE reverse charge; default S for rate>0, Z for rate 0), optional item_name.",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "Line description."
},
"unit_price": {
"type": "number",
"description": "Net unit price in NOK, VAT-exclusive."
},
"vat_rate": {
"type": "number",
"description": "Norwegian VAT (MVA) rate percent: 25 (standard), 15 (food), 12 (low-rate services), or 0."
},
"quantity": {
"type": "number",
"description": "Quantity. Default 1."
},
"tax_category": {
"type": "string",
"description": "Optional EN 16931 tax category: S / Z / E / AE. Default derived from vat_rate."
},
"item_name": {
"type": "string",
"description": "Optional item name (defaults to description)."
}
},
"required": [
"description",
"unit_price",
"vat_rate"
]
}
}
},
"required": [
"seller_legal_entity_id",
"seller_name",
"seller_address",
"seller_city",
"seller_zip",
"customer_name",
"customer_address",
"customer_city",
"customer_zip",
"lines"
]
}