Get invoice delivery history
GET /api/v2/billing/invoices/{id}/email-info
See where an invoice was sent and where it would go now. emails lists up to 20 invoice e-mails for this invoice, newest first. currentTargets holds the current delivery targets for the next invoice e-mail, from the account’s settings. For Swedish organisations, peppol shows the e-invoice delivery and any copies requested with POST /api/v2/billing/invoices/{id}/actions/resend-peppol. Read it again after a resend to follow the copy.
Authentication: An API key with the scope read:billing. About keys and scopes
Request
Path parameters
idstringrequiredPublic invoice ID from
GET /api/v2/billing/invoices (inv_…).Example
curl "https://cloud.hostup.se/api/v2/billing/invoices/inv_01hxa3b4c5d6e7f8g9h0j1k2m3/email-info" \ -H "Authorization: Bearer $HOSTUP_API_KEY"Responses
200 Delivery history and current targets.
{ "emails": [ { "to": "owner@example.com", "ccRecipients": [ "finance@example.com" ], "status": "sent", "deliveryStatus": "delivered", "sentAt": "2026-04-18T10:00:00.000Z", "createdAt": "2026-04-18T09:59:00.000Z", "deliveredAt": "2026-04-18T10:00:02.000Z" } ], "account": { "type": "individual", "countryCode": "SE" }, "peppol": { "available": true, "delivery": null }, "currentTargets": { "to": "billing@example.com", "ccRecipients": [ "finance@example.com" ] }}{ "emails": [], "account": { "type": "organisation", "countryCode": "SE" }, "peppol": { "available": true, "delivery": { "status": "delivered", "recipient": { "id": "0007:0000000000", "name": "Example AB" }, "transactionId": "4b1f7c2e-9a3d-4e6f-8b2a-1c5d7e9f0a3b", "sentAt": "2026-09-15T08:05:00.000Z", "deliveredAt": "2026-09-15T08:05:40.000Z", "error": null, "attempts": [], "resend": { "allowed": true, "reasonCode": null } } }, "currentTargets": { "to": "billing@example.com", "ccRecipients": [] }}Response fields
accountobject or nullAccount type and country.
emailsarray of objecttostringccRecipientsarray of stringstatusstring or nulldeliveryStatusstring or nullsentAtstring or nullcreatedAtstring or nulldeliveredAtstring or nullcurrentTargetsobject or nullpeppolobjectavailablebooleandeliveryobject or nullErrors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | Invalid request. The response body is an RFC 7807 Problem Details document. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | Not found. The resource does not exist or is not owned by the caller; code is invoice_not_found. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |