Local Services examples

Merchants

{
   "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "shard_number": 0,
    "total_shards": 1,
    "generation_timestamp": 1462926569
  },
  "merchant": [
    {
      "merchant_id": "plmb_04",
      "name": "Acme Plumbing",
      "category": "home_service",
      "geo": {
        "unstructured_address": "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
      }
    },
    {
      "merchant_id": "elct_12",
      "name": "Acme Electrical",
      "category": "home_service",
      "geo": {
        "address": {
          "locality": "Mountain View",
          "country": "USA",
          "region": "CA",
          "street_address": "1600 Amphitheatre Pkwy",
          "postal_code": "94043"
        }
      }
    }
  ]
}

Services

{
   "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "shard_number": 0,
    "total_shards": 1,
    "generation_timestamp": 1462926569
  },
  "service": [
    {
      "merchant_id": "plmb_04",
      "service_id": "plmb_04_repair_02",
      "localized_service_name": {
        "localized_value": [
          {
            "locale": "en",
            "value": "Repair pipe"
          }
        ]
      },
      "localized_service_description": {
        "localized_value": [
          {
            "locale": "en",
            "value": "Plumbing assessment for general repairs and services in regards to your plumbing concerns. Fee will be waived if any immediate repair or installation work is performed."
          }
        ]
      },
      "price": {
        "currency_code": "USD",
        "price_micros": 90000000
      },
      "prepayment_type": "NOT_SUPPORTED",
      "price_interpretation_type": "STARTS_AT"
    },
    {
      "merchant_id": "elct_12",
      "service_id": "elct_12_install_01",
      "localized_service_name": {
        "localized_value": [
          {
            "locale": "en",
            "value": "Install outlets or switches"
          }
        ]
      },
      "localized_service_description": {
        "localized_value": [
          {
            "locale": "en",
            "value": "Install new, or relocate existing outlets or switches. We provide free visual estimates. We will provide you with a quote and no work will be performed without authorization."
          }
        ]
      },
      "price": {
        "currency_code": "USD",
        "price_micros": 70000000
      },
      "prepayment_type": "NOT_SUPPORTED"
    }
  ]
}

Availability

{
   "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "total_shards": 1,
    "shard_number": 0,
    "generation_timestamp": 1462926569
  },
  "service_availability": [
    {
      "availability": [
        {
          "merchant_id": "plmb_04",
          "service_id": "plmb_04_repair_02",
          "spots_total": 2,
          "spots_open": 2,
          "duration_sec": 5400,
          "start_sec": 1535806800,
          "confirmation_mode": "CONFIRMATION_MODE_SYNCHRONOUS"
        },
        {
          "merchant_id": "plmb_04",
          "service_id": "plmb_04_repair_02",
          "spots_total": 2,
          "spots_open": 1,
          "duration_sec": 5400,
          "start_sec": 1535817600,
          "confirmation_mode": "CONFIRMATION_MODE_SYNCHRONOUS"
        },
        {
          "merchant_id": "elct_12",
          "service_id": "elct_12_install_01",
          "spots_total": 1,
          "spots_open": 1,
          "duration_sec": 5400,
          "start_sec": 1535832000,
          "confirmation_mode": "CONFIRMATION_MODE_SYNCHRONOUS"
        }
      ]
    }
  ]
}