Edit Profile
curl --request PUT \
--url https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <x-auth-token>' \
--header 'platform: <platform>' \
--header 'uuid: <uuid>' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"dob": "<string>",
"nationality": "<string>",
"customerGender": "<string>",
"address": {
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"countryCommonName": "<string>",
"postcode": "<string>",
"countryIso3": "<string>",
"state": "<string>"
}
}
'import requests
url = "https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit"
payload = {
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"dob": "<string>",
"nationality": "<string>",
"customerGender": "<string>",
"address": {
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"countryCommonName": "<string>",
"postcode": "<string>",
"countryIso3": "<string>",
"state": "<string>"
}
}
headers = {
"platform": "<platform>",
"uuid": "<uuid>",
"X-Auth-Token": "<x-auth-token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
platform: '<platform>',
uuid: '<uuid>',
'X-Auth-Token': '<x-auth-token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
phone: '<string>',
dob: '<string>',
nationality: '<string>',
customerGender: '<string>',
address: {
address1: '<string>',
address2: '<string>',
city: '<string>',
countryCommonName: '<string>',
postcode: '<string>',
countryIso3: '<string>',
state: '<string>'
}
})
};
fetch('https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit', 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://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => '<string>',
'lastName' => '<string>',
'phone' => '<string>',
'dob' => '<string>',
'nationality' => '<string>',
'customerGender' => '<string>',
'address' => [
'address1' => '<string>',
'address2' => '<string>',
'city' => '<string>',
'countryCommonName' => '<string>',
'postcode' => '<string>',
'countryIso3' => '<string>',
'state' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Token: <x-auth-token>",
"platform: <platform>",
"uuid: <uuid>"
],
]);
$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://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit"
payload := strings.NewReader("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"dob\": \"<string>\",\n \"nationality\": \"<string>\",\n \"customerGender\": \"<string>\",\n \"address\": {\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCommonName\": \"<string>\",\n \"postcode\": \"<string>\",\n \"countryIso3\": \"<string>\",\n \"state\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("platform", "<platform>")
req.Header.Add("uuid", "<uuid>")
req.Header.Add("X-Auth-Token", "<x-auth-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.put("https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit")
.header("platform", "<platform>")
.header("uuid", "<uuid>")
.header("X-Auth-Token", "<x-auth-token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"dob\": \"<string>\",\n \"nationality\": \"<string>\",\n \"customerGender\": \"<string>\",\n \"address\": {\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCommonName\": \"<string>\",\n \"postcode\": \"<string>\",\n \"countryIso3\": \"<string>\",\n \"state\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["platform"] = '<platform>'
request["uuid"] = '<uuid>'
request["X-Auth-Token"] = '<x-auth-token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"dob\": \"<string>\",\n \"nationality\": \"<string>\",\n \"customerGender\": \"<string>\",\n \"address\": {\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCommonName\": \"<string>\",\n \"postcode\": \"<string>\",\n \"countryIso3\": \"<string>\",\n \"state\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_bodyAPI Endpoints
Edit Customer Profile
Updates the profile details of the currently authenticated customer.
PUT
/
usermanagement
/
profile-edit
Edit Profile
curl --request PUT \
--url https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <x-auth-token>' \
--header 'platform: <platform>' \
--header 'uuid: <uuid>' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"dob": "<string>",
"nationality": "<string>",
"customerGender": "<string>",
"address": {
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"countryCommonName": "<string>",
"postcode": "<string>",
"countryIso3": "<string>",
"state": "<string>"
}
}
'import requests
url = "https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit"
payload = {
"firstName": "<string>",
"lastName": "<string>",
"phone": "<string>",
"dob": "<string>",
"nationality": "<string>",
"customerGender": "<string>",
"address": {
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"countryCommonName": "<string>",
"postcode": "<string>",
"countryIso3": "<string>",
"state": "<string>"
}
}
headers = {
"platform": "<platform>",
"uuid": "<uuid>",
"X-Auth-Token": "<x-auth-token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
platform: '<platform>',
uuid: '<uuid>',
'X-Auth-Token': '<x-auth-token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
firstName: '<string>',
lastName: '<string>',
phone: '<string>',
dob: '<string>',
nationality: '<string>',
customerGender: '<string>',
address: {
address1: '<string>',
address2: '<string>',
city: '<string>',
countryCommonName: '<string>',
postcode: '<string>',
countryIso3: '<string>',
state: '<string>'
}
})
};
fetch('https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit', 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://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'firstName' => '<string>',
'lastName' => '<string>',
'phone' => '<string>',
'dob' => '<string>',
'nationality' => '<string>',
'customerGender' => '<string>',
'address' => [
'address1' => '<string>',
'address2' => '<string>',
'city' => '<string>',
'countryCommonName' => '<string>',
'postcode' => '<string>',
'countryIso3' => '<string>',
'state' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Token: <x-auth-token>",
"platform: <platform>",
"uuid: <uuid>"
],
]);
$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://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit"
payload := strings.NewReader("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"dob\": \"<string>\",\n \"nationality\": \"<string>\",\n \"customerGender\": \"<string>\",\n \"address\": {\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCommonName\": \"<string>\",\n \"postcode\": \"<string>\",\n \"countryIso3\": \"<string>\",\n \"state\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("platform", "<platform>")
req.Header.Add("uuid", "<uuid>")
req.Header.Add("X-Auth-Token", "<x-auth-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.put("https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit")
.header("platform", "<platform>")
.header("uuid", "<uuid>")
.header("X-Auth-Token", "<x-auth-token>")
.header("Content-Type", "application/json")
.body("{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"dob\": \"<string>\",\n \"nationality\": \"<string>\",\n \"customerGender\": \"<string>\",\n \"address\": {\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCommonName\": \"<string>\",\n \"postcode\": \"<string>\",\n \"countryIso3\": \"<string>\",\n \"state\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["platform"] = '<platform>'
request["uuid"] = '<uuid>'
request["X-Auth-Token"] = '<x-auth-token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"phone\": \"<string>\",\n \"dob\": \"<string>\",\n \"nationality\": \"<string>\",\n \"customerGender\": \"<string>\",\n \"address\": {\n \"address1\": \"<string>\",\n \"address2\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCommonName\": \"<string>\",\n \"postcode\": \"<string>\",\n \"countryIso3\": \"<string>\",\n \"state\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_bodyUpdates the profile of the customer who owns the supplied
X-Auth-Token. Only REGISTERED_CUSTOMER tokens are accepted — staff tokens cannot call this endpoint.
Request Headers
string
required
JWT Access Token of the authenticated customer.
string
default:"fincode"
required
Platform identifier. Use
fincode.string
default:"200"
required
Unique request identifier.
Request Body
string
Customer’s first name.
string
Customer’s last name.
string
Customer’s phone number.
string
International dialing code for the phone number (e.g.
+44).string
Customer’s email address.
string
Date of birth in ISO format (e.g.
1990-05-15T00:00:00+01:00).string
ISO 3166-1 alpha-3 nationality code (e.g.
NGA, GBR).string
Gender. Accepted values:
MALE, FEMALE, OTHER.string
Customer type. Accepted values:
INDIVIDUAL, COMPANY.string
Company name — applicable when
customerType is COMPANY.string
Customer’s occupation.
object
required
string
New password (if the customer wants to change it).
string
Must match
password when changing password.object
Additional dynamic fields specific to your configuration.
Response
Returns aProfileDetailsResponseDTO with the updated customer profile.
string
SUCCESS or FAILED.object
Code Example
cURL
curl -X PUT 'https://{your-domain}.fincode.software/api/v6/services/usermanagement/profile-edit' \
--header 'X-Auth-Token: YOUR_JWT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--header 'platform: fincode' \
--header 'uuid: 200' \
--data '{
"firstName": "Jane",
"lastName": "Doe",
"phone": "+447912345678",
"dialingCode": "+44",
"nationality": "NGA",
"address": {
"address1": "10 Sample Street",
"city": "London",
"postcode": "EC1A 1BB",
"countryIso3": "GBR"
}
}'
