Returns list of all merchant deals.
Ответ сервера:
{
"offers": [
{
"deal": {
"title": "Билет на концерт Evdokimov Show с программой «Я сделал всех!» в Государственном московском театре эстрады",
"options": [
{
"title": "Билет на концерт Evdokimov Show «Я сделал всех!». Партер, 16 ряд, 16-30. 1000 рублей вместо 2000",
"max_limit": 25,
"valid_to": "2012-04-26",
"unlimited": false,
"bought": 0,
"discount": 50,
"usual_price": 2000,
"price": 1000
},
{
"title": "Билет на концерт Evdokimov Show «Я сделал всех!». Партер, 9 ряд, места 32-44. 1500 рублей вместо 3000",
"max_limit": 12,
"valid_to": "2012-04-26",
"unlimited": false,
"bought": 0,
"discount": 50,
"usual_price": 3000,
"price": 1500
}
],
"images": [
{
"large_promo": "http://i3.grouponcdn.ru/system/offers/000/077/336/179511/large_promo_jpg.jpg?1334590278",
"promo": "http://i1.grouponcdn.ru/system/offers/000/077/336/179511/promo_jpg.jpg?1334590278",
"small": "http://i1.grouponcdn.ru/system/offers/000/077/336/179511/small_jpg.jpg?1334590278"
}
],
"category": {
"name": "Развлечения и спорт"
},
"multideal": true,
"sub_category": {
"name": "NEW Концерт/Шоу"
},
"places": [
{
"metro_station": null,
"address": "Берсеневская наб., д. 20/2",
"longitude": 37.6101855933667,
"latitude": 55.744220459861
}
]
},
"id": 326056,
"url": "http://groupon.ru/moscow/evdokimovshow"
},
# ...
]
}
Returns detailed information about merchant specific deal.
Parameters:
id
- deal ID
Response:
{
"offer": {
"deal": {
"title": "Билет на концерт Evdokimov Show с программой «Я сделал всех!» в Государственном московском театре эстрады",
"options": [
{
"title": "Билет на концерт Evdokimov Show «Я сделал всех!». Партер, 16 ряд, 16-30. 1000 рублей вместо 2000",
"max_limit": 25,
"valid_to": "2012-04-26",
"unlimited": false,
"bought": 0,
"discount": 50,
"usual_price": 2000,
"price": 1000
},
{
"title": "Билет на концерт Evdokimov Show «Я сделал всех!». Партер, 9 ряд, места 32-44. 1500 рублей вместо 3000",
"max_limit": 12,
"valid_to": "2012-04-26",
"unlimited": false,
"bought": 0,
"discount": 50,
"usual_price": 3000,
"price": 1500
}
],
"images": [
{
"large_promo": "http://i3.grouponcdn.ru/system/offers/000/077/336/179511/large_promo_jpg.jpg?1334590278",
"promo": "http://i1.grouponcdn.ru/system/offers/000/077/336/179511/promo_jpg.jpg?1334590278",
"small": "http://i1.grouponcdn.ru/system/offers/000/077/336/179511/small_jpg.jpg?1334590278"
}
],
"category": {
"name": "Развлечения и спорт"
},
"multideal": true,
"sub_category": {
"name": "NEW Концерт/Шоу"
},
"places": [
{
"metro_station": null,
"address": "Берсеневская наб., д. 20/2",
"longitude": 37.6101855933667,
"latitude": 55.744220459861
}
]
},
"id": 326056,
"url": "http://groupon.ru/moscow/evdokimovshow"
}
}
Increases coupon limit for merchant specific deal.
Parameters:
id
- deal IDamount
- amount to increaseoption_id
- deal option ID
Response:
Server will respond with 200 OK status on success. Otherwise it will response with error message.
Decreases coupon limit for merchant specific deal.
Parameters:
id
- deal IDamount
- amount to decreaseoption_id
- deal option ID
Response:
Server will respond with 200 OK status on success. Otherwise it will response with error message.
deal
- deal informationmultideal
- is it a "multi-deal"?options
- deal optionsid
- deal option IDtitle
- deal option titleprice
- coupon pricebought
- amount of sold couponsusual_price
- usual price (without discount)discount
- discount (in percentage)max_limit
- maximum possible amount of coupons to be soldunlimited
- is amount of coupons limited?valid_to
- coupon expiration date
category
- categoryname
- category name
title
- deal titleplaces
- deal venuesaddress
- venue addresslatitude
- latitude coordinatelongitude
- longitude coordinatemetro_station
- closest metro stationname
- metro station namelatitude
- latitude coordinatelongitude
- longitude coordinate
images
- deal imagespromo
- normal sizelarge_promo
- large sizesmall
- small size
sub_category
- subcategoryname
- subcategory name
merchant
- merchantname
- merchant name
url
- deal urlid
- deal ID