Merchants
{
"metadata": {
"processing_instruction": "PROCESS_AS_COMPLETE",
"total_shards": 1,
"nonce": "11203880",
"generation_timestamp": 1524606581
},
"merchant": [
{
"category": "restaurant",
"merchant_id": "merch1",
"name": "Dining Eats",
"url": "www.merchantspublicsite.com",
"telephone": "+1 123-456-7890",
"geo": {
"latitude": 37.422113,
"longitude": -122.084041,
"address": {
"locality": "Mountain View",
"country": "USA",
"region": "CA",
"street_address": "1600 Amphitheatre Pkwy",
"postal_code": "94043"
}
}
}
]
}
Services
{
"metadata": {
"processing_instruction": "PROCESS_AS_COMPLETE",
"total_shards": 1,
"nonce": "11203880",
"generation_timestamp": 1524606581
},
"service": [
{
"merchant_id": "1",
"localized_service_name": {
"value": "Reservation",
"localized_value": [
{
"locale": "en",
"value": "Reservation"
}
]
},
"service_id": "1000",
"prepayment_type": "NOT_SUPPORTED"
},
{
"merchant_id": "2",
"localized_service_name": {
"value": "Reservation",
"localized_value": [
{
"locale": "en",
"value": "Reservation"
}
]
},
"service_id": "1000",
"prepayment_type": "NOT_SUPPORTED"
}
]
}
Offers
{
"data": [
{
"merchant_id": "1",
"service_id": ["1000"],
"offer_id": "discount_apps",
"unlocalized_title": "Half off appetizers",
"valid_period": {
"begin_sec": 1546300800,
"end_sec": 1577836800
},
"valid_time_of_week": [
{
"day_of_week": "MON",
"start": 43200,
"end": 61200
},
{
"day_of_week": "TUE",
"start": 43200,
"end": 61200
},
{
"day_of_week": "WED",
"start": 43200,
"end": 61200
},
{
"day_of_week": "THU",
"start": 43200,
"end": 61200
}
]
}
]
}