Update creditor profile
curl --request PATCH \
--url https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"company_name": "Updated Capital",
"company_phone": "8186017451",
"company_email": "updated@example.test",
"company_address_1": "400 Updated Road",
"company_address_2": "Suite 10",
"company_city": "Los Angeles",
"company_state": "CA",
"company_zip": "90001-1234",
"company_url": "updated.example.test"
}
'import requests
url = "https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}"
payload = {
"company_name": "Updated Capital",
"company_phone": "8186017451",
"company_email": "updated@example.test",
"company_address_1": "400 Updated Road",
"company_address_2": "Suite 10",
"company_city": "Los Angeles",
"company_state": "CA",
"company_zip": "90001-1234",
"company_url": "updated.example.test"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_name: 'Updated Capital',
company_phone: '8186017451',
company_email: 'updated@example.test',
company_address_1: '400 Updated Road',
company_address_2: 'Suite 10',
company_city: 'Los Angeles',
company_state: 'CA',
company_zip: '90001-1234',
company_url: 'updated.example.test'
})
};
fetch('https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'company_name' => 'Updated Capital',
'company_phone' => '8186017451',
'company_email' => 'updated@example.test',
'company_address_1' => '400 Updated Road',
'company_address_2' => 'Suite 10',
'company_city' => 'Los Angeles',
'company_state' => 'CA',
'company_zip' => '90001-1234',
'company_url' => 'updated.example.test'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}"
payload := strings.NewReader("{\n \"company_name\": \"Updated Capital\",\n \"company_phone\": \"8186017451\",\n \"company_email\": \"updated@example.test\",\n \"company_address_1\": \"400 Updated Road\",\n \"company_address_2\": \"Suite 10\",\n \"company_city\": \"Los Angeles\",\n \"company_state\": \"CA\",\n \"company_zip\": \"90001-1234\",\n \"company_url\": \"updated.example.test\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"company_name\": \"Updated Capital\",\n \"company_phone\": \"8186017451\",\n \"company_email\": \"updated@example.test\",\n \"company_address_1\": \"400 Updated Road\",\n \"company_address_2\": \"Suite 10\",\n \"company_city\": \"Los Angeles\",\n \"company_state\": \"CA\",\n \"company_zip\": \"90001-1234\",\n \"company_url\": \"updated.example.test\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_name\": \"Updated Capital\",\n \"company_phone\": \"8186017451\",\n \"company_email\": \"updated@example.test\",\n \"company_address_1\": \"400 Updated Road\",\n \"company_address_2\": \"Suite 10\",\n \"company_city\": \"Los Angeles\",\n \"company_state\": \"CA\",\n \"company_zip\": \"90001-1234\",\n \"company_url\": \"updated.example.test\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Creditor profile updated successfully.",
"data": {
"id": 22,
"row_type": "creditor_profile",
"profile_status": {
"value": "consumer_prospect",
"label": "Consumer Prospect",
"short_label": "CP"
},
"form": {
"company_name": "Updated Capital",
"company_phone": "8186017451",
"company_phone_label": "(818) 601-7451",
"company_email": "updated@example.test",
"company_address_1": "400 Updated Road",
"company_address_2": "Suite 10",
"company_city": "Los Angeles",
"company_state": "CA",
"company_zip": "90001-1234",
"company_url": "https://updated.example.test"
},
"contacts": [],
"max_contacts": 3,
"can_add_contact": true,
"can_edit_profile": true
}
}{
"message": "Unauthenticated."
}{
"message": "Not Found."
}{
"message": "Sorry, you cannot edit the profile of an active company."
}{
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
}Update creditor profile
Update an editable creditor profile. Company URLs without a protocol are normalized to HTTPS.
PATCH
/
manage-creditor-profiles
/
{creditorProfile}
Update creditor profile
curl --request PATCH \
--url https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"company_name": "Updated Capital",
"company_phone": "8186017451",
"company_email": "updated@example.test",
"company_address_1": "400 Updated Road",
"company_address_2": "Suite 10",
"company_city": "Los Angeles",
"company_state": "CA",
"company_zip": "90001-1234",
"company_url": "updated.example.test"
}
'import requests
url = "https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}"
payload = {
"company_name": "Updated Capital",
"company_phone": "8186017451",
"company_email": "updated@example.test",
"company_address_1": "400 Updated Road",
"company_address_2": "Suite 10",
"company_city": "Los Angeles",
"company_state": "CA",
"company_zip": "90001-1234",
"company_url": "updated.example.test"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_name: 'Updated Capital',
company_phone: '8186017451',
company_email: 'updated@example.test',
company_address_1: '400 Updated Road',
company_address_2: 'Suite 10',
company_city: 'Los Angeles',
company_state: 'CA',
company_zip: '90001-1234',
company_url: 'updated.example.test'
})
};
fetch('https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'company_name' => 'Updated Capital',
'company_phone' => '8186017451',
'company_email' => 'updated@example.test',
'company_address_1' => '400 Updated Road',
'company_address_2' => 'Suite 10',
'company_city' => 'Los Angeles',
'company_state' => 'CA',
'company_zip' => '90001-1234',
'company_url' => 'updated.example.test'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}"
payload := strings.NewReader("{\n \"company_name\": \"Updated Capital\",\n \"company_phone\": \"8186017451\",\n \"company_email\": \"updated@example.test\",\n \"company_address_1\": \"400 Updated Road\",\n \"company_address_2\": \"Suite 10\",\n \"company_city\": \"Los Angeles\",\n \"company_state\": \"CA\",\n \"company_zip\": \"90001-1234\",\n \"company_url\": \"updated.example.test\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"company_name\": \"Updated Capital\",\n \"company_phone\": \"8186017451\",\n \"company_email\": \"updated@example.test\",\n \"company_address_1\": \"400 Updated Road\",\n \"company_address_2\": \"Suite 10\",\n \"company_city\": \"Los Angeles\",\n \"company_state\": \"CA\",\n \"company_zip\": \"90001-1234\",\n \"company_url\": \"updated.example.test\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ecomailhub.younegotiate.com/manage-creditor-profiles/{creditorProfile}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_name\": \"Updated Capital\",\n \"company_phone\": \"8186017451\",\n \"company_email\": \"updated@example.test\",\n \"company_address_1\": \"400 Updated Road\",\n \"company_address_2\": \"Suite 10\",\n \"company_city\": \"Los Angeles\",\n \"company_state\": \"CA\",\n \"company_zip\": \"90001-1234\",\n \"company_url\": \"updated.example.test\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Creditor profile updated successfully.",
"data": {
"id": 22,
"row_type": "creditor_profile",
"profile_status": {
"value": "consumer_prospect",
"label": "Consumer Prospect",
"short_label": "CP"
},
"form": {
"company_name": "Updated Capital",
"company_phone": "8186017451",
"company_phone_label": "(818) 601-7451",
"company_email": "updated@example.test",
"company_address_1": "400 Updated Road",
"company_address_2": "Suite 10",
"company_city": "Los Angeles",
"company_state": "CA",
"company_zip": "90001-1234",
"company_url": "https://updated.example.test"
},
"contacts": [],
"max_contacts": 3,
"can_add_contact": true,
"can_edit_profile": true
}
}{
"message": "Unauthenticated."
}{
"message": "Not Found."
}{
"message": "Sorry, you cannot edit the profile of an active company."
}{
"message": "The given data was invalid.",
"errors": {
"email": [
"The email field is required."
]
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Creditor profile ID from the manage creditors list.
Body
application/json
Required string length:
3 - 50Example:
"Updated Capital"
US phone number.
Example:
"8186017451"
Maximum string length:
255Example:
"updated@example.test"
Required string length:
2 - 100Example:
"400 Updated Road"
Required string length:
2 - 30Example:
"Los Angeles"
Maximum string length:
10Example:
"CA"
Pattern:
^\d{5}(-\d{4})?$Example:
"90001-1234"
URL is normalized to HTTPS if no protocol is provided.
Maximum string length:
255Example:
"updated.example.test"
Required string length:
2 - 100Example:
"Suite 10"
Last modified on July 19, 2026
Was this page helpful?
⌘I

