Skip to content
Documentation
Get started

Invoices

Email an Invoice to its buyer

POST
/v1/invoices/{invoiceId}/deliveries
curl --request POST \
--url https://api.timbro.do/v1/invoices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/deliveries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: example' \
--data '{ "accountClaimUrl": "https://example.com", "attachments": { "pdf": true, "xml": true }, "recipientEmail": "hello@example.com" }'
invoiceId
required
string format: uuid
idempotency-key
required
string
>= 16 characters <= 255 characters /^[A-Za-z0-9._:-]+$/
Media typeapplication/json

Examplegenerated

{
"accountClaimUrl": "https://example.com",
"attachments": {
"pdf": true,
"xml": true
},
"recipientEmail": "hello@example.com"
}
object
recipientEmail
required
string format: email
>= 3 characters <= 320 characters
Optional fields
accountClaimUrl

An https page where the buyer keeps this purchase; the email links it, and it grants no access.

string format: uri
<= 2048 characters /^https:///
attachments
object
pdf

Attach the printed representation as {RNC}{e-NCF}.pdf.

boolean
xml

Attach the signed e-CF as {RNC}{e-NCF}.xml, DGII’s file-name standard.

boolean

Default Response

Media typeapplication/json
Response fields and codes
object
attachments
required

The files this email attaches beside its link.

object
pdf
required
boolean
xml
required
boolean
createdAt
required
string format: date-time
id
required
string format: uuid
invoiceId
required
string format: uuid
lastResultCode
required
string | null
link
required
string
providerDeliveryId
required
string | null
recipientEmail
required
string
state
required
string
Allowed values: pending submitted delivered bounced failed suppressed
updatedAt
required
string format: date-time
request-id
required
string

Identifies this request. Quote it when you contact support.

Idempotent-Replayed
string
Allowed value: true

true when this response replays the stored result of an earlier request with the same Idempotency-Key.