Apply Verified Profile Update
Applies a phone number and/or email update after the user passes identity verification. Requires a valid, unused verificationToken from a successful challenge submission. At least one of phoneNumber or email must be provided. Changing the phone number clears the user's Better Auth session link and marks the updated contact fields as unverified.
Request
- Base URLhttps://merchant-api.accruesavings.com
- Authnone declared. Required headers: Client-ID, Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Accrue userId or merchant userReference (externalUserId / stableExternalUserId). Accrue resolves the identifier automatically against active wallets for your merchant.
Headers
The unique identifier of the client making the request. This header is required to retrieve the client-specific configuration and ensure that the response is tailored to the client's settings and permissions.
Secure secret to access privileged endpoints.
Request body
Example request
{
"data": {
"attributes": {
"verificationToken": "pvt_a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456",
"phoneNumber": "+12125551234",
"email": "user@example.com"
}
}
}Response
Profile update applied successfully.
Example response
{
"data": {
"attributes": {
"phoneNumber": "+12125551234",
"email": "user@example.com",
"appliedAt": "2026-06-17T12:35:00.000Z"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.