Skip to main content
POST
/
invoice-recurring
/
{template_id}
/
draft-next
Draft the next invoice from a template
curl --request POST \
  --url https://api.app.lastaccountingcompany.com/portal/invoice-recurring/{template_id}/draft-next \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": "<string>",
  "issue_date": "<string>"
}
'
{
  "template": {},
  "draft": {}
}

Authorizations

Authorization
string
header
required

Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....

Path Parameters

template_id
string
required

Body

application/json
customer_id
string

Target company. Optional for API keys.

issue_date
string

Override issue date, YYYY-MM-DD.

Response

Template and the drafted invoice.

template
object
draft
object