Opt in Opt Out V2
Description
This document covers the basic API information for Opt In/Out of Mobile Apps.
The current applications supported are:
macys iphone
macys android
HTTP Method and Request URL
POST
https://api.macys.com/v2/utility/mobileoptinout
Path and Query Parameters
HTTP Header Parameters
Parameter |
Description |
Mandatory |
Sample Value |
Accept |
Specifies the output format. Can be application/json or application/xml. |
Yes |
application/json application/xml |
x-macys-webservice-client-id |
Pass the apikey as a header value which is called x-macys-webservice-client-id. The api key is the 24 character alphanumeric string assigned to your application when you registered it. Pass the apikey as a header value which is called x-macys-webservice-client-id. The api key is the 24 character alphanumeric string assigned to your application when you registered it. Click here for a list of your API keys. |
Yes |
xmj9js4jkdpe1983fmwu98gh |
Content-Type | Specifies the format of body sent. Can be application/json or application/xml. | Yes |
application/json application/xml |
Request Body Parameters
Parameter | Description | Mandatory | Sample Value |
deviceID | iphone UDID or Android ID if available | Yes | 12345678901234567890 |
macysUID | macys or MCOM user ID | No | 12345 |
optInOrOptOut | options are: IN or OUT | Yes | IN |
Sample Requests and Responses
Sample Request
Request URL:
POST
https://api.macys.com/v2/utility/mobileoptinout
HTTP Headers:
Body:
{"deviceID":"12345678901234567890",
"macysUID":"12345",
"optInOrOptOut":"IN"}
Sample Response
{"success":true}
Error Codes
Call Specific Error Codes:
NONE
General Error Handling Documentation:
Docs Navigation
- Overview
- Customer Services
- Common API Characteristics
- Ad Media
- Catalog Services
- Order Services
- Mobile Utilities
- Promotion and Coupon Services
- Registry Services
- Review Services
- Store Services
- User Services
- Error Handling
- Deprecated Services
- Macy's API FAQ
- BOPS Stores
- What's New