Store Offers (Non-Protected)
- Description
- Request URL
- Path and Query Parameters
- Sample Requests and Responses
- cURL Example
- Error Codes
Description
This API is built to provide offers for users that are available in a specific store.
HTTP Method and Request URL
GET
http://api.macys.com/order/v2/promotions/storeoffers?storeNumber=[store#]&userGuid=[GUID]
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 |
Query Parameters
Parameter |
Description |
Mandatory |
Sample Value |
---|---|---|---|
storeNumber |
Number for the selected store |
no | 203 |
userGuid | GUID for the user |
no |
e6ed05b3-cd41-4baa-95cf-4980e48ce481 |
Sample Request and Response
Sample Request
Request URL:
GET
http://api.macys.com/order/v2/promotions/storeoffers?storeNumber=70&userGuid=e6ed05b3-cd41-4baa-95cf-4980e48ce481
HTTP Header:
x-macys-webservice-client-id: xmj9js4jkdpe1983fmwu98gh
Accept: application/json
Sample Response
{ "offer": { "storeNumber": 70, "userGuid": "e6ed05b3-cd41-4baa-95cf-4980e48ce481", "eligibleOffers": [ { "code": "BTS", "expiringOn": "08/17/2016 11:59:00 PM ", "startsOn": "08/16/2016 12:00:00 AM ", "title": "Back To School Sale!", "description": "Applies to select merchandise.", "showAddToWalletOption": true, "shopNowURL": "http://www.macys.com", "type": "Percent Off Order", "category": "GLOBAL", "categoryRank": 1, "dateRank": 1, "subTitle": "Extra 20% or 15%", "subDescription": "See details & exclusions below.", "fob": "Macy's Offers", "promotionId": 19863920, "checkoutDescription": "", "discountValue": 1, "operator": "PERCENTAGE", "discountType": "Percentage Off" } ], "hasUYC": true } }
cURL Example
curl -X GET -H "X-Macys-Webservice-Client-ID: XXXXXXXXX" -H "Accept: application/json" "http://api.macys.com/order/v2/promotions/storeoffers?storeNumber=203&userGuid=e6ed05b3-cd41-4baa-95cf-4980e48ce481"
Error Codes
Call Specific Error Codes:
HTTP Status | Error Codes | Description |
400 |
{ "errors": { |
|
400 |
{ "errors": { |
|
400 |
{ "errors": { } |
|
400 |
{ "errors": { } |
|
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