Invoice Preview
Preview invoice lines for a contract period.
post/v2/contracts/{contract_id}/invoice-preview
Request
- Base URLhttps://docs.ledgerup.ai (the document declares no server; this is the origin it was published from)
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
contract_idstring required
Request body
Example request
{
"period_start_at": 1767225600,
"period_end_at": 1767225600
}Response
Success.
Example response
{
"period_start_at": 1767225600,
"period_end_at": 1767225600,
"lines": [
{
"invoice_group_key": "usage_credits",
"service_period_start_at": 1767225600,
"service_period_end_at": 1767225600
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.