Things To Do with Payments Integration Examples

The payment processor used in this example is Stripe.

Merchants

{
  "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "shard_number": 0,
    "total_shards": 1,
    "generation_timestamp": 1534731312
  },
  "merchant": [
    {
      "category": "restaurant",
      "name": "The Ultimate Chocolate Experience",
      "url": "http://www.ultimatechocolateexperience123.com/",
      "telephone": "+01 123-456-7890",
      "tax_rate": {
        "micro_percent": 0
      },
      "matching_hints": {
        "place_id": "ChIJ13DjJQAzxEcRN_iEuTxZCzw"
      },
      "merchant_id": "283475",
      "geo": {
        "latitude": 37.422113,
        "longitude": -122.084041,
        "address": {
          "locality": "Mountain View",
          "country": "USA",
          "region": "CA",
          "street_address": "1600 Amphitheatre Pkwy",
          "postal_code": "94043"
        }
      },
      "tokenization_config": {
        "tokenization_parameter": {
          "stripe:publishableKey": "merch_live_209XDVJ329VJKD",
          "gateway": "stripe",
          "stripe:version": "2017-08-15"
        }
      }
    },
    {
      "category": "museum",
      "name": "Future and Beyond Museum",
      "url": "http://www.f&b123df.com",
      "telephone": "+01 123-456-7891",
      "tax_rate": {
        "micro_percent": 0
      },
      "matching_hints": {
        "place_id": "ChIJ13DjJQAzxEcRN_iEuTxZCzw"
      },
      "merchant_id": "323342",
      "geo": {
        "latitude": 37.422113,
        "longitude": -122.084041,
        "address": {
          "locality": "Mountain View",
          "country": "USA",
          "region": "CA",
          "street_address": "1600 Amphitheatre Pkwy",
          "postal_code": "94043"
        }
      },
      "tokenization_config": {
        "tokenization_parameter": {
          "stripe:publishableKey": "merch_live_209XDVJ329VJKD",
          "gateway": "stripe",
          "stripe:version": "2017-08-15"
        }
      }
    },
    {
      "category": "store",
      "name": "Bike Rentals - North Pole",
      "url": "http://www.coldadventurebikesNP.com",
      "telephone": null,
      "tax_rate": {
        "micro_percent": 0
      },
      "matching_hints": {
        "place_id": null
      },
      "merchant_id": "423403",
      "geo": {
        "latitude": 37.422113,
        "longitude": -122.084041,
        "address": {
          "locality": "Mountain View",
          "country": "USA",
          "region": "CA",
          "street_address": "1600 Amphitheatre Pkwy",
          "postal_code": "94043"
        }
      },
      "tokenization_config": {
        "tokenization_parameter": {
          "stripe:publishableKey": "merch_live_209XDVJ329VJKD",
          "gateway": "stripe",
          "stripe:version": "2017-08-15"
        }
      }
    }
  ]
}

Services

{
  "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "shard_number": 0,
    "total_shards": 1,
    "generation_timestamp": 1534731329
  },
  "service": [
    {
      "description": "Indulge in the ultimate chocolate experience! Enjoy the complex and rich flavors of various imported chocolates while seeing chocolatiers perfect their craft in our workshop.",
      "ticket_type": [
        {
          "short_description": "Premium Tasting - 8 chocolate bars",
          "price": {
            "price_micros": 195000000,
            "currency_code": "USD"
          },
          "ticket_type_id": "1000"
        },
        {
          "short_description": "Standard Tasting - 4 chocolate bars",
          "price": {
            "price_micros": 90000000,
            "currency_code": "USD"
          },
          "ticket_type_id": "1001"
        },
        {
          "short_description": "Child's Tasting - 2 chocolate bars",
          "price": {
            "price_micros": 49000000,
            "currency_code": "USD"
          },
          "ticket_type_id": "1002"
        }
      ],
      "price": {
        "price_micros": 90000000,
        "currency_code": "USD"
      },
      "prepayment_type": "REQUIRED",
      "related_media": [
        {
          "url": "https://www.ultimatechocolateexperience123.com//images/content/98273192832.jpg?auto=format&fit=crop",
          "caption": "Ulimate Chocolate Experience",
          "type": "PHOTO"
        }
      ],
      "rules": {
        "min_advance_booking": 10800,
        "min_booking_buffer_before_end_time": null,
        "admission_policy": "TIME_STRICT"
      },
      "name": "Chocolate Tasting",
      "service_id": "324560",
      "merchant_id": "283475",
      "require_credit_card": "REQUIRE_CREDIT_CARD_ALWAYS"
    },
    {
      "description": "See the latest and greatest technology. Admissions to the Future and Beyond Museum will guarantee a fun and educational experience for you and your family.",
      "ticket_type": [
        {
          "short_description": "Adult: Age: 13 - 64",
          "price": {
            "price_micros": 45000000,
            "currency_code": "USD"
          },
          "ticket_type_id": "2003"
        },
        {
          "short_description": "Reduced Ticket: Seniors 65+ and Students with a student ID",
          "price": {
            "price_micros": 25000000,
            "currency_code": "EUR"
          },
          "ticket_type_id": "2004"
        },
        {
          "short_description": "Child: Age: 6 - 12",
          "price": {
            "price_micros": 20000000,
            "currency_code": "EUR"
          },
          "ticket_type_id": "2005"
        },
        {
          "short_description": "Small Child: Age: 0 - 5",
          "price": {
            "price_micros": 0,
            "currency_code": "USD"
          },
          "ticket_type_id": "2006"
        }
      ],
      "price": {
        "price_micros": 45000000,
        "currency_code": "USD"
      },
      "prepayment_type": "REQUIRED",
      "related_media": [
        {
          "url": "https://www.f&b123df.com//images/content/12238492832.jpg?auto=format&fit=crop",
          "caption": "ZIOLIO Space Shuttle",
          "type": "PHOTO"
        }
      ],
      "rules": {
        "min_advance_booking": 100,
        "min_booking_buffer_before_end_time": 1800,
        "admission_policy": "TIME_FLEXIBLE"
      },
      "name": "F&B Museum Admissions",
      "service_id": "975274",
      "merchant_id": "146382",
      "require_credit_card": "REQUIRE_CREDIT_CARD_ALWAYS"
    },
    {
      "description": "Join us on a bike tour through the North Pole for an adventure of a lifetime.",
      "ticket_type": [
        {
          "short_description": "Tour Group",
          "price": {
            "price_micros": 1950000000,
            "currency_code": "USD"
          },
          "ticket_type_id": "1234"
        },
        {
          "short_description": "Private Excursion",
          "price": {
            "price_micros": 2950000000,
            "currency_code": "USD"
          },
          "ticket_type_id": "1235"
        }
      ],
      "price": {
        "price_micros": 2950000000,
        "currency_code": "USD"
      },
      "prepayment_type": "OPTIONAL",
      "rules": {
        "min_advance_booking": null,
        "min_booking_buffer_before_end_time": null,
        "admission_policy": "TIME_STRICT"
      },
      "name": "North Pole Bike Tour",
      "service_id": "975384",
      "merchant_id": "146464",
      "require_credit_card": "REQUIRE_CREDIT_CARD_CONDITIONAL"
    }
  ]
}

Availability

{
  "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "shard_number": 0,
    "total_shards": 1,
    "generation_timestamp": 1534731356
  },
  "service_availability": [
    {
      "availability": [
        {
          "ticket_type_id": [
            "1000",
            "1001",
            "1002"
          ],
          "availability_tag": "2018-08-20|whole_day",
          "start_sec": 1534750200,
          "duration_sec": 28800,
          "spots_total": 30,
          "service_id": "324560",
          "merchant_id": "283475",
          "spots_open": 30
        },
        {
          "ticket_type_id": [
            "1000",
            "1001",
            "1002"
          ],
          "availability_tag": "2018-08-21|whole_day",
          "start_sec": 1534836600,
          "duration_sec": 28800,
          "spots_total": 30,
          "service_id": "324520",
          "merchant_id": "283475",
          "spots_open": 30
        },
        {
          "ticket_type_id": [
            "1000",
            "1001",
            "1002"
          ],
          "availability_tag": "2018-08-22|whole_day",
          "start_sec": 1534923000,
          "duration_sec": 28800,
          "spots_total": 30,
          "service_id": "324560",
          "merchant_id": "283475",
          "spots_open": 30
        },
        {
          "ticket_type_id": [
            "1000",
            "1001",
            "1002"
          ],
          "availability_tag": "2018-08-23|whole_day",
          "start_sec": 1535009400,
          "duration_sec": 28800,
          "spots_total": 30,
          "service_id": "324520",
          "merchant_id": "283475",
          "spots_open": 30
        },
        {
          "ticket_type_id": [
            "1000",
            "1001",
            "1002"
          ],
          "availability_tag": "2018-08-24|whole_day",
          "start_sec": 1535095800,
          "duration_sec": 28800,
          "spots_total": 30,
          "service_id": "324560",
          "merchant_id": "283475",
          "spots_open": 30
        }
      ]
    }
  ]
}