Skip to navigation

Complete customer registration

Checks the one-time code for an open verification session and, when supplied, verifies and redeems a customer provision code. When the credentials are correct, the customer is created, or the existing customer for that number is used, and a customer access token is returned. A session can be completed once.

Request

This endpoint expects an object.
verificationIdstringRequiredformat: "uuid"
otpstringRequiredformat: "^[0-9]{4,10}$"
The code sent by SMS.
provisionCodeDigeststringOptional1-512 characters

Optional opaque provision-code digest to verify and redeem onto the customer.

Response

The number was verified and a customer access token was issued.
accessTokenstringOptional
tokenTypestringOptional
expiresInintegerOptional
Token lifetime in seconds. The API accepts values up to the documented maximum.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
410
Gone Error
429
Too Many Requests Error
500
Internal Server Error