Update customer
curl --request PATCH \
--url https://api.daya.co/v1/customers/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>"
}
'import requests
url = "https://api.daya.co/v1/customers/{id}"
payload = {
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', first_name: '<string>', last_name: '<string>'})
};
fetch('https://api.daya.co/v1/customers/{id}', 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.daya.co/v1/customers/{id}",
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([
'email' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <x-api-key>"
],
]);
$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.daya.co/v1/customers/{id}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Api-Key", "<x-api-key>")
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.daya.co/v1/customers/{id}")
.header("X-Api-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/customers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "650e8400-e29b-41d4-a716-446655440000",
"email": "customer@example.com",
"first_name": "Jane",
"last_name": "Doe",
"is_verified": false,
"tier_1_kyc_complete": false,
"tier_2_kyc_complete": false,
"capabilities": [],
"rejection_reasons": [],
"created_at": "2026-01-05T15:04:05Z",
"updated_at": "2026-01-06T10:30:00Z"
}
Customers
Update customer
Update an existing customer’s details
PATCH
/
v1
/
customers
/
{id}
Update customer
curl --request PATCH \
--url https://api.daya.co/v1/customers/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>"
}
'import requests
url = "https://api.daya.co/v1/customers/{id}"
payload = {
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', first_name: '<string>', last_name: '<string>'})
};
fetch('https://api.daya.co/v1/customers/{id}', 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.daya.co/v1/customers/{id}",
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([
'email' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <x-api-key>"
],
]);
$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.daya.co/v1/customers/{id}"
payload := strings.NewReader("{\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Api-Key", "<x-api-key>")
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.daya.co/v1/customers/{id}")
.header("X-Api-Key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daya.co/v1/customers/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Api-Key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "650e8400-e29b-41d4-a716-446655440000",
"email": "customer@example.com",
"first_name": "Jane",
"last_name": "Doe",
"is_verified": false,
"tier_1_kyc_complete": false,
"tier_2_kyc_complete": false,
"capabilities": [],
"rejection_reasons": [],
"created_at": "2026-01-05T15:04:05Z",
"updated_at": "2026-01-06T10:30:00Z"
}
Overview
Update the details of an existing customer. Only provided fields are updated; omitted fields remain unchanged.Authentication
Your merchant API key
Path Parameters
Customer ID (UUID)Example:
650e8400-e29b-41d4-a716-446655440000Request Body
Customer email address. Must be a valid email if provided.Example:
customer@example.comCustomer first name (1-100 characters)Example:
JaneCustomer last name (1-100 characters)Example:
DoeRequest Examples
{
"email": "customer@example.com",
"first_name": "Jane",
"last_name": "Doe"
}
curl --request PATCH \
--url https://api.daya.co/v1/customers/650e8400-e29b-41d4-a716-446655440000 \
--header 'X-Api-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"email": "customer@example.com",
"first_name": "Jane",
"last_name": "Doe"
}'
const response = await fetch(
'https://api.daya.co/v1/customers/650e8400-e29b-41d4-a716-446655440000',
{
method: 'PATCH',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'customer@example.com',
first_name: 'Jane',
last_name: 'Doe'
})
}
);
const customer = await response.json();
console.log(customer);
Response
Returns the updated customer object. See Get customer for the full field list.Success Response
{
"id": "650e8400-e29b-41d4-a716-446655440000",
"email": "customer@example.com",
"first_name": "Jane",
"last_name": "Doe",
"is_verified": false,
"tier_1_kyc_complete": false,
"tier_2_kyc_complete": false,
"capabilities": [],
"rejection_reasons": [],
"created_at": "2026-01-05T15:04:05Z",
"updated_at": "2026-01-06T10:30:00Z"
}
Error Responses
{
"error": {
"code": "BAD_REQUEST",
"message": "Invalid UUID format",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"validation": "first_name must be between 1 and 100 characters"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Customer not found",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"code": "CONFLICT",
"message": "Customer with this email already exists for this merchant",
"request_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
Next Steps
Get Customer
Retrieve the full customer record
Submit Tier 1 Verification
Verify a customer’s identity for permanent NGN funding accounts
⌘I