Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/mynto-no:mynto-no-invoicing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mynto Invoicing API
version: '1'
description: 'The Mynto API lets you read and write a Norwegian company''s accounting data:
receipts, bank transactions, the ledger, invoices and customers. ## Authentication
Every request carries a bearer token:
Authorization: Bearer mynto_sk_…
There are two kinds of credential:
- **Personal API key** (`mynto_sk_…`) — for connecting your own system. Created
in Mynto under Settings → API, locked to one company. This is the fastest way
to get started, and you do not need to build an app. - **OAuth 2.1 access token** (`mynto_at_…`) — for an app used by *other*
companies. The user approves your app in a consent screen and picks which
company it may act on. See the OAuth guide. ## Scopes
A credential may only do what it was granted. Scopes are `resource:action`, e.g. `faktura:les` (read invoices) or `regnskap:skriv` (post to the ledger). A request
without the required scope is refused with `permission_denied`. Scopes never *widen* what the underlying user may do — they only narrow it. An app
granted `faktura:skriv` on behalf of a read-only user still cannot write. Scopes that move money or file with the government (`betaling:skriv`,
`lonn:kjor`, `mva:innsend`, …) are **sensitive**: they cannot be granted to a
personal API key at all, and an app needs review to request them. The live catalogue is at `GET /platform/scopes`. ## Money
All amounts are integers in **minor units** (øre). `12500` is 125,00 kr. There
are no floats in this API — a rounding error in an accounting system is not a bug
you find later, it is a bug an auditor finds later. ## VAT (MVA)
**A company outside the Norwegian VAT register always gets 0 VAT, whatever
`vatRate` you send.** This is not your bug and it is not us ignoring you: a
company that is not VAT-registered may not charge VAT, and an invoice that did
would be illegal. We refuse to produce one, so an integration cannot make a
customer break the law by accident. If you send `vatRate: 25` and get `vatMinor: 0` back, check whether the company
is VAT-registered. It becomes registered automatically once it passes the
threshold, and invoices issued after that carry VAT normally. For a registered company, `vatRate` is the MVA percentage: 0, 12, 15 or 25. Omit
it to default to 25. ## Pagination
List endpoints take `?limit` (max 200) and `?offset`, and return a `total`. Check `total` before concluding something does not exist. ## Webhooks
Subscribe an HTTPS endpoint and we POST events to it as they happen, so you do not
have to poll. Requires the `webhook:abonner` scope. **Verify the signature.** Every delivery carries:
Mynto-Event: invoice.sent
Mynto-Event-Id: evt_9f2c…
Mynto-Signature: t=1752490000,v1=6b3a…
`v1` is HMAC-SHA256 of `"{t}.{raw_body}"`, keyed with the subscription secret we
returned once at creation. Verify against the **raw body**, before any JSON
parsing — re-serialising the JSON will change the bytes and the signature will
not match. The timestamp is inside the signed material, so a captured delivery cannot be
replayed later. Reject anything older than your tolerance (5 minutes is typical). ```python
expected = hmac.new(secret, f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(expected, v1):
return 401
```
**Delivery is at-least-once.** You *will* eventually receive the same event twice —
a retry after a timeout you actually processed, for example. Deduplicate on
`Mynto-Event-Id`. An integration that assumes exactly-once will double-book
something; this is not hypothetical. **Respond 2xx quickly.** Anything else is a failure. We retry with exponential
backoff (~1m, 2m, 4m, 8m, 16m) and then dead-letter the event. An endpoint that
fails persistently is auto-disabled — check `disabledReason` on the subscription. Do your real work asynchronously and acknowledge immediately. Inspect what we actually sent, and why it failed, at
`GET /v1/companies/{companyID}/webhooks/{subID}/deliveries`.'
servers:
- url: https://production-mynto-ukmi.encr.app
description: Production — real accounting data
security:
- bearerAuth: []
tags:
- name: Invoicing
paths:
/v1/companies/{companyID}/customers:
get:
operationId: GET:publicapi.ListCustomers
parameters:
- allowEmptyValue: true
explode: false
in: path
name: companyID
required: true
schema:
format: int64
type: integer
style: simple
responses:
'200':
content:
application/json:
schema:
properties:
customers:
items:
$ref: '#/components/schemas/publicapi.Customer'
type: array
required:
- customers
type: object
description: Success response
default:
$ref: '#/components/responses/APIError'
summary: ListCustomers returns the company's customers
tags:
- Invoicing
post:
operationId: POST:publicapi.CreateCustomer
parameters:
- allowEmptyValue: true
explode: false
in: path
name: companyID
required: true
schema:
format: int64
type: integer
style: simple
requestBody:
content:
application/json:
schema:
properties:
city:
type: string
countryCode:
title: 'defaults to NO
'
type: string
email:
type: string
name:
type: string
orgNr:
type: string
postalCode:
type: string
street:
type: string
required:
- name
- orgNr
- email
- street
- postalCode
- city
- countryCode
type: object
responses:
'200':
content:
application/json:
schema:
properties:
city:
type: string
countryCode:
type: string
email:
type: string
id:
format: int64
type: integer
name:
type: string
orgNr:
type: string
postalCode:
type: string
street:
type: string
required:
- id
- name
- orgNr
- email
- street
- postalCode
- city
- countryCode
type: object
description: Success response
default:
$ref: '#/components/responses/APIError'
summary: CreateCustomer creates a customer
tags:
- Invoicing
/v1/companies/{companyID}/invoices:
get:
operationId: GET:publicapi.ListInvoices
parameters:
- allowEmptyValue: true
explode: false
in: path
name: companyID
required: true
schema:
format: int64
type: integer
style: simple
- allowEmptyValue: true
explode: true
in: query
name: limit
required: true
schema:
format: int64
type: integer
style: form
- allowEmptyValue: true
explode: true
in: query
name: offset
required: true
schema:
format: int64
type: integer
style: form
responses:
'200':
content:
application/json:
schema:
properties:
invoices:
items:
$ref: '#/components/schemas/publicapi.Invoice'
type: array
total:
format: int64
type: integer
required:
- invoices
- total
type: object
description: Success response
default:
$ref: '#/components/responses/APIError'
summary: ListInvoices returns invoices, newest first. Paginated
tags:
- Invoicing
post:
description: and is not booked until you call the send endpoint — so a partial or mistaken create is harmless and can be deleted.
operationId: POST:publicapi.CreateInvoice
parameters:
- allowEmptyValue: true
explode: false
in: path
name: companyID
required: true
schema:
format: int64
type: integer
style: simple
requestBody:
content:
application/json:
schema:
properties:
customerId:
format: int64
type: integer
deliveryDate:
description: 'Required on the document by bokf.forskr. § 5-1-1 nr. 4; defaults to the issue date when the invoice is sent.
'
title: 'DeliveryDate (YYYY-MM-DD) is when the goods or services were delivered.
'
type: string
dueInDays:
format: int64
title: 'DueInDays is the payment term; defaults to 14.
'
type: integer
kid:
description: 'KID setting.
'
title: 'KID is the payment reference. Leave empty to use the company''s automatic
'
type: string
lines:
items:
$ref: '#/components/schemas/publicapi.CreateInvoiceLine'
type: array
required:
- customerId
- dueInDays
- kid
- deliveryDate
- lines
type: object
responses:
'200':
content:
application/json:
schema:
properties:
customerId:
format: int64
type: integer
dueDate:
type: string
grossMinor:
format: int64
type: integer
id:
format: int64
type: integer
issueDate:
type: string
kid:
type: string
kind:
title: 'Kind: invoice | credit_note.
'
type: string
lines:
items:
$ref: '#/components/schemas/publicapi.InvoiceLine'
type: array
netMinor:
format: int64
type: integer
number:
description: 'it is still a draft).
'
format: int64
title: 'Number is the invoice number, assigned when the invoice is sent (0 while
'
type: integer
status:
title: 'Status: draft | sent | paid | overdue | credited.
'
type: string
vatMinor:
format: int64
type: integer
required:
- id
- customerId
- number
- kind
- status
- issueDate
- dueDate
- netMinor
- vatMinor
- grossMinor
- kid
- lines
type: object
description: Success response
default:
$ref: '#/components/responses/APIError'
summary: CreateInvoice creates a DRAFT invoice. It is not sent, does not get a number,
tags:
- Invoicing
/v1/companies/{companyID}/invoices/{invoiceID}/send:
post:
description: to the ledger, and delivers the document (EHF where the customer supports it, otherwise email). This is not reversible — an invoice that has been sent can only be undone with a credit note, because that is what the law requires.
operationId: POST:publicapi.SendInvoice
parameters:
- allowEmptyValue: true
explode: false
in: path
name: companyID
required: true
schema:
format: int64
type: integer
style: simple
- allowEmptyValue: true
explode: false
in: path
name: invoiceID
required: true
schema:
format: int64
type: integer
style: simple
responses:
'200':
content:
application/json:
schema:
properties:
customerId:
format: int64
type: integer
dueDate:
type: string
grossMinor:
format: int64
type: integer
id:
format: int64
type: integer
issueDate:
type: string
kid:
type: string
kind:
title: 'Kind: invoice | credit_note.
'
type: string
lines:
items:
$ref: '#/components/schemas/publicapi.InvoiceLine'
type: array
netMinor:
format: int64
type: integer
number:
description: 'it is still a draft).
'
format: int64
title: 'Number is the invoice number, assigned when the invoice is sent (0 while
'
type: integer
status:
title: 'Status: draft | sent | paid | overdue | credited.
'
type: string
vatMinor:
format: int64
type: integer
required:
- id
- customerId
- number
- kind
- status
- issueDate
- dueDate
- netMinor
- vatMinor
- grossMinor
- kid
- lines
type: object
description: Success response
default:
$ref: '#/components/responses/APIError'
summary: 'SendInvoice finalizes a draft: it assigns the invoice number, books the income'
tags:
- Invoicing
components:
schemas:
publicapi.CreateInvoiceLine:
properties:
description:
type: string
quantity:
type: number
unitCode:
title: 'UnitCode is a UN/ECE rec 20 unit; defaults to EA.
'
type: string
unitPriceMinor:
format: int64
type: integer
vatRate:
description: 'A company outside the MVA register always gets 0 regardless of what is sent here — it may not charge MVA, and honouring the caller would produce an illegal invoice.
'
format: int64
title: 'VATRate is the MVA percentage: 0, 12, 15 or 25. Omit to default to 25.
'
type: integer
required:
- description
- quantity
- unitPriceMinor
- vatRate
- unitCode
type: object
publicapi.Invoice:
properties:
customerId:
format: int64
type: integer
dueDate:
type: string
grossMinor:
format: int64
type: integer
id:
format: int64
type: integer
issueDate:
type: string
kid:
type: string
kind:
title: 'Kind: invoice | credit_note.
'
type: string
lines:
items:
$ref: '#/components/schemas/publicapi.InvoiceLine'
type: array
netMinor:
format: int64
type: integer
number:
description: 'it is still a draft).
'
format: int64
title: 'Number is the invoice number, assigned when the invoice is sent (0 while
'
type: integer
status:
title: 'Status: draft | sent | paid | overdue | credited.
'
type: string
vatMinor:
format: int64
type: integer
required:
- id
- customerId
- number
- kind
- status
- issueDate
- dueDate
- netMinor
- vatMinor
- grossMinor
- kid
- lines
type: object
publicapi.Customer:
properties:
city:
type: string
countryCode:
type: string
email:
type: string
id:
format: int64
type: integer
name:
type: string
orgNr:
type: string
postalCode:
type: string
street:
type: string
required:
- id
- name
- orgNr
- email
- street
- postalCode
- city
- countryCode
type: object
publicapi.InvoiceLine:
properties:
description:
type: string
quantity:
type: number
unitCode:
title: 'UnitCode is a UN/ECE rec 20 unit, e.g. EA (each), HUR (hour).
'
type: string
unitPriceMinor:
format: int64
type: integer
vatRate:
format: int64
title: 'VATRate is the MVA percentage: 0, 12, 15 or 25.
'
type: integer
required:
- description
- quantity
- unitPriceMinor
- vatRate
- unitCode
type: object
responses:
APIError:
content:
application/json:
schema:
externalDocs:
url: https://pkg.go.dev/encore.dev/beta/errs#Error
properties:
code:
description: Error code
example: not_found
externalDocs:
url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
type: string
details:
description: Error details
type: object
message:
description: Error message
type: string
title: APIError
type: object
description: Error response
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: A personal API key (mynto_sk_…) or an OAuth 2.1 access token (mynto_at_…).