API Dashboard
Escrow API
Escrow Pay
CryptoExchange API :: Update a customer
Update a customer
Use this endpoint to modify existing customer's details.
You can freely modify your own customer details. You may also modify the details of customers who are parties in a transaction for which you are the partner, provided that you have been granted the permission to authorise as customers.
Updating customer details by customer ID
Use customer/ID to update a specific customer by ID.
If the API call is successful, it will return the updated customer object.
curl "https://cryptoexchange.com/api/v1/escrow/partner/customers/123" \
-X PATCH \
-H "Authorization:Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '
{
"username": "john",
"first_name": "John",
"last_name": "Kane",
"date_of_birth": "04/25/1975",
"address1": "1829 West Lane",
"address2": "Apartment 301020",
"city": "San Francisco",
"state": "CA",
"country": "US",
"postcode": "10203",
"phone": "8885118600"
}'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://cryptoexchange.com/api/v1/escrow/partner/customers/123',
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json',
'Authorization:Bearer your-api-key',
),
CURLOPT_CUSTOMREQUEST => 'PATCH',
CURLOPT_POSTFIELDS => '{
"username": "john",
"first_name": "John",
"last_name": "Kane",
"date_of_birth": "04/25/1975",
"address1": "1829 West Lane",
"address2": "Apartment 301020",
"city": "San Francisco",
"state": "CA",
"country": "US",
"postcode": "10203",
"phone": "8885118600"
}'
));
$output = curl_exec($curl);
echo $output;
curl_close($curl);
Example Response
{
"customerId": 123
}