Promotions
Description
The Promotions API call allows the users to get active promotions.
HTTP Method and Request URL
GET
https://api.bloomingdales.com/v2/promotions?promoid=[promoid]&global=[Y/N]&sourcecode=[B/Z/D]&type=[type]&promo_code=[promo_code]
Path and Query Parameters
HTTP Header Parameters
|
|||
Parameter | Description | Mandatory | Sample Value |
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. Go to http://developer.bloomingdales.com/apps/mykeys for a list of your API keys. | Yes | xmj9js4jkdpe1983fmwu98gh |
Accept | Detemines output format. Can be application/json or application/xml. | Yes |
application/json application/xml |
Query Parameters
|
|||
Parameter | Description | Mandatory | Sample Value |
promoid | Promotion Id |
No | 431690 |
global | Is the promotion global? (Y for Yes, N for No) |
No | Y, N |
sourcecode | Promotion Source Code |
No | B, Z, D |
type | Promotion Type |
No | Percent Off Order |
promo_code | Promotion Code | No | VETDAY |
callback | If sent, the format is JSONP (JSON with Padding) with the callback returned with the JSON response. You can put anything in the callback parameter and whatever you send is returned. | No | magicofbloomindalesapi |
Sample Requests and Responses
Sample Request
Request URL:
GET
https://api.bloomingdales.com/v2/promotions?promoid=431690&global=Y&sourcecode=D&promo_code=VETDAY
HTTP Header:
x-macys-webservice-client-id: xmj9js4jkdpe1983fmwu98gh
Accept: application/json
Sample Response
{ "promotionDetailsResponse": [{ "promotionName": "Loyalty Promo- $25 off $100", "description": "Take $25 off when you spend $100+ with your Bloomingdale's Card", "global": false, "promoId": "10464", "promotionType": "SUPC Dollar Off Order", "effectiveMonth": 3, "effectiveDay": 1, "effectiveYear": 2014, "expirationMonth": 4, "expirationDay": 30, "expirationYear": 2014, "promotionCode": "X08967_0080000", "promotionCodeIds": ["9395"], "promotionSource": ["MACYS", "BLOOMIES"], "promotionSourceCode": "D" }] }
Error Codes
Call Specific Error Codes:
NONE
General Error Handling Documentation:
Docs Navigation
- Overview
- Customer Services
- Loyalty Services
- customer v1 user profile services
- Common API Characteristics
- Ad Media
- Catalog and Store Services
- Order Services
- Mobile Utilities
- Promotion and Coupon Services
- Registry Services
- Store Services
- Error Handling
- Deprecated Services
- What's New
- Bloomingdale's API FAQ
- Quick Start Guide
- BOPS Stores
- user