Resolve a customer by email
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X PUT "https://api.leapa.co/v2/customers/email/jeanne@example.com/otp" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"code": 0,
"isForRegistrationCode": false,
"expirationTime": 0,
"isConfirmed": false,
"confirmed": false,
"forRegistrationCode": false
}'Response
OK
"string"Path parameters
Values that go into the URL itself.
emailstringrequiredExample:jeanne@example.com
Request body
application/json
Required. Send it as JSON.
codeinteger<int32>isForRegistrationCodebooleanexpirationTimeinteger<int64>isConfirmedbooleanconfirmedbooleanforRegistrationCodeboolean
Response
application/json
No fields. The body is empty.
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error