curl -X POST https://credzu.com/wp-json/credzu/v1/update-partner-info \
-H "Content-Type: application/json" \
-H "Authorization: Credzu-Key YOUR_API_KEY" \
-d '{
"lead_id": 44921,
"loan_product": "FHA",
"property_state": "MO",
"salesforce_id": "SF-001234"
}'
<?php
$ch = curl_init("https://credzu.com/wp-json/credzu/v1/update-partner-info");
curl_setopt_array($ch, array(
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"Authorization: Credzu-Key YOUR_API_KEY"
),
CURLOPT_POSTFIELDS => json_encode(array(
"lead_id" => 44921,
"loan_product" => "FHA",
"property_state" => "MO"
))
));
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);
{
"success": true,
"message": "Partner info updated"
}
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Lead not found"
}
}
Endpoints
Update Partner Info
Update metadata for an existing lead
POST
/
update-partner-info
curl -X POST https://credzu.com/wp-json/credzu/v1/update-partner-info \
-H "Content-Type: application/json" \
-H "Authorization: Credzu-Key YOUR_API_KEY" \
-d '{
"lead_id": 44921,
"loan_product": "FHA",
"property_state": "MO",
"salesforce_id": "SF-001234"
}'
<?php
$ch = curl_init("https://credzu.com/wp-json/credzu/v1/update-partner-info");
curl_setopt_array($ch, array(
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"Authorization: Credzu-Key YOUR_API_KEY"
),
CURLOPT_POSTFIELDS => json_encode(array(
"lead_id" => 44921,
"loan_product" => "FHA",
"property_state" => "MO"
))
));
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);
{
"success": true,
"message": "Partner info updated"
}
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Lead not found"
}
}
Overview
Used when you want to push additional metadata about a lead after the initial creation. This is useful for adding loan product details, property information, or other data that wasn’t available at referral time.Request Body
Response
curl -X POST https://credzu.com/wp-json/credzu/v1/update-partner-info \
-H "Content-Type: application/json" \
-H "Authorization: Credzu-Key YOUR_API_KEY" \
-d '{
"lead_id": 44921,
"loan_product": "FHA",
"property_state": "MO",
"salesforce_id": "SF-001234"
}'
<?php
$ch = curl_init("https://credzu.com/wp-json/credzu/v1/update-partner-info");
curl_setopt_array($ch, array(
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json",
"Authorization: Credzu-Key YOUR_API_KEY"
),
CURLOPT_POSTFIELDS => json_encode(array(
"lead_id" => 44921,
"loan_product" => "FHA",
"property_state" => "MO"
))
));
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response);
{
"success": true,
"message": "Partner info updated"
}
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Lead not found"
}
}
Common Use Cases
Loan Product Details
Add FHA, VA, Conventional, or other loan type information after the initial referral.
Property Information
Include property state, county, or other location data relevant to the loan.
CRM Integration
Store Salesforce IDs, HubSpot IDs, or other external system references.
Channel Tracking
Tag leads with marketing channel or campaign information.
All custom fields are stored as lead metadata and can be retrieved using the Get Lead endpoint.
⌘I