Update a customer
curl --request PATCH \
--url https://api-sb.meld.io/accounts/customers/{customerId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dateOfBirth": "<string>",
"email": "jsmith@example.com",
"externalCustomerId": "<string>",
"name": {
"firstName": "<string>",
"lastName": "<string>"
},
"phone": "<string>",
"status": "<string>"
}
'import requests
url = "https://api-sb.meld.io/accounts/customers/{customerId}"
payload = {
"dateOfBirth": "<string>",
"email": "jsmith@example.com",
"externalCustomerId": "<string>",
"name": {
"firstName": "<string>",
"lastName": "<string>"
},
"phone": "<string>",
"status": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dateOfBirth: '<string>',
email: 'jsmith@example.com',
externalCustomerId: '<string>',
name: {firstName: '<string>', lastName: '<string>'},
phone: '<string>',
status: '<string>'
})
};
fetch('https://api-sb.meld.io/accounts/customers/{customerId}', 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-sb.meld.io/accounts/customers/{customerId}",
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([
'dateOfBirth' => '<string>',
'email' => 'jsmith@example.com',
'externalCustomerId' => '<string>',
'name' => [
'firstName' => '<string>',
'lastName' => '<string>'
],
'phone' => '<string>',
'status' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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-sb.meld.io/accounts/customers/{customerId}"
payload := strings.NewReader("{\n \"dateOfBirth\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"externalCustomerId\": \"<string>\",\n \"name\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"status\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<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-sb.meld.io/accounts/customers/{customerId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dateOfBirth\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"externalCustomerId\": \"<string>\",\n \"name\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"status\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sb.meld.io/accounts/customers/{customerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dateOfBirth\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"externalCustomerId\": \"<string>\",\n \"name\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"status\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"accountId": "<string>",
"addresses": [
{
"addressDetails": {
"city": "<string>",
"country": "<string>",
"lineOne": "<string>",
"lineTwo": "<string>",
"postalCode": "<string>",
"region": "<string>"
},
"customerId": "<string>",
"id": "<string>",
"status": "ACTIVE",
"type": "BILLING"
}
],
"dateOfBirth": "<string>",
"email": "<string>",
"externalId": "<string>",
"id": "<string>",
"key": "<string>",
"name": {
"firstName": "<string>",
"lastName": "<string>"
},
"phone": "<string>",
"previouslyUsedOnramps": [
{
"previouslyUsed": "2023-11-07T05:31:56Z",
"serviceProvider": "ACROSS"
}
],
"serviceProviderCustomers": [
{
"createdAt": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"kyc": {
"additionalInfo": {},
"approvedLevel": "LEVEL_1",
"level": "LEVEL_1",
"onboardingMethod": {
"kycProvider": "<string>",
"onboardingType": "<string>"
},
"status": "PENDING",
"updatedAt": "2023-11-07T05:31:56Z"
},
"serviceProvider": "ACROSS",
"serviceProviderAccessProfileId": "<string>",
"serviceProviderDetails": {
"type": "<string>",
"customerType": "<string>"
},
"status": "<string>",
"wallets": [
"<string>"
]
}
],
"status": "ACTIVE",
"type": "INDIVIDUAL"
}{
"code": "BAD_REQUEST",
"message": "Bad request",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00",
"errors": [
"[email] must be a well-formed email address"
]
}{
"code": "UNAUTHORIZED",
"message": "Access denied",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "FORBIDDEN",
"message": "Access denied",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "CONFLICT",
"message": "Conflict",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "UNEXPECTED_ERROR",
"message": "Unexpected error",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}Customers
Update a customer
PATCH
/
accounts
/
customers
/
{customerId}
Update a customer
curl --request PATCH \
--url https://api-sb.meld.io/accounts/customers/{customerId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dateOfBirth": "<string>",
"email": "jsmith@example.com",
"externalCustomerId": "<string>",
"name": {
"firstName": "<string>",
"lastName": "<string>"
},
"phone": "<string>",
"status": "<string>"
}
'import requests
url = "https://api-sb.meld.io/accounts/customers/{customerId}"
payload = {
"dateOfBirth": "<string>",
"email": "jsmith@example.com",
"externalCustomerId": "<string>",
"name": {
"firstName": "<string>",
"lastName": "<string>"
},
"phone": "<string>",
"status": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dateOfBirth: '<string>',
email: 'jsmith@example.com',
externalCustomerId: '<string>',
name: {firstName: '<string>', lastName: '<string>'},
phone: '<string>',
status: '<string>'
})
};
fetch('https://api-sb.meld.io/accounts/customers/{customerId}', 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-sb.meld.io/accounts/customers/{customerId}",
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([
'dateOfBirth' => '<string>',
'email' => 'jsmith@example.com',
'externalCustomerId' => '<string>',
'name' => [
'firstName' => '<string>',
'lastName' => '<string>'
],
'phone' => '<string>',
'status' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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-sb.meld.io/accounts/customers/{customerId}"
payload := strings.NewReader("{\n \"dateOfBirth\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"externalCustomerId\": \"<string>\",\n \"name\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"status\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<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-sb.meld.io/accounts/customers/{customerId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dateOfBirth\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"externalCustomerId\": \"<string>\",\n \"name\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"status\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sb.meld.io/accounts/customers/{customerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dateOfBirth\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"externalCustomerId\": \"<string>\",\n \"name\": {\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\"\n },\n \"phone\": \"<string>\",\n \"status\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"accountId": "<string>",
"addresses": [
{
"addressDetails": {
"city": "<string>",
"country": "<string>",
"lineOne": "<string>",
"lineTwo": "<string>",
"postalCode": "<string>",
"region": "<string>"
},
"customerId": "<string>",
"id": "<string>",
"status": "ACTIVE",
"type": "BILLING"
}
],
"dateOfBirth": "<string>",
"email": "<string>",
"externalId": "<string>",
"id": "<string>",
"key": "<string>",
"name": {
"firstName": "<string>",
"lastName": "<string>"
},
"phone": "<string>",
"previouslyUsedOnramps": [
{
"previouslyUsed": "2023-11-07T05:31:56Z",
"serviceProvider": "ACROSS"
}
],
"serviceProviderCustomers": [
{
"createdAt": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"kyc": {
"additionalInfo": {},
"approvedLevel": "LEVEL_1",
"level": "LEVEL_1",
"onboardingMethod": {
"kycProvider": "<string>",
"onboardingType": "<string>"
},
"status": "PENDING",
"updatedAt": "2023-11-07T05:31:56Z"
},
"serviceProvider": "ACROSS",
"serviceProviderAccessProfileId": "<string>",
"serviceProviderDetails": {
"type": "<string>",
"customerType": "<string>"
},
"status": "<string>",
"wallets": [
"<string>"
]
}
],
"status": "ACTIVE",
"type": "INDIVIDUAL"
}{
"code": "BAD_REQUEST",
"message": "Bad request",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00",
"errors": [
"[email] must be a well-formed email address"
]
}{
"code": "UNAUTHORIZED",
"message": "Access denied",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "FORBIDDEN",
"message": "Access denied",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "NOT_FOUND",
"message": "Resource not found",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "CONFLICT",
"message": "Conflict",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}{
"code": "UNEXPECTED_ERROR",
"message": "Unexpected error",
"requestId": "01JB2K7C9XQZ4M8N2P5R6T3V",
"timestamp": "2026-08-14T09:41:22.482+00:00"
}Headers
Body
application/json
Response
Customer is updated