Download OpenAPI specification:
Powered by OplaCRM.
Url OPENAPI: https://api-admin.oplacrm.com/api
{- "first_name": "First Name Contact",
- "last_name": "Last Name Contact",
- "gender": "MALE",
- "email": "Email",
- "birthday": "2010-10-27T17:00:00.000Z",
- "department": "Department",
- "description": "Description",
- "account_external_id": "ACCOUNT-007",
- "external_id": "CONTACT-007",
- "address": "Sarina, An Loi Dong",
- "phone_work": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "phone_other": {
- "phone": "909080808",
- "call_code": "+383",
- "country_code": "XK",
- "country_name": "Kosovo"
}, - "owner_id": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "name": "string",
- "company_id": "string",
- "created_by": "string",
- "updated_by": "string",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| external_id required | string |
| first_name required | string |
| last_name required | string |
| gender | string (Gender) Enum: "MALE" "FEMALE" "OTHER" |
| email required | string |
| birthday required | string |
| department required | string |
| description required | string |
| external_id required | string Employee External Id |
| address required | string |
| phone_work required | object |
| phone_other required | object |
| website required | string |
| owner_id required | string Employee External Id |
{- "first_name": "First Name Contact",
- "last_name": "Last Name Contact",
- "gender": "MALE",
- "email": "Email",
- "birthday": "2010-10-27T17:00:00.000Z",
- "department": "Department",
- "description": "Description",
- "external_id": "MNV_001",
- "address": "Sarina, An Loi Dong",
- "phone_work": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "phone_other": {
- "phone": "909080808",
- "call_code": "+383",
- "country_code": "XK",
- "country_name": "Kosovo"
}, - "owner_id": "MNV_001"
}{- "first_name": "First Name Contact",
- "last_name": "Last Name Contact",
- "gender": "MALE",
- "email": "Email",
- "birthday": "2010-10-27T17:00:00.000Z",
- "department": "Department",
- "description": "Description",
- "account_external_id": "ACCOUNT-007",
- "external_id": "CONTACT-007",
- "address": "Sarina, An Loi Dong",
- "phone_work": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "phone_other": {
- "phone": "909080808",
- "call_code": "+383",
- "country_code": "XK",
- "country_name": "Kosovo"
}, - "owner_id": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "name": "string",
- "company_id": "string",
- "created_by": "string",
- "updated_by": "string",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| external_id required | string |
{- "first_name": "First Name Contact",
- "last_name": "Last Name Contact",
- "gender": "MALE",
- "email": "Email",
- "birthday": "2010-10-27T17:00:00.000Z",
- "department": "Department",
- "description": "Description",
- "account_external_id": "ACCOUNT-007",
- "external_id": "CONTACT-007",
- "address": "Sarina, An Loi Dong",
- "phone_work": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "phone_other": {
- "phone": "909080808",
- "call_code": "+383",
- "country_code": "XK",
- "country_name": "Kosovo"
}, - "owner_id": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "name": "string",
- "company_id": "string",
- "created_by": "string",
- "updated_by": "string",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| skip required | number Default: 0 |
| take required | number Default: 20 |
| account_external_id required | string Default: "" |
| external_id required | string Default: "" |
[- {
- "first_name": "First Name Contact",
- "last_name": "Last Name Contact",
- "gender": "MALE",
- "email": "Email",
- "birthday": "2010-10-27T17:00:00.000Z",
- "department": "Department",
- "description": "Description",
- "account_external_id": "ACCOUNT-007",
- "external_id": "CONTACT-007",
- "address": "Sarina, An Loi Dong",
- "phone_work": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "phone_other": {
- "phone": "909080808",
- "call_code": "+383",
- "country_code": "XK",
- "country_name": "Kosovo"
}, - "owner_id": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "name": "string",
- "company_id": "string",
- "created_by": "string",
- "updated_by": "string",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}
]Create a contact with Opla CRM, external_id will be key
| first_name required | string |
| last_name required | string |
| gender | string (Gender) Enum: "MALE" "FEMALE" "OTHER" |
| email required | string |
| birthday required | string |
| department required | string |
| description required | string |
| account_external_id required | string External ID of Account |
| external_id required | string |
| address required | string |
| phone_work required | object |
| phone_other required | object |
| website required | string |
| owner_id required | string Employee External Id |
{- "first_name": "First Name Contact",
- "last_name": "Last Name Contact",
- "gender": "MALE",
- "email": "Email",
- "birthday": "2010-10-27T17:00:00.000Z",
- "department": "Department",
- "description": "Description",
- "account_external_id": "ACCOUNT-007",
- "external_id": "CONTACT-007",
- "address": "Sarina, An Loi Dong",
- "phone_work": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "phone_other": {
- "phone": "909080808",
- "call_code": "+383",
- "country_code": "XK",
- "country_name": "Kosovo"
}, - "owner_id": "MNV_001"
}{- "first_name": "First Name Contact",
- "last_name": "Last Name Contact",
- "gender": "MALE",
- "email": "Email",
- "birthday": "2010-10-27T17:00:00.000Z",
- "department": "Department",
- "description": "Description",
- "account_external_id": "ACCOUNT-007",
- "external_id": "CONTACT-007",
- "address": "Sarina, An Loi Dong",
- "phone_work": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "phone_other": {
- "phone": "909080808",
- "call_code": "+383",
- "country_code": "XK",
- "country_name": "Kosovo"
}, - "owner_id": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "name": "string",
- "company_id": "string",
- "created_by": "string",
- "updated_by": "string",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}{- "name": "Name Account",
- "long_name": "Long Name Account",
- "description": "Description",
- "tax_identification_number": "Tax of Account",
- "email": "Email",
- "external_id": "ACCOUNT-007",
- "address": "Sarina, An Loi Dong",
- "phone": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "is_public": false,
- "note": "Note",
- "account_type": "Account Type",
- "source_id": "9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q",
- "industry_id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
- "owner_id": "MNV_001",
- "created_by": "MNV_001",
- "updated_by": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| external_id required | string |
| name required | string |
| long_name required | string |
| description required | string |
| tax_identification_number required | string |
| email required | string |
| external_id required | string Employee External Id |
| address required | string |
| phone required | object |
| website required | string |
| is_public required | boolean Default: false |
| note required | string |
| account_type required | object |
| source_id required | string Source ID |
| industry_id required | string Industry ID |
| owner_id required | string Employee External Id |
| created_by required | string Employee External Id |
| updated_by required | string Employee External Id |
| custom_fields required | Array of strings |
{- "name": "Name Account",
- "long_name": "Long Name Account",
- "description": "Description",
- "tax_identification_number": "Tax of Account",
- "email": "Email",
- "external_id": "MNV_001",
- "address": "Sarina, An Loi Dong",
- "phone": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "is_public": false,
- "note": "Note",
- "account_type": "Account Type",
- "source_id": "9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q",
- "industry_id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
- "owner_id": "MNV_001",
- "created_by": "MNV_001",
- "updated_by": "MNV_001",
- "custom_fields": "Custom Field Value"
}{- "name": "Name Account",
- "long_name": "Long Name Account",
- "description": "Description",
- "tax_identification_number": "Tax of Account",
- "email": "Email",
- "external_id": "ACCOUNT-007",
- "address": "Sarina, An Loi Dong",
- "phone": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "is_public": false,
- "note": "Note",
- "account_type": "Account Type",
- "source_id": "9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q",
- "industry_id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
- "owner_id": "MNV_001",
- "created_by": "MNV_001",
- "updated_by": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| skip required | number Default: 0 |
| take required | number Default: 20 |
| external_id required | string Default: "" |
| tax_identification_number required | string Default: "" |
[- {
- "name": "Name Account",
- "long_name": "Long Name Account",
- "description": "Description",
- "tax_identification_number": "Tax of Account",
- "email": "Email",
- "external_id": "ACCOUNT-007",
- "address": "Sarina, An Loi Dong",
- "phone": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "is_public": false,
- "note": "Note",
- "account_type": "Account Type",
- "source_id": "9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q",
- "industry_id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
- "owner_id": "MNV_001",
- "created_by": "MNV_001",
- "updated_by": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}
]Create a account with Opla CRM, external_id will be key
| name required | string |
| long_name required | string |
| description required | string |
| tax_identification_number required | string |
| email required | string |
| external_id required | string |
| address required | string |
| phone required | object |
| website required | string |
| is_public required | boolean Default: false |
| note required | string |
| account_type required | object |
| source_id required | string Source ID |
| industry_id required | string Industry ID |
| owner_id required | string Employee External Id |
| created_by required | string Employee External Id |
| updated_by required | string Employee External Id |
{- "name": "Name Account",
- "long_name": "Long Name Account",
- "description": "Description",
- "tax_identification_number": "Tax of Account",
- "email": "Email",
- "external_id": "ACCOUNT-007",
- "address": "Sarina, An Loi Dong",
- "phone": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "is_public": false,
- "note": "Note",
- "account_type": "Account Type",
- "source_id": "9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q",
- "industry_id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
- "owner_id": "MNV_001",
- "created_by": "MNV_001",
- "updated_by": "MNV_001"
}{- "name": "Name Account",
- "long_name": "Long Name Account",
- "description": "Description",
- "tax_identification_number": "Tax of Account",
- "email": "Email",
- "external_id": "ACCOUNT-007",
- "address": "Sarina, An Loi Dong",
- "phone": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "is_public": false,
- "note": "Note",
- "account_type": "Account Type",
- "source_id": "9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q",
- "industry_id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
- "owner_id": "MNV_001",
- "created_by": "MNV_001",
- "updated_by": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| uuid required | string |
| name required | string |
| long_name required | string |
| description required | string |
| tax_identification_number required | string |
| email required | string |
| external_id required | string Employee External Id |
| address required | string |
| phone required | object |
| website required | string |
| is_public required | boolean Default: false |
| note required | string |
| account_type required | object |
| source_id required | string Source ID |
| industry_id required | string Industry ID |
| owner_id required | string Employee External Id |
| created_by required | string Employee External Id |
| updated_by required | string Employee External Id |
| custom_fields required | Array of strings |
{- "name": "Name Account",
- "long_name": "Long Name Account",
- "description": "Description",
- "tax_identification_number": "Tax of Account",
- "email": "Email",
- "external_id": "MNV_001",
- "address": "Sarina, An Loi Dong",
- "phone": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "is_public": false,
- "note": "Note",
- "account_type": "Account Type",
- "source_id": "9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q",
- "industry_id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
- "owner_id": "MNV_001",
- "created_by": "MNV_001",
- "updated_by": "MNV_001",
- "custom_fields": "Custom Field Value"
}{- "name": "Name Account",
- "long_name": "Long Name Account",
- "description": "Description",
- "tax_identification_number": "Tax of Account",
- "email": "Email",
- "external_id": "ACCOUNT-007",
- "address": "Sarina, An Loi Dong",
- "phone": {
- "phone": "909080808",
- "call_code": "+84",
- "country_code": "VN",
- "country_name": "Vietnam"
}, - "is_public": false,
- "note": "Note",
- "account_type": "Account Type",
- "source_id": "9a8b7c6d-5e4f-3g2h-1i0j-kl9m8n7o6p5q",
- "industry_id": "1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6",
- "owner_id": "MNV_001",
- "created_by": "MNV_001",
- "updated_by": "MNV_001",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| account_id required | string Account External Id |
| employee_id required | string Employee External Id |
{- "account_id": "ACT-001",
- "employee_id": "EMP-001"
}{- "statusCode": 200,
- "message": "Request was successful"
}| account_id required | string Account External Id |
| employee_id required | string Employee External Id |
{- "account_id": "ACT-001",
- "employee_id": "EMP-001"
}{- "statusCode": 200,
- "message": "Request was successful"
}| account_id required | string Account External Id |
| employee_id required | string Employee External Id |
{- "account_id": "ACT-001",
- "employee_id": "EMP-001"
}{- "statusCode": 200,
- "message": "Request was successful"
}{- "id": "660f4375-1c7a-4d2c-8cf6-f04aa355122f",
- "name": "Log stage",
- "description": "string",
- "amount": 0,
- "amount_usd_dollar": 0,
- "date_closed": "2025-07-24",
- "date_open": "2025-06-24T00:00:00+00:00",
- "stage_compact": "CLOSE_WON",
- "owner_id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "short_id": "2025.00186",
- "invoice": 0,
- "tax_inclusive_amount": "0",
- "date_closed_actual": "2025-06-24",
- "stage_logs": [
- {
- "id": "39329812-210a-4851-be3f-e3b49caf093c",
- "type": "CLOSE_NOTE",
- "value": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "created_at": "2025-06-24T16:22:21.400669+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}, - "close_reason_details": {
- "id": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "name": "Chất lượng sản phẩm tốt",
- "type": "CLOSE_WON"
}
}, - {
- "id": "30fcff76-c738-4563-9eec-58168a1ce349",
- "type": "PROJECT_LOG_STAGE",
- "value": "Log contract",
- "created_at": "2025-06-24T16:22:14.203246+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}
}
]
}| id required | string |
| name required | string Opportunity Name |
| external_id required | string External Id |
| locked required | boolean Locked |
| opportunities_joint_id | string Opportunity Joint - UUID of OPLA |
| stage_close | string (StageCompact) Enum: "CLOSE_WON" "CLOSE_LOST" |
| sale_process_stage required | string |
| close_reason required | string |
| date_closed required | string |
required | Array of objects (CreateOpportunityProductDto) |
required | Array of objects (CreateOpportunityProductDto) |
required | Array of objects (CreateOpportunityInvoiceDto) |
required | Array of objects (CustomFieldValueDto) |
{- "name": "Hasura002",
- "external_id": "API 01",
- "locked": true,
- "opportunities_joint_id": "b8e45bc9-cfbd-4196-a3ae-199a64215f84",
- "stage_close": "CLOSE_WON",
- "sale_process_stage": "string",
- "close_reason": "string",
- "date_closed": "2024-08-25",
- "products": [
- {
- "product_external_id": "P-E-001",
- "supplier_external_id": "S-E-002",
- "quantity": 1,
- "unit_price": 100000,
- "description": "Description",
- "discount_type_value": "PERCENT",
- "discount": 0
}
], - "opportunities_products": [
- {
- "product_external_id": "P-E-001",
- "supplier_external_id": "S-E-002",
- "quantity": 1,
- "unit_price": 100000,
- "description": "Description",
- "discount_type_value": "PERCENT",
- "discount": 0
}
], - "invoices": [
- {
- "status_process_id": "2e0cf0dd-c1a7-496f-a89c-cfe2b2c419f6",
- "expected_date": "2024-07-05T03:41:37.000Z",
- "actual_date": "2024-07-05T03:41:37.000Z",
- "value": 3213123,
- "name": "Invoice 01",
- "description": "Invoice description",
- "description_stage": "Description stage",
- "invoice_forecast_id": "1596884d-a639-4e52-bb76-e9588030c11f",
- "status_process_stage_id": "7e4e4588-3d23-49c0-a71f-325d24a3e1b3"
}
], - "custom_fields": [
- {
- "custom_field_id": "string",
- "value": "string"
}
]
}{- "id": "660f4375-1c7a-4d2c-8cf6-f04aa355122f",
- "name": "Log stage",
- "description": "string",
- "amount": 0,
- "amount_usd_dollar": 0,
- "date_closed": "2025-07-24",
- "date_open": "2025-06-24T00:00:00+00:00",
- "stage_compact": "CLOSE_WON",
- "owner_id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "short_id": "2025.00186",
- "invoice": 0,
- "tax_inclusive_amount": "0",
- "date_closed_actual": "2025-06-24",
- "stage_logs": [
- {
- "id": "39329812-210a-4851-be3f-e3b49caf093c",
- "type": "CLOSE_NOTE",
- "value": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "created_at": "2025-06-24T16:22:21.400669+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}, - "close_reason_details": {
- "id": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "name": "Chất lượng sản phẩm tốt",
- "type": "CLOSE_WON"
}
}, - {
- "id": "30fcff76-c738-4563-9eec-58168a1ce349",
- "type": "PROJECT_LOG_STAGE",
- "value": "Log contract",
- "created_at": "2025-06-24T16:22:14.203246+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}
}
]
}{- "id": "660f4375-1c7a-4d2c-8cf6-f04aa355122f",
- "name": "Log stage",
- "description": "string",
- "amount": 0,
- "amount_usd_dollar": 0,
- "date_closed": "2025-07-24",
- "date_open": "2025-06-24T00:00:00+00:00",
- "stage_compact": "CLOSE_WON",
- "owner_id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "short_id": "2025.00186",
- "invoice": 0,
- "tax_inclusive_amount": "0",
- "date_closed_actual": "2025-06-24",
- "stage_logs": [
- {
- "id": "39329812-210a-4851-be3f-e3b49caf093c",
- "type": "CLOSE_NOTE",
- "value": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "created_at": "2025-06-24T16:22:21.400669+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}, - "close_reason_details": {
- "id": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "name": "Chất lượng sản phẩm tốt",
- "type": "CLOSE_WON"
}
}, - {
- "id": "30fcff76-c738-4563-9eec-58168a1ce349",
- "type": "PROJECT_LOG_STAGE",
- "value": "Log contract",
- "created_at": "2025-06-24T16:22:14.203246+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}
}
]
}| id required | string |
| name required | string Opportunity Name |
| external_id required | string External Id |
| locked required | boolean Locked |
| opportunities_joint_id | string Opportunity Joint - UUID of OPLA |
| stage_close | string (StageCompact) Enum: "CLOSE_WON" "CLOSE_LOST" |
| sale_process_stage required | string |
| close_reason required | string |
| date_closed required | string |
required | Array of objects (CreateOpportunityProductDto) |
required | Array of objects (CreateOpportunityProductDto) |
required | Array of objects (CreateOpportunityInvoiceDto) |
required | Array of objects (CustomFieldValueDto) |
{- "name": "Hasura002",
- "external_id": "API 01",
- "locked": true,
- "opportunities_joint_id": "b8e45bc9-cfbd-4196-a3ae-199a64215f84",
- "stage_close": "CLOSE_WON",
- "sale_process_stage": "string",
- "close_reason": "string",
- "date_closed": "2024-08-25",
- "products": [
- {
- "product_external_id": "P-E-001",
- "supplier_external_id": "S-E-002",
- "quantity": 1,
- "unit_price": 100000,
- "description": "Description",
- "discount_type_value": "PERCENT",
- "discount": 0
}
], - "opportunities_products": [
- {
- "product_external_id": "P-E-001",
- "supplier_external_id": "S-E-002",
- "quantity": 1,
- "unit_price": 100000,
- "description": "Description",
- "discount_type_value": "PERCENT",
- "discount": 0
}
], - "invoices": [
- {
- "status_process_id": "2e0cf0dd-c1a7-496f-a89c-cfe2b2c419f6",
- "expected_date": "2024-07-05T03:41:37.000Z",
- "actual_date": "2024-07-05T03:41:37.000Z",
- "value": 3213123,
- "name": "Invoice 01",
- "description": "Invoice description",
- "description_stage": "Description stage",
- "invoice_forecast_id": "1596884d-a639-4e52-bb76-e9588030c11f",
- "status_process_stage_id": "7e4e4588-3d23-49c0-a71f-325d24a3e1b3"
}
], - "custom_fields": [
- {
- "custom_field_id": "string",
- "value": "string"
}
]
}{- "id": "660f4375-1c7a-4d2c-8cf6-f04aa355122f",
- "name": "Log stage",
- "description": "string",
- "amount": 0,
- "amount_usd_dollar": 0,
- "date_closed": "2025-07-24",
- "date_open": "2025-06-24T00:00:00+00:00",
- "stage_compact": "CLOSE_WON",
- "owner_id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "short_id": "2025.00186",
- "invoice": 0,
- "tax_inclusive_amount": "0",
- "date_closed_actual": "2025-06-24",
- "stage_logs": [
- {
- "id": "39329812-210a-4851-be3f-e3b49caf093c",
- "type": "CLOSE_NOTE",
- "value": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "created_at": "2025-06-24T16:22:21.400669+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}, - "close_reason_details": {
- "id": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "name": "Chất lượng sản phẩm tốt",
- "type": "CLOSE_WON"
}
}, - {
- "id": "30fcff76-c738-4563-9eec-58168a1ce349",
- "type": "PROJECT_LOG_STAGE",
- "value": "Log contract",
- "created_at": "2025-06-24T16:22:14.203246+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}
}
]
}| skip required | number Default: 0 |
| take required | number <= 200 Default: 20 Maximum 200 records per request |
| sales_process required | string Default: null |
| sales_process_stages required | string Default: null |
{- "id": "660f4375-1c7a-4d2c-8cf6-f04aa355122f",
- "name": "Log stage",
- "description": "string",
- "amount": 0,
- "amount_usd_dollar": 0,
- "date_closed": "2025-07-24",
- "date_open": "2025-06-24T00:00:00+00:00",
- "stage_compact": "CLOSE_WON",
- "owner_id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "short_id": "2025.00186",
- "invoice": 0,
- "tax_inclusive_amount": "0",
- "date_closed_actual": "2025-06-24",
- "stage_logs": [
- {
- "id": "39329812-210a-4851-be3f-e3b49caf093c",
- "type": "CLOSE_NOTE",
- "value": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "created_at": "2025-06-24T16:22:21.400669+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}, - "close_reason_details": {
- "id": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "name": "Chất lượng sản phẩm tốt",
- "type": "CLOSE_WON"
}
}, - {
- "id": "30fcff76-c738-4563-9eec-58168a1ce349",
- "type": "PROJECT_LOG_STAGE",
- "value": "Log contract",
- "created_at": "2025-06-24T16:22:14.203246+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}
}
]
}| name required | string |
| account_external_id required | string |
| account_id required | string |
| contacts_external_ids required | Array of strings |
| contacts_ids required | Array of strings |
| date_open required | string |
| date_closed required | string |
required | Array of objects (OpportunitiesProductDto) |
| forecast required | string |
| type required | string |
| source required | string |
| opportunities_joint required | string |
| sale_process required | string |
| sale_process_stage required | string |
required | Array of objects (ContributorDto) List of contributors |
| external_id required | string |
| owner_external_id required | string |
| owner_email required | string |
| application required | string |
required | Array of objects (CustomFieldValueDto) |
{- "name": "string",
- "account_external_id": "string",
- "account_id": "string",
- "contacts_external_ids": [
- "string"
], - "contacts_ids": [
- "string"
], - "date_open": "string",
- "date_closed": "string",
- "opportunities_products": [
- {
- "product_external_id": "string",
- "supplier_external_id": "string",
- "unit_of_measure": "string",
- "unit_price": 0,
- "quantity": 0,
- "discount": 0,
- "currency": "string",
- "description": "string"
}
], - "forecast": "string",
- "type": "string",
- "source": "string",
- "opportunities_joint": "string",
- "sale_process": "string",
- "sale_process_stage": "string",
- "contributors": [
- {
- "email": "contributor@company.com",
- "permission": "READ_ONLY"
}
], - "external_id": "string",
- "owner_external_id": "string",
- "owner_email": "string",
- "application": "application",
- "custom_fields": [
- {
- "custom_field_id": "string",
- "value": "string"
}
]
}| id required | string |
| email required | string Email of the contributor to add |
| permission required | string Enum: "READ_ONLY" "READ_WRITE" Permission level |
{- "email": "contributor@company.com",
- "permission": "READ_ONLY"
}{- "id": "660f4375-1c7a-4d2c-8cf6-f04aa355122f",
- "name": "Log stage",
- "description": "string",
- "amount": 0,
- "amount_usd_dollar": 0,
- "date_closed": "2025-07-24",
- "date_open": "2025-06-24T00:00:00+00:00",
- "stage_compact": "CLOSE_WON",
- "owner_id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "short_id": "2025.00186",
- "invoice": 0,
- "tax_inclusive_amount": "0",
- "date_closed_actual": "2025-06-24",
- "stage_logs": [
- {
- "id": "39329812-210a-4851-be3f-e3b49caf093c",
- "type": "CLOSE_NOTE",
- "value": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "created_at": "2025-06-24T16:22:21.400669+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}, - "close_reason_details": {
- "id": "5be09ecc-4cb0-4719-831b-d683a3489b99",
- "name": "Chất lượng sản phẩm tốt",
- "type": "CLOSE_WON"
}
}, - {
- "id": "30fcff76-c738-4563-9eec-58168a1ce349",
- "type": "PROJECT_LOG_STAGE",
- "value": "Log contract",
- "created_at": "2025-06-24T16:22:14.203246+00:00",
- "creator": {
- "id": "f11c8149-4cd9-44b1-bea9-1ceeff1c91bc",
- "full_name": "Stephen Nguyen",
- "email": "trial02@oplacrm.com.dev",
- "external_id": "E-01"
}
}
]
}Optimized opportunities API with exact same structure as original but much faster performance. This is the new standard API endpoint. Maximum 200 records per request.
| skip required | number Default: 0 |
| take required | number <= 200 Default: 20 Maximum 200 records per request |
| sales_process required | string Default: null |
| sales_process_stages required | string Default: null |
| skip required | number Default: 0 Examples: skip=0 skip=20 skip=40 skip=60 Number of records to skip |
| take required | number Default: 20 Examples: take=10 take=20 take=50 take=100 Number of records to take |
| external_id required | string Examples: external_id=LEAD-001 external_id=LEAD-002 external_id=CRM-123 External ID of the lead |
[- {
- "name": "John Smith",
- "job_title": "Software Engineer",
- "gender": "MALE",
- "address": "123 Tech Street, Silicon Valley",
- "note": "Note lead",
- "account_name": "Acme Corporation",
- "contact_name": "Jane Doe",
- "phone": {
- "country_code": "+1",
- "number": "5551234567"
}, - "email": "john.smith@acme.com",
- "owner_id": "12345",
- "external_id": "LEAD-001",
- "external_from": "CRM",
- "lead_segmentation": "Enterprise",
- "lead_status": "New",
- "industry": "Technology",
- "source": "Website",
- "custom_fields": [
- {
- "field": "industry",
- "value": "Technology"
}, - {
- "field": "source",
- "value": "Website"
}
], - "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}
]Create a lead with Opla CRM, external_id will be key
| name required | string Name of the lead |
| job_title | string Job title of the lead |
| gender | string Enum: "MALE" "FEMALE" "OTHER" Gender of the lead |
| address | string Physical address of the lead |
| note | string Note lead |
| account_name required | string Name of the account/company |
| contact_name | string Name of the primary contact |
| phone | object Phone information |
string Email address of the lead | |
| owner_id | string ID of the lead owner |
| external_id | string non-empty External identifier for the lead |
| external_from | string Source system of the external ID |
| lead_segmentation | string Lead segmentation name |
| lead_status | string Lead status name |
| industry | string Industry name |
| source | string Lead source name |
Array of objects (CustomFieldDto) Array of custom fields |
{- "name": "John Smith",
- "job_title": "Software Engineer",
- "gender": "MALE",
- "address": "123 Tech Street, Silicon Valley",
- "note": "Note lead",
- "account_name": "Acme Corporation",
- "contact_name": "Jane Doe",
- "phone": {
- "country_code": "+1",
- "number": "5551234567"
}, - "email": "john.smith@acme.com",
- "owner_id": "12345",
- "external_id": "LEAD-001",
- "external_from": "CRM",
- "lead_segmentation": "Enterprise",
- "lead_status": "New",
- "industry": "Technology",
- "source": "Website",
- "custom_fields": [
- {
- "field": "industry",
- "value": "Technology"
}, - {
- "field": "source",
- "value": "Website"
}
]
}{- "name": "John Smith",
- "job_title": "Software Engineer",
- "gender": "MALE",
- "address": "123 Tech Street, Silicon Valley",
- "note": "Note lead",
- "account_name": "Acme Corporation",
- "contact_name": "Jane Doe",
- "phone": {
- "country_code": "+1",
- "number": "5551234567"
}, - "email": "john.smith@acme.com",
- "owner_id": "12345",
- "external_id": "LEAD-001",
- "external_from": "CRM",
- "lead_segmentation": "Enterprise",
- "lead_status": "New",
- "industry": "Technology",
- "source": "Website",
- "custom_fields": [
- {
- "field": "industry",
- "value": "Technology"
}, - {
- "field": "source",
- "value": "Website"
}
], - "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| id required | string |
| name required | string Name of the lead |
| job_title | string Job title of the lead |
| gender | string Enum: "MALE" "FEMALE" "OTHER" Gender of the lead |
| address | string Physical address of the lead |
| note | string Note lead |
| account_name required | string Name of the account/company |
| contact_name | string Name of the primary contact |
| phone | object Phone information |
string Email address of the lead | |
| owner_id | string ID of the lead owner |
| external_from | string Source system of the external ID |
| lead_segmentation | string Lead segmentation name |
| lead_status | string Lead status name |
| industry | string Industry name |
| source | string Lead source name |
required | Array of objects (CustomFieldValueDto) |
{- "name": "John Smith",
- "job_title": "Software Engineer",
- "gender": "MALE",
- "address": "123 Tech Street, Silicon Valley",
- "note": "Note lead",
- "account_name": "Acme Corporation",
- "contact_name": "Jane Doe",
- "phone": {
- "country_code": "+1",
- "number": "5551234567"
}, - "email": "john.smith@acme.com",
- "owner_id": "12345",
- "external_from": "CRM",
- "lead_segmentation": "Enterprise",
- "lead_status": "New",
- "industry": "Technology",
- "source": "Website",
- "custom_fields": [
- {
- "custom_field_id": "string",
- "value": "string"
}
]
}{- "name": "John Smith",
- "job_title": "Software Engineer",
- "gender": "MALE",
- "address": "123 Tech Street, Silicon Valley",
- "note": "Note lead",
- "account_name": "Acme Corporation",
- "contact_name": "Jane Doe",
- "phone": {
- "country_code": "+1",
- "number": "5551234567"
}, - "email": "john.smith@acme.com",
- "owner_id": "12345",
- "external_id": "LEAD-001",
- "external_from": "CRM",
- "lead_segmentation": "Enterprise",
- "lead_status": "New",
- "industry": "Technology",
- "source": "Website",
- "custom_fields": [
- {
- "field": "industry",
- "value": "Technology"
}, - {
- "field": "source",
- "value": "Website"
}
], - "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| first_name required | string |
| last_name required | string |
| email required | string |
| dimension_id required | string Default: null |
| site_id required | string Default: null |
| external_id required | string Default: null |
{- "first_name": "Jone",
- "last_name": "Doe",
- "email": "jone.doe@oplacrm.com",
- "dimension_id": "DMS-001",
- "site_id": "S-001",
- "external_id": "EMP-001"
}{- "statusCode": 401,
- "message": "Unauthorized"
}| skip required | number Default: 0 |
| take required | number Default: 20 |
| search required | string Default: "" |
[- {
- "first_name": "Jone",
- "last_name": "Doe",
- "email": "jone.doe@oplacrm.com",
- "external_id": "EMP-001"
}
]| id required | string |
| first_name required | string |
| last_name required | string |
| dimension_id required | string Default: null |
| site_id required | string Default: null |
{- "first_name": "Jone",
- "last_name": "Doe",
- "dimension_id": "DMS-001",
- "site_id": "S-001"
}{- "statusCode": 401,
- "message": "Unauthorized"
}Create a lead with Opla CRM, external_id will be key
| name required | string Default: "name" |
| description required | string Default: "description" |
| price required | number Default: 0 |
| supplier_id required | string |
| unit_of_measure_id required | string |
| category_id required | string |
| sub_category_id required | string |
| external_id required | string Default: 1753866687345 |
{- "name": "name",
- "description": "description",
- "price": 0,
- "supplier_id": "string",
- "unit_of_measure_id": "string",
- "category_id": "string",
- "sub_category_id": "string",
- "external_id": 1753866687345
}{- "name": "name",
- "description": "description",
- "price": 0,
- "supplier_id": "string",
- "unit_of_measure_id": "string",
- "category_id": "string",
- "sub_category_id": "string",
- "external_id": 1753866687345,
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}[- {
- "name": "name",
- "description": "description",
- "price": 0,
- "supplier_id": "string",
- "unit_of_measure_id": "string",
- "category_id": "string",
- "sub_category_id": "string",
- "external_id": 1753866687345,
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}
]| external_id required | string |
| name required | string Default: "name" |
| description required | string Default: "description" |
| price required | number Default: 0 |
| supplier_id required | string |
| unit_of_measure_id required | string |
| category_id required | string |
| sub_category_id required | string |
{- "name": "name",
- "description": "description",
- "price": 0,
- "supplier_id": "string",
- "unit_of_measure_id": "string",
- "category_id": "string",
- "sub_category_id": "string"
}Create or update a product based on external_id
| name required | string Default: "name" |
| description required | string Default: "description" |
| price required | number Default: 0 |
| supplier_id required | string |
| unit_of_measure_id required | string |
| category_id required | string |
| sub_category_id required | string |
| external_id required | string Default: 1753866687347 |
| id required | string |
| deleted required | number Default: 0 Enum: 0 1 Delete status: 0 - Active, 1 - Deleted |
{- "name": "name",
- "description": "description",
- "price": 0,
- "supplier_id": "string",
- "unit_of_measure_id": "string",
- "category_id": "string",
- "sub_category_id": "string",
- "external_id": 1753866687347,
- "id": "string",
- "deleted": 0
}{- "name": "name",
- "description": "description",
- "price": 0,
- "supplier_id": "string",
- "unit_of_measure_id": "string",
- "category_id": "string",
- "sub_category_id": "string",
- "external_id": 1753866687345,
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}Create supplier
| name required | string Default: "name" |
| buyer_group_id required | string |
| buyer_group_name required | string |
| external_id required | string |
| main_contact_id required | string |
{- "name": "name",
- "buyer_group_id": "string",
- "buyer_group_name": "string",
- "external_id": "string",
- "main_contact_id": "string"
}Update supplier
| id required | string |
| name required | string Default: "name" |
| buyer_group_id required | string |
| buyer_group_name required | string |
| main_contact_id required | string |
{- "name": "name",
- "buyer_group_id": "string",
- "buyer_group_name": "string",
- "main_contact_id": "string"
}Create unit of measures
| name required | string Default: "value" |
| description required | string |
| external_id required | string |
{- "name": "value",
- "description": "string",
- "external_id": "string"
}{- "name": "value",
- "description": "string",
- "external_id": "string",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}Update unit of measures by external_id
| id required | string |
| name required | string Default: "value" |
| description required | string |
{- "name": "value",
- "description": "string"
}Create a buyer-group with Opla CRM, external_id will be key
| name required | string Default: "value" |
| description required | string |
| external_id required | string |
{- "name": "value",
- "description": "string",
- "external_id": "string"
}{- "name": "value",
- "description": "string",
- "external_id": "string",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}| id required | string |
| name required | string Default: "value" |
| description required | string |
{- "name": "value",
- "description": "string"
}{- "name": "value",
- "description": "string",
- "external_id": "string",
- "id": "03d245c1-2250-4742-886e-29192ba9a75c",
- "owner": {
- "first_name": "Nguyen",
- "last_name": "Quang Hoc",
- "external_id": "EMPLOYEE-001",
- "user_site": {
- "value": "Site 1",
- "external_id": null
}, - "user_dimension": {
- "value": "Dimension 2",
- "external_id": null
}
}
}