Creates a new referral to share client data with a connected firm. Run in API Explorer
Ask AI
The connection must be accepted before referrals can be sent.
Body
-
The UUID of an accepted referral connection.
-
Array of client account UUIDs to refer.
-
The type of advice being referred. Options: investments, protection, mortgages, estate_planning, other, pensions and tax
Value Description investments Investments protection Protection mortgages Mortgages estate_planning Estate Planning other Other pensions Pensions tax Tax Values are
investments,protection,mortgages,estate_planning,other,pensions, ortax. -
Duration in months for the referral. Options: 1, 2, 3, 6. Null for lifetime.
-
SLA deadline for the recipient to respond.
-
Additional notes about the referral.
POST
/api/v1/referrals
curl \
--request POST 'https://api.plannrcrm.com/api/v1/referrals' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{
"connection_uuid": "550e8400-e29b-41d4-a716-446655440000",
"client_uuids": [
"550e8400-e29b-41d4-a716-446655440001",
"550e8400-e29b-41d4-a716-446655440002"
],
"advice_type": "investments",
"duration_months": 3,
"shared_data": [
"basic_details",
"contact_details",
"notes"
],
"sla_deadline": "2026-02-28",
"note": "Client needs help with retirement planning."
}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"connection_uuid": "550e8400-e29b-41d4-a716-446655440000",
"client_uuids": [
"550e8400-e29b-41d4-a716-446655440001",
"550e8400-e29b-41d4-a716-446655440002"
],
"advice_type": "investments",
"duration_months": 3,
"shared_data": [
"basic_details",
"contact_details",
"notes"
],
"sla_deadline": "2026-02-28",
"note": "Client needs help with retirement planning."
}
Response examples (200)
{
"uuid": "35a41770-8fa7-4933-b145-2b2d41b37676",
"direction": "sent",
"connection": {
"uuid": "abc-123"
},
"clients": [
{
"uuid": "client-uuid-1",
"name": "John Doe"
}
],
"cloned_clients": [
{
"uuid": "cloned-uuid-1",
"name": "John Doe"
}
],
"advice_type": "investments",
"duration_months": 3,
"shared_data": [
"basic_details",
"contact_details"
],
"note": "Client needs help with retirement planning.",
"sla_deadline": "2026-02-28",
"status": "pending",
"rejection_reason": "Unable to take on new clients.",
"sender_firm": {
"uuid": "abc-123",
"name": "Sender Firm Name"
},
"recipient_firm": {
"uuid": "def-456",
"name": "Recipient Firm Name"
},
"sender_account": {
"uuid": "5a9bd996-aca4-4f19-9427-2c16a98a73d5",
"created_at": "2026-10-09T13:38:24+01:00",
"updated_at": "2026-10-09T13:38:24+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
"external_references": {
"uuid": "8293507c-76c3-4d3a-9ad1-991f2d2f4031",
"created_at": "2026-10-09T13:38:28+01:00",
"updated_at": "2026-10-09T13:38:28+01:00",
"third_party": "nucleus",
"reference": "AB123456"
}
},
"recipient_account": {
"uuid": "64f4da7a-ae1b-4aa9-a3d2-81561d58fcb7",
"created_at": "2026-10-09T13:38:24+01:00",
"updated_at": "2026-10-09T13:38:24+01:00",
"type": "client",
"role": "client",
"first_name": "Gareth",
"last_name": "Thompson",
"name": "Gareth Thompson",
"email": "gareth@codepotato.co.uk",
"photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
"external_references": {
"uuid": "8293507c-76c3-4d3a-9ad1-991f2d2f4031",
"created_at": "2026-10-09T13:38:28+01:00",
"updated_at": "2026-10-09T13:38:28+01:00",
"third_party": "nucleus",
"reference": "AB123456"
}
},
"created_at": "2026-10-09T13:38:24+01:00",
"updated_at": "2026-10-09T13:38:24+01:00",
"expires_at": "2027-01-09T13:38:24+00:00"
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}