API Reference/Documentation
GitHubDashboard
Core Resources

Opportunities

Manage qualified leads as opportunities through the deal pipeline. Track stages, deal value, win/loss outcomes, and milestones.

Pipeline stages

Custom stages and stage transitions

Forecasting

Pipeline value and forecast data

Win/loss

Outcome recording with reason codes

Convert Lead

Creates an opportunity from a qualified lead. The lead status is updated accordingly.

Body Parameters

ParameterTypeDescription
leadIdreq
stringLead ID to convert
value
numberDeal value
currency
stringCurrency code
stageId
stringInitial stage ID
Request
HTTP
http
POST https://api.leadron.io/v1/opportunities/convert
X-API-Key: ldr_live_sk_a1b2c3d4e5f6g7h8i9j0
Content-Type: application/json
Body
json
1
2
3
4
5
{
  "leadId": "6789abcdef012345",
  "value": 25000,
  "currency": "USD"
}
Response201Created
201 Response
json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "success": true,
  "status": 201,
  "message": "Resource created successfully",
  "data": {
    "id": "opp_abc123",
    "leadId": "6789abcdef012345",
    "value": 25000,
    "stage": "qualified",
    "createdAt": "2026-02-08T14:30:00.000Z"
  },
  "meta": {
    "timestamp": "2026-02-08T14:30:00.000Z",
    "version": "v1"
  }
}

Create Opportunity

List Opportunities

Get Opportunity

Update & Stage

Record Outcome

Milestones

Stages & Forecast