Creating E-mail Verification Details
Description
This web service stores the e-mail verification data of the user.
Definition
POST https://<domain>/services/apexrest/peer/v1/email/storeEmailToken
Parameters
The table given below provides details of the request parameters used by this web service:
Fields | Type | Description |
---|---|---|
accountId* | String | This is the account ID of every user . |
email:String* | String | This is the e-mail ID of the user. |
type:String* | String | This can be prepended by other values. The default type is e-mail |
register | String | This is used to register a new user |
emailToken* | String |
|
Error messages
When you post a web service, you can receive the possible error messages as shown in the table below:
Error Code | Reason | HTTP Status Code |
---|---|---|
EMAIL USED | You will receive this error if an existing e-mail ID associated with an account is entered again. Please note, only one e-mail ID can be associated with an account | 400 |
NO ACCOUNT FOUND | You will receive this error if the requested account is not found | 400 |
<exception message> | You will receive this error if there is any run time exception | 500 |
Sample Request
The sample request to be sent is as shown below:
POST https://na11.salesforce.com/services/apexrest/peer/v1/email/storeEmailToken
{ "accountId":"001G000001", "email":"anilb@cloudlendinginc.com", "emailToken":"1234576575767"}
Sample Response
The sample response that you will receive is as shown below:
{ "status":"SUCCESS", "response":[ ], "errorCode":"NO_ERROR", "content":[ ] }