Update profile
POST/:apiKey/updateProfile
Update a customer profile.
The response contains the updated customer data and information about the changed fields.
In case of any errors due to invalid requests, invalid configuration or any other unexpected reason, the system will answer with a generic error response.
Request
Path Parameters
API Key of Connector
- application/json
Bodyrequired
required
Update a customer profile
- UpdateProfileRequestGuid
- UpdateProfileRequestCustomerIdentification
oneOf
Customer id assigned by the payment platform.
Possible values: >= 32 characters
and <= 32 characters
CP-91ec-509a-3899-4f4f-a4ad-67fb
Customer id assigned by you.
Possible values: non-empty
and <= 36 characters
my-id-620fa70b-cc34-4bbb-8d66-3670d3ea24f2
customerData
object
required
First name of customer.
Possible values: <= 50 characters
Alex
Last name of customer.
Possible values: <= 50 characters
Smith
Birthdate of customer.
RFC 3339 Internet Date/Time Format full-date
.
1970-01-01
Gender of the customer.
Possible values: <= 1 characters
, Value must match regular expression ^[MF]$
M
Line one of the customer's billing address.
Possible values: <= 50 characters
Line two of the customer's billing address.
Possible values: <= 50 characters
City of the customer's billing address.
Possible values: <= 50 characters
Postal code of the customer's billing address.
Possible values: <= 16 characters
State of the customer's billing address.
Possible values: <= 30 characters
Country of the customer's billing address.
ISO 3166-1 alpha-2 country code.
Possible values: <= 2 characters
Phone number of the billed customer.
Possible values: <= 20 characters
+XX 1234567890
Company of the customer.
Possible values: <= 50 characters
E-mail address of the customer.
Possible values: <= 255 characters
IPv4 or IPv6 address of the customer.
Possible values: <= 50 characters
198.51.100.123
National id of the customer.
Possible values: <= 14 characters
extraData
object
Object containing key-value pairs (string-to-string), to be used by either the upstream Adapter, the Risk Engine etc.
Possible values: >= 24 characters
and <= 24 characters
Responses
- 200
- default
Update a customer profile
- application/json
- Schema
- Example (from schema)
- Example
Schema
customer
object
Line one of the customer's billing address.
Line two of the customer's billing address.
City of the customer's billing address.
Country of the customer's billing address.
ISO 3166-1 alpha-2 country code.
Phone number of the billed customer.
+XX 1234567890
Postal code of the customer's billing address.
State of the customer's billing address.
Birthdate of customer.
RFC 3339 Internet Date/Time Format full-date
.
Company of the customer.
E-mail address of the customer.
extraData
object
Object containing key-value pairs (string-to-string), to be used by either the upstream Adapter, the Risk Engine etc.
First name of customer.
Alex
Gender of the customer.
IPv4 or IPv6 address of the customer.
198.51.100.123
Last name of customer.
Smith
National id of the customer.
{
"success": true,
"profileGuid": "string",
"customer": {
"_TYPE": "string",
"billingAddress1": "string",
"billingAddress2": "string",
"billingCity": "string",
"billingCountry": "string",
"billingPhone": "+XX 1234567890",
"billingPostcode": "string",
"billingState": "string",
"birthDate": "string",
"company": "string",
"email": "string",
"extraData": {},
"firstName": "Alex",
"gender": "string",
"ipAddress": "198.51.100.123",
"lastName": "Smith",
"nationalId": "string"
},
"changedFields": [
"string"
]
}
{
"success": true,
"profileGuid": "CP-0000-0000-0000-0000-0000-0000",
"customerIdentification": "YOUR_CUSTOMER_ID",
"customer": {
"_TYPE": "customerData",
"billingAddress1": "123 Main St.",
"billingAddress2": "Apt. 4B",
"billingCity": "Anytown",
"billingCountry": "US",
"billingPhone": "+XX 1234567890",
"billingPostcode": "12345",
"billingState": "AN",
"birthDate": "1970-01-01",
"company": "Alex's Artisan Goods",
"email": "[email protected]",
"extraData": [],
"firstName": "Alex",
"gender": "M",
"ipAddress": "198.51.100.123",
"lastName": "Smith",
"nationalId": "1234"
},
"changedFields": [
"firstName",
"lastName"
]
}
Error response
- application/json
- Schema
- Example (from schema)
Schema
false
if error.
Error message.
While the errorMessage
field provides useful context for understanding the nature of the error, it's important to note that the content of this message can vary based on specific circumstances.
For consistent and reliable error handling in your application, always base your logic on the errorCode
field, not the errorMessage
.
Error code.
{
"success": true,
"errorMessage": "string",
"errorCode": 0
}