Skip to navigation

Patch User Details

View as Markdown

The Patch User Details for Personal Details and Address details is an authenticated API call that allows updating a user’s personal and address details. The response follows the same schema as getUser(), returning the updated user profile.

The fields that can be updated via patchUser include:

  • Personal Details: firstName, lastName, mobileNumber, dob

  • Address Details: addressLine1, addressLine2, state, city, postCode, countryCode

Any modifications to user data must comply with KYC requirements, and certain updates may require the user to re-submit verification documents.

Note:

  1. If a country does not have a state, the country name can be passed (e.g. Dubai).

  2. If a country does not have a postal code, the postal code can be passed as 000000.

Headers

x-user-ipstringRequired

End user's originating IP. More details here

x-api-keystringRequired
Partner API Key present in Transak Dashboard.
authorizationstringOptional

Authorization token is the accessToken received from the API - api/v2/auth/verify

Note: This is not applicable for Auth Reliance Flows

x-user-identifierstringOptional

Your authenticated user Email Id address.

Note: This is applicable only for Auth Reliance Flows

x-access-tokenstringOptional

Your Partner Access Token. Please refer here for a tutorial on generating your access token.

Note: This is applicable only for Auth Reliance Flows

Query parameters

apiKeystringRequired
Your API Key from Transak Dashboard

Request

This endpoint expects an object.
personalDetailsobjectRequired
addressDetailsobjectRequired

Response

200 - Success

dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error