Create a revenue item for a lead
Record revenue against a referral. Supports upsert via external_identifier: sending the same value again for the same referral updates that revenue item instead of adding another, and also returns 201. Unpaid commission invoices on the referral are recalculated straight away.
Look up the referral by slug (default), id, email, company_name, or external ID using the ?by= query param. Requires payment_write permission.
Request
- Base URL: https://api.lassotech.com/api/v1/rest
- URL: https://api.lassotech.com/api/v1/rest/leads/{lead_identifier}/revenue_items
- Auth: API key in header x-lasso-access-token
Path parameters
Lead identifier (slug by default, or value matching by param)
Query parameters
How to read the referral identifier in the path. See Resource Lookup.
Required when by=external. e.g. HUBSPOT, SALESFORCE, PIPEDRIVE
Required when by=external (optional for a Salesforce partner). e.g. company, deal, opportunity, account
Request body
Example request
{
"amount": 1000,
"currency": "USD",
"recorded_at": "2026-01-15"
}Response
Revenue item created, or updated when external_identifier matched an existing one
Changes
No recorded changes to this operation across all 1 revision of this API.