API referenceDeals
Create Deal From Lead
POST
Promote a Lead to a Deal when it becomes sales-qualified.
Required scope: deals:write
header
AuthorizationBearer <luso8_sk_live_<40 characters>>A workspace API key, sent as Authorization: Bearer <key>. Create keys in Settings → Developers → API keys.
lead_id*Lead Idapplication/json- body
product_line_items*array<>Successful Response
application/json- response
name?string|nulldescription?string|nullstage?string|nullpriority?string|nullamount?|nullcurrency?|Default
"USD"probability?number|nullexpected_revenue?|nullprospect_id?string|nullcustomer_id?string|nulllead_id?string|nullcontact_id?string|nullcompany_id?string|nullowner_id?string|nullowner_name?string|nullclose_date?|nulltags?array<unknown>|nullnotes?string|nullcustom_fields?|nullid*Idorganization_id*Organization Idwon_date?|nulllost_date?|nulllost_reason?string|nullcreated_at*Created AtFormat
date-timeupdated_at?|nullcontact_name?string|nullcontact_email?string|nullcompany_name?string|nullproduct_line_items?array<>Default
[]curl -X POST 'https://api.luso8.rexplore.ai/api/v1/deals/deals/from-lead/string' \ -H 'Content-Type: application/json' \ -d '{ "product_line_items": [ { "product_id": "string" } ]}'Example Response
{ "name": "string", "description": "string", "stage": "string", "priority": "string", "amount": "string", "currency": "USD", "probability": 0, "expected_revenue": "string", "prospect_id": "string", "customer_id": "string", "lead_id": "string", "contact_id": "string", "company_id": "string", "owner_id": "string", "owner_name": "string", "close_date": "2019-08-24T14:15:22Z", "tags": [ null ], "notes": "string", "custom_fields": {}, "id": "string", "organization_id": "string", "won_date": "2019-08-24T14:15:22Z", "lost_date": "2019-08-24T14:15:22Z", "lost_reason": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "contact_name": "string", "contact_email": "string", "company_name": "string", "product_line_items": []}