SendLetter Invoices API
Listing and downloading invoices and full credit notes.
Listing and downloading invoices and full credit notes.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/sendletter-eu:sendletter-eu-invoices-api"
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.
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: SendLetter Invoices API
version: 1.3.0
description: 'Post a real letter from one HTTP call. Text, a document or a finished PDF goes in with an address, a printed and franked letter comes out, and the status arrives on a webhook.
All money is integer cents in euro. Amounts named `priceCents` exclude VAT; `totalCents` includes it and is the amount charged.
**Test mode.** A key beginning `sk_test_` renders, prices and tracks a letter exactly as a live key would, walks it through submitted, printed, posted and delivered, and fires every callback along the way. Nothing is printed, nothing is posted, and the wallet is not touched. Build and demonstrate an integration entirely on a test key.
**Retries.** Send an `idempotencyKey` on anything that creates a letter. A repeated call with the same key returns the original letter instead of posting a second one.
**Tracing.** Every API response carries `X-Request-Id`; API error bodies repeat it as `requestId`. You may supply a safe `X-Request-Id` yourself. Quote that value to support for one request, and the letter `id` to follow an order across later payment and provider webhooks.
**Cost controls.** New keys start with `letters:read letters:quote letters:draft letters:send` and configurable per-letter, UTC-day and UTC-month ceilings. A refused ceiling moves no wallet money and posts nothing. Add `account:read` or `webhooks:write` only when needed.'
contact:
name: Twilper
url: https://sendletter.eu
license:
name: CC0-1.0
identifier: CC0-1.0
termsOfService: https://sendletter.eu/nl/terms
servers:
- url: https://sendletter.eu
security:
- bearerAuth: []
tags:
- name: Invoices
description: Listing and downloading invoices and full credit notes.
paths:
/api/v1/invoices:
get:
operationId: listInvoices
tags:
- Invoices
summary: List invoices and their credit notes
description: Returns real, paid orders only. Test letters never consume an invoice number. A fully refunded invoice remains in the list and embeds its separately numbered negative credit note.
parameters:
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 100
default: 25
- name: before
in: query
schema:
type: string
description: Opaque cursor from `nextCursor`; do not construct it.
responses:
'200':
description: A page of invoices, newest first
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Invoice'
nextCursor:
type:
- string
- 'null'
'400':
description: The cursor is not a cursor returned by this endpoint
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing, malformed or revoked API key
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The credential does not carry the permission this operation requires.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited. Read Retry-After for the number of seconds to wait. Reads allow 300 and writes 120 requests per minute per key. Paid sends can also be refused when the credential's daily or monthly spending ceiling is reached.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/invoices/{id}/pdf:
get:
operationId: downloadInvoice
tags:
- Invoices
summary: Download an invoice PDF
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: The immutable invoice PDF
content:
application/pdf:
schema:
type: string
format: binary
'401':
description: Missing, malformed or revoked API key
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The credential does not carry the permission this operation requires.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such invoice on this account
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited. Read Retry-After for the number of seconds to wait. Reads allow 300 and writes 120 requests per minute per key. Paid sends can also be refused when the credential's daily or monthly spending ceiling is reached.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/credit-notes/{id}/pdf:
get:
operationId: downloadCreditNote
tags:
- Invoices
summary: Download a full credit-note PDF
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: The immutable credit-note PDF
content:
application/pdf:
schema:
type: string
format: binary
'401':
description: Missing, malformed or revoked API key
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: The credential does not carry the permission this operation requires.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: No such credit note on this account
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Rate limited. Read Retry-After for the number of seconds to wait. Reads allow 300 and writes 120 requests per minute per key. Paid sends can also be refused when the credential's daily or monthly spending ceiling is reached.
headers:
X-Request-Id:
description: Identifier for tracing this request in support and operational logs.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Invoice:
type: object
required:
- id
- letterId
- issuedAt
- status
- priceCents
- vatCents
- totalCents
- currency
- reverseCharge
- pdfUrl
- creditNote
properties:
id:
type: string
description: Immutable invoice number, for example 2026-0042.
letterId:
type: string
description: The letter this invoice belongs to.
issuedAt:
type: string
format: date-time
status:
type: string
enum:
- issued
- credited
priceCents:
type: integer
description: Net amount, excluding VAT.
vatCents:
type: integer
totalCents:
type: integer
currency:
type: string
enum:
- EUR
reverseCharge:
type: boolean
pdfUrl:
type: string
description: Authenticated API download path.
creditNote:
type:
- object
- 'null'
required:
- id
- issuedAt
- priceCents
- vatCents
- totalCents
- currency
- pdfUrl
properties:
id:
type: string
description: Immutable credit-note number.
issuedAt:
type: string
format: date-time
priceCents:
type: integer
description: Negative net reversal.
vatCents:
type: integer
description: Negative VAT reversal.
totalCents:
type: integer
description: Negative gross reversal.
currency:
type: string
enum:
- EUR
pdfUrl:
type: string
description: Authenticated API download path.
Error:
type: object
required:
- error
- requestId
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
details: {}
requestId:
type: string
description: Also returned as X-Request-Id. Include it when reporting a failed API call.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'An API key from the account area, sent as `Authorization: Bearer <key>`. Keys beginning `sk_test_` run the whole lifecycle without printing, posting or charging anything; keys beginning `sk_live_` post real letters and spend real credit.'