Update Customer by ID

View as Markdown
Updates the specified Customer by setting the values of the parameters on the customer object passed. Before calling this endpoint, it may be beneficial to call [Get Customer by ID](/api-reference/api/customers/get-customers-customer-id) to obtain a Customer Object. Change the desired fields in the Customer object and then modify the object before calling the update endpoint with the modified object.

Authentication

AuthorizationBasic

Path parameters

customerIdstringRequired
The identifier of the Customer to be retrieved.

Request

This endpoint expects an object.
namestringRequired>=1 character
Full name of the Customer
addressobjectRequired
Valid mailing or billing address associated with the customer
phonestringRequired
Customer phone number.
emailstringRequired>=1 character
Customer email address.
taxIdstringOptional

Customer tax ID (e.g. SSN [US], SIN [CA]). May be required depending on industry and location.

dateOfBirthstringOptional
Customer date of birth.
externalIdstringOptional>=1 character
A unique merchant customer identifier.
merchantIdstringOptional>=1 character
A unique Trustly merchant identifier.
enrollDateintegerOptional
Date of the user's first transaction in your system, regardless of payment method used as a UNIX timestamp.
vipstringOptional

Range that determines how low-risk the customer represents to the merchant

currencystringOptional
Customer currency.
balancestringOptional

Customer account balance (not associated with a financial institution account).

organizationNumberstringOptional
Organization number for business accounts
externalTierstringOptional

It should describe the customer”s rank to the merchant (e.g. Gold, Diamond, 4 stars, etc.)

personIdstringOptional
Unique customer identity throughout different banks.
customDataobjectOptional

Object for sending merchant-specific custom data.

driverLicenseobjectOptional
nationalIdstringOptional
Customer National ID

Response

OK
customerobject
The Trustly customer object, containing identification details and contact information.