Skip to content
myela

Sends the invoice's pay link, or mints a tracked copy of its URL. A draft is issued first: sending is how an invoice made only through the API gets a url, and it becomes sent. channel is email or sms with a to, or qr or copied with no to; those two send nothing. Every delivery's url is the invoice's own url plus ?d=…. A message the provider refuses is still a 201 with status: "failed"; the invoice stays issued. Takes Idempotency-Key. A paid invoice is 409 INVOICE_ALREADY_PAID; a void one, or one that cannot take a payment, is 409 INVOICE_NOT_PAYABLE. Uses the same capability as creating an invoice, invoices.create.

Send invoice

POST/v1/invoices/{invoice_id}/deliveriesLink

Sends the invoice's pay link, or mints a tracked copy of its URL. A draft is issued first: sending is how an invoice made only through the API gets a url, and it becomes sent. channel is email or sms with a to, or qr or copied with no to; those two send nothing. Every delivery's url is the invoice's own url plus ?d=…. A message the provider refuses is still a 201 with status: "failed"; the invoice stays issued. Takes Idempotency-Key. A paid invoice is 409 INVOICE_ALREADY_PAID; a void one, or one that cannot take a payment, is 409 INVOICE_NOT_PAYABLE. Uses the same capability as creating an invoice, invoices.create.

SandboxSecret keyinvoices.create

Request fields

Edit a field and the generated request updates immediately.

Path parameters
stringrequired

The invoice id in the request path.

Request body
stringrequired

The channel value.

Response contract

The successful wire shape and errors an integration should branch on.

201

Link delivery

application/json
idstringrequired
Unique delivery identifier. Also the list cursor.
object"link_delivery"required
Stable resource discriminator.
channelstringrequired
One of email, sms, qr or copied.
statusstringrequired
created (qr, copied), queued, sent or failed. An open set: more values will be added, and a value you do not know means in progress.
recipientstring
Masked address, email and sms only. The full address is never stored.
urlstringrequired
The link's or invoice's own url plus ?d=…, so opens and payments through this delivery are counted. That url never changes.
sentAtstring
When the message was handed to the provider.
failureCodestring
When status is failed: DELIVERY_SEND_FAILED, DELIVERY_RECIPIENT_INVALID, DELIVERY_RECIPIENT_NOT_ALLOWED or DELIVERY_CHANNEL_UNAVAILABLE.
openedAtstring
First page load through this delivery.
openCountintegerrequired
Page loads through this delivery. Link previewers and scanners count.
paidbooleanrequired
True once a payment through this delivery succeeded.
paymentIdstring
When paid: the payment, as GET /v1/payments/{id} takes it.
createdAtstringrequired
ISO 8601 creation timestamp.
Example response
{
  "id": "ld_01JEXAMPLE",
  "object": "link_delivery",
  "channel": "email",
  "status": "sent",
  "recipient": "p•••@example.com",
  "url": "https://example.com/pay/9Yb3xK1t0QWEs7vLzR2mNc4h?d=Qm9Zb3xK1t0QWEs7vLzR2w",
  "sentAt": "2026-11-18T03:00:00.000Z",
  "failureCode": "DELIVERY_SEND_FAILED",
  "openedAt": "2026-11-18T03:04:10.000Z",
  "openCount": 2,
  "paid": false,
  "paymentId": "txn_01JEXAMPLE",
  "createdAt": "2026-11-18T03:00:00.000Z"
}
Error responses
401authentication_failed

The key is missing, malformed, revoked, or invalid for this environment.

403permission_denied

The key does not have invoices.create.

404not_found

The resource does not exist for this merchant.

422invalid_request

One or more request fields are invalid.