API referenceDeals
Close Deal As Customer
POST
Close a Deal as won and convert it into a Customer ("Close as Won").
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.
deal_id*Deal IdSuccessful Response
application/json- response
company_name?string|nulldomain?string|nullindustry?string|nullemployees?string|nullrevenue?string|nullheadquarters?string|nullcountry?string|nullwebsite?string|nullphone?string|nullfounded?string|nullstatus?string|nullsubscription_plan?string|nullsubscription_status?string|nullmrr?|nullarr?|nulllifetime_value?|nullcontract_start?|nullcontract_end?|nullowner_id?string|nullowner_name?string|nullaccount_manager?string|nullstakeholders?array<unknown>|nullprimary_contact_id?string|nullcompany_id?string|nullstripe_customer_id?string|nullhealth_score?number|nullnps_score?integer|nulldocuments?array<unknown>|nulltags?array<unknown>|nullnotes?string|nullcustom_fields?|nullid*Idorganization_id*Organization Iddeal_count?integer|nulltotal_deal_value?|nulllast_interaction?|nullcreated_at*Created AtFormat
date-timeupdated_at?|nullcontact_name?string|nullcontact_email?string|nullcurl -X POST 'https://api.luso8.rexplore.ai/api/v1/deals/customers/from-deal/string'Example Response
{ "company_name": "string", "domain": "string", "industry": "string", "employees": "string", "revenue": "string", "headquarters": "string", "country": "string", "website": "string", "phone": "string", "founded": "string", "status": "string", "subscription_plan": "string", "subscription_status": "string", "mrr": "string", "arr": "string", "lifetime_value": "string", "contract_start": "2019-08-24T14:15:22Z", "contract_end": "2019-08-24T14:15:22Z", "owner_id": "string", "owner_name": "string", "account_manager": "string", "stakeholders": [ null ], "primary_contact_id": "string", "company_id": "string", "stripe_customer_id": "string", "health_score": 0, "nps_score": 0, "documents": [ null ], "tags": [ null ], "notes": "string", "custom_fields": {}, "id": "string", "organization_id": "string", "deal_count": 0, "total_deal_value": "string", "last_interaction": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "contact_name": "string", "contact_email": "string"}