Description
Returns up the user's opt-in opt-out status using their Mobile number.
| Service Name | Opt Status - User by Mobile |
| Service Type | REST |
| Method | GET |
| UAT (Sandbox) URL |
https://integration.uat.marley.ai/api/user/actions/status/mobile/{mobile} |
| Production URL | https://integration.himarley.io/api/user/actions/status/mobile/{mobile} |
| Technical Documentation | View technical documentation with sample request and response payloads hosted on Postman. |
Table of Contents
API Request
Flow
- Send API request with the path parameter of the customer Mobile number.
- Hi Marley receives the request and validates the customer Mobile number exists.
- Hi Marley returns the Opt Status of the user.
Request Example
https://integration.uat.marley.ai/api/user/actions/status/mobile/812333999
Request Path Breakdown
| Property | Values | Description |
Type |
Required | Example | Validation |
| mobile | The mobile number associated with the customer user profile within Hi Marley. | string |
true |
812333999 |
|
API Response
Response Payload Example
{
"optStatus": false,
}
Response Fields Breakdown
| Element | Description | Type | Required | Example |
| optStatus |
The current opt status for the customer. true = opted in. false = opted out. |
boolean |
true |
"optStatus": false |
Common Errors to Handle
- [404] Case Not Found - More Details
Comments
0 comments
Please sign in to leave a comment.