comecerodocs

Create a payment link

POST
/invoices/{invoice_id}/links

Makes a new link the customer can open to see and pay an open invoice, and returns it. Nothing is emailed: use it to send the link yourself. Each call makes a new link; links expire after 30 days. The link is built on the host of the app installed for invoice payments, or else the first app host in your technical settings. Returns 422 when the invoice is closed or there is no host. Takes a secret, trusted or limited token. A limited token must be bound to the invoice and cannot see a draft.

Authorization

headerAuthorizationBearer <token>

A secret, trusted or limited token. See Authentication.

Path Parameters

invoice_id*string

The invoice id.

Response Body

The payment link.

application/json
  1. response

A payment link for an invoice.

link_url*string

The link the customer opens to see and pay the invoice. It is built on the host of the app installed for invoice payments, or else the first app host in your technical settings. It expires after 30 days.

Formaturi
Example Request
curl -X POST 'https://api.comecero.com/api/v1/invoices/string/links'
Example Response
{  "link_url": "https://shop.example.com/link?id=in-7f3c2a91b04e4d6c9a1e"}