Create a partner
Create a new partner. When email is provided, a partner contact is created for that person and invited unless skip_email is true. Requires partners_create permission.
managed_by, tier and segment are lookup objects, not plain strings, e.g. "tier": {"slug": "gold"}. A value in any other shape is a 400. A partner type, tier, reward plan or manager that cannot be found is a 404.
To add or manage more contacts after creation, use /partners/{identifier}/contacts.
Request
- Base URL: https://api.lassotech.com/api/v1/rest
- URL: https://api.lassotech.com/api/v1/rest/partners
- Auth: API key in header x-lasso-access-token
Request body
Example request
{
"name": "Acme Corp",
"partner_type_slug": "referral",
"email": "john@acme.com",
"contact_name": "John Doe",
"contact_first_name": "John",
"contact_last_name": "Doe",
"contact_title": "VP Partnerships",
"website_url": "https://acme.com",
"managed_by": {
"email": "manager@company.com",
"crm_system_type": "SALESFORCE"
},
"hubspot_company_id": "11111",
"salesforce_account_id": "001...",
"pipedrive_organization_id": "100",
"hubspot_contact_id": "67890",
"salesforce_contact_id": "003...",
"pipedrive_person_id": "200",
"partner_external_system_type": "HUBSPOT",
"partner_external_object_type": "custom_partner_object",
"partner_external_identifier": "22329802508"
}Response
A partner already carried the supplied partner_external_* record and was returned unchanged. This endpoint is idempotent on that triple, so re-running a CRM workflow will not create a duplicate partner. Returning the existing record is a read: a key without partners_read gets only slug and crm_identifier, which is enough to carry on. Note the flat hubspot_company_id-style fields do not dedupe: several partners may legitimately map to one CRM company.
Example response
{
"partner": {
"slug": "acme-corp",
"name": "Acme Corp",
"crm_identifier": "P-A1B2C3",
"website_url": "https://acme.com",
"partner_type": "Referral",
"segment": "Default",
"managed_by": "manager@company.com",
"payment_terms": "net_30",
"payment_frequency": "monthly"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.