Coupons

Activate or deactivate an UCB

Only non-redeem UCBs can be activated or deactivated. It’s okay to activate an already active UCB as it is okay to deactivate an already inactive UCB.

Note that no more than 50 UCBss can be in state ‘activated’ for a single Cumulus number. Trying to activate more results in a 409 error.

Note: The parameters can be sent as query parameters in the URL or as application/x-www-form-urlencoded in the request body (or any combination, it just doesn’t matter.)

post
https://api-qual.migros.ch/migros/customers/coupons/v3/users/{cumulus}/ucbs/{ucbid}:{state}

Path Parameters

cumulusstringrequired

Cumulus number.

Match pattern:^\d{13}$

>= 13 characters<= 13 characters

Example:2099123456789

ucbidstringrequired

ID (barcode) of a UCB. Its a string as it is often longer than what integers can represent (especially in toy languages).

Match pattern:^\d+$

statestringrequired

The action to perform.

Allowed values:activatedeactivate

Example:activate

Response

Successful activated/deactivated

post/migros/customers/coupons/v3/users/{cumulus}/ucbs/{ucbid}:{state}
 

Audit

List of all Coupons

An overview of all[^1] Coupons for human inspection and audit.

You must not parse and must not process this HTML page.

[^1] Upcomming, currently valid and recently expired coupons. Coupons expired 10 days ago are no longer displayed.

get
https://api-qual.migros.ch/migros/customers/coupons/v3/audit/

Response

200 text/html

HTML page

get/migros/customers/coupons/v3/audit/
 
200 text/html

Detail of a single Coupon

All details about a Coupons for human inspection and audit.

You must not parse and must not process this HTML page.

get
https://api-qual.migros.ch/migros/customers/coupons/v3/audit/{id}/{lang}

Path Parameters

idintegerrequired

Coupon ID (the M-Promo ID, not the GTIN).

Example:234531

langstringrequired

Language code: de, fr, it or en

Example:de

Response

200 text/html

HTML page

get/migros/customers/coupons/v3/audit/{id}/{lang}
 
200 text/html

Lekker