Promotion and Coupon Service
Description
The Promotion and Coupon API call allows users to retrieve promotions, coupons, or both using one call.
HTTP Method and Request URL
GET
https://api.bloomingdales.com/v3/promotions?show=coupons,promotions&promoid=[promoid]&global=[Y/N]&promotionsourcecode=[B/Z/D]&promotype=[type]&promocode=[promo_code]&channel=[channel]&coupontype=[coupontype]&couponnumber=[couponnumber]
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 |
show | Filter criteria for promotions and Coupons | Yes | promotions,coupons |
promoid | Promotion Id |
No | 431690 |
global | Is the promotion global? (Y for Yes, N for No) |
No | Y, N |
promotionsourcecode | Promotion Source Code |
No | B, Z, D |
promotype | Promotion Type |
No | 20PercentOffOrder |
promocode | Promotion Code | No | VETDAY |
promotionfilterattribute | Promotion filter | ||
channel | Channel for Promotion or Coupon | No | MOBILE |
coupontype | Coupon Type | No |
Email Marketing Other |
couponfilterattribute | Coupon filter (Parameter is dynamic. see example) |
No |
IS_OFFERS_ELIGIBLE=N |
couponnumber | Coupon filter number | No | 63 |
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 | magicofbloomingdalesapi |
Sample Requests and Responses
Sample Request
Request URL:
GET
https://api.bloomingdales.com/v3/promotions?show=coupons&global=Y&coupontype=Other
HTTP Header:
x-macys-webservice-client-id: xmj9js4jkdpe1983fmwu98gh
Accept: application/json
Sample Response
{ "promotions": [{ "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