Method Type: PostThis method will be called by your application to create a Customer for the store you assign within your auth string and the CRM Text SMS API will then deliver an opt-in request text message to the Customer. It is required before you can send any text messages to a mobile device, except where otherwise noted. The opt-in request will come from a CRM Text communication short code. It is used in all opt-in scenarios (Webform, Paper Contract, Via an App), except for handset initiated keyword opt-ins. The Customer will be put in a "Pending" status (Equals "4" in the API). The Customer must respond YES to that request before any further messages can be delivered. If the Customer responds YES, the CRM Text SMS API will automate an opt-in confirmation message alerting them that they’ve successfully opted-in and we will post the Customer’s updated opt-in status to your callback URL (Equals "3" in the API). The customer will now be assigned a communication short code and all 2-way SMS communication with the customer will occur on that assigned communication short code for the life of the opt-in. SMS from a business to consumer is opt-in communication only and the double opt-in process is required by the Mobile Marketing Association for all non-mobile device initiated opt-ins. When using this call, the CRM Text SMS API will pull the default SMS opt-in confirmation or request template from your store. You can learn more about how to edit these templates here.
|firstname||Yes||string||Mobile Subscriber's First Name. You may leave this value blank.|
|lastname||Yes||String||Mobile Subscriber's Last Name. You may leave this value blank.|
|phone_number||yes||integer||10 digit mobile number. (Example: 9995551234)|
XML Sample Successful Response
<response op= "optincustomer" status= "200" message= "ok">
XML Sample Error Response
<response op= "optincustomer" status= "4xx" message= "reason for Error">