{
  "openapi": "3.1.0",
  "info": {
    "title": "Tirth API",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.tirth.com",
      "description": "Live"
    },
    {
      "url": "https://sandbox.api.tirth.com",
      "description": "Sandbox"
    }
  ],
  "security": [
    {
      "secretKey": []
    }
  ],
  "tags": [
    {
      "name": "Catalogue"
    },
    {
      "name": "Availability"
    },
    {
      "name": "Calendar"
    },
    {
      "name": "Quotes"
    },
    {
      "name": "Bookings and proof"
    },
    {
      "name": "Change feed"
    },
    {
      "name": "Amendments"
    },
    {
      "name": "Cancellations and refunds"
    },
    {
      "name": "Credit and invoices"
    },
    {
      "name": "Webhooks"
    },
    {
      "name": "Cases"
    },
    {
      "name": "Privacy requests"
    },
    {
      "name": "Sandbox"
    }
  ],
  "paths": {
    "/v2/quotes": {
      "post": {
        "tags": [
          "Quotes"
        ],
        "summary": "Price a selection at the Agent net, locked 30 minutes, with seats held on request.",
        "security": [
          {
            "secretKey": [
              "quotes:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "variant_id": {
                    "type": "string",
                    "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                  },
                  "service_date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "departure_id": {
                    "type": "string",
                    "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                  },
                  "puja_event_id": {
                    "type": "string",
                    "pattern": "^ss_[0-9A-HJKMNP-TV-Z]{26}$"
                  },
                  "slot_id": {
                    "type": "string",
                    "pattern": "^slt_[0-9A-HJKMNP-TV-Z]{26}$"
                  },
                  "travellers": {
                    "type": "object",
                    "properties": {
                      "adults": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      "child_with_bed": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      "child_without_bed": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      "infant": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      },
                      "people": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 500
                      }
                    }
                  },
                  "quantity": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50
                  },
                  "add_ons": {
                    "default": [],
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "add_on_id": {
                          "type": "string",
                          "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 500
                        }
                      },
                      "required": [
                        "add_on_id"
                      ]
                    }
                  },
                  "hold_seats": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "variant_id",
                  "service_date",
                  "travellers"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "quote_id": {
                      "type": "string",
                      "pattern": "^qt_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "confirmation": {
                      "type": "string",
                      "enum": [
                        "instant",
                        "on_request"
                      ]
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "product_id": {
                            "type": "string"
                          },
                          "product_kind": {
                            "type": "string",
                            "enum": [
                              "puja",
                              "samuhik_puja",
                              "package",
                              "seva",
                              "experience",
                              "add_on",
                              "parivar_plan"
                            ]
                          },
                          "title": {
                            "type": "string"
                          },
                          "variant_id": {
                            "type": "string",
                            "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "variant_name": {
                            "type": "string"
                          },
                          "service_date": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "service_to": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "departure_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "puja_event_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^ss_[0-9A-HJKMNP-TV-Z]{26}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slot_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^slt_[0-9A-HJKMNP-TV-Z]{26}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "travellers": {
                            "type": "object",
                            "properties": {
                              "adults": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "child_with_bed": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "child_without_bed": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "infant": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "people": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              }
                            },
                            "required": [
                              "adults",
                              "child_with_bed",
                              "child_without_bed",
                              "infant",
                              "people"
                            ],
                            "additionalProperties": false
                          },
                          "net_total": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "net_amount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "tirth_gst": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "reference_retail_price": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "product_id",
                          "product_kind",
                          "title",
                          "variant_id",
                          "variant_name",
                          "service_date",
                          "service_to",
                          "departure_id",
                          "puja_event_id",
                          "slot_id",
                          "travellers",
                          "net_total",
                          "net_amount",
                          "tirth_gst",
                          "reference_retail_price"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "net_total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "net_amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "tirth_gst": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "reference_retail_price": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "price_locked_until": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "price_locked_until_text": {
                      "type": "string"
                    },
                    "hold": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "seats": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "held_until": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                            },
                            "held_until_text": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "seats",
                            "held_until",
                            "held_until_text"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision_within_hours": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "quote_id",
                    "confirmation",
                    "lines",
                    "net_total",
                    "net_amount",
                    "tirth_gst",
                    "reference_retail_price",
                    "price_locked_until",
                    "price_locked_until_text",
                    "hold",
                    "decision_within_hours"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "quotes",
        "x-tirth-idempotency": "optional",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "not_bookable",
            "status": 409
          },
          {
            "code": "hold_refused",
            "status": 409
          },
          {
            "code": "holds_disabled",
            "status": 409
          },
          {
            "code": "quotes_blocked",
            "status": 429
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    },
    "/v2/bookings": {
      "post": {
        "tags": [
          "Bookings and proof"
        ],
        "summary": "Book a quote with your partner_reference, paid from your credit.",
        "security": [
          {
            "secretKey": [
              "bookings:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "quote_id": {
                    "type": "string",
                    "pattern": "^qt_[0-9A-HJKMNP-TV-Z]{26}$"
                  },
                  "partner_reference": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[A-Za-z0-9_-]+$"
                  },
                  "sankalp": {
                    "type": "object",
                    "properties": {
                      "names": {
                        "minItems": 1,
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 120
                            },
                            "gotra": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 80
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "gotra"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "join_as": {
                        "default": "recorded_video",
                        "type": "string",
                        "enum": [
                          "attend",
                          "watch_live",
                          "recorded_video"
                        ]
                      }
                    },
                    "required": [
                      "names"
                    ],
                    "additionalProperties": false
                  },
                  "travellers": {
                    "default": [],
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "age_band": {
                          "type": "string",
                          "enum": [
                            "child",
                            "adult",
                            "senior"
                          ]
                        },
                        "is_lead": {
                          "default": false,
                          "type": "boolean"
                        },
                        "phone_e164": {
                          "type": "string",
                          "pattern": "^\\+[1-9]\\d{7,14}$"
                        },
                        "special_needs": {
                          "default": [],
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 60
                          }
                        }
                      },
                      "required": [
                        "name",
                        "age_band"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "quote_id",
                  "partner_reference"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "partner_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "requested",
                            "booked",
                            "declined",
                            "assigned",
                            "scheduled",
                            "performed",
                            "proof_shared",
                            "closed",
                            "cancelled"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "confirmation": {
                      "type": "string",
                      "enum": [
                        "instant",
                        "on_request"
                      ]
                    },
                    "decide_by": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decide_by_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "net_total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "net_amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "tirth_gst": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "booking_id": {
                            "type": "string",
                            "pattern": "^bk_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "product_id": {
                            "type": "string"
                          },
                          "product_kind": {
                            "type": "string",
                            "enum": [
                              "puja",
                              "samuhik_puja",
                              "package",
                              "seva",
                              "experience",
                              "add_on",
                              "parivar_plan"
                            ]
                          },
                          "title": {
                            "type": "string"
                          },
                          "variant_name": {
                            "type": "string"
                          },
                          "service_from": {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "label": {
                                "type": "string"
                              },
                              "tithi": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "note": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "date",
                              "label",
                              "tithi",
                              "note"
                            ],
                            "additionalProperties": false
                          },
                          "service_to": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "core_status": {
                            "type": "string"
                          },
                          "seats": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "net_total": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "net_amount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "tirth_gst": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "cancellation_policy": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "tiers": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "min_hours_before": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 8760
                                    },
                                    "charge_bp": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 10000
                                    }
                                  },
                                  "required": [
                                    "min_hours_before",
                                    "charge_bp"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "lines": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "name",
                              "tiers",
                              "lines"
                            ],
                            "additionalProperties": false
                          },
                          "sankalp_names": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "gotra": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "name",
                                "gotra"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "travellers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "age_band": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "is_lead": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "name",
                                "age_band",
                                "is_lead"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "cancellation": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "refund_paise": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "requested_at": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "refund_paise",
                                  "requested_at",
                                  "status"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "booking_id",
                          "product_id",
                          "product_kind",
                          "title",
                          "variant_name",
                          "service_from",
                          "service_to",
                          "core_status",
                          "seats",
                          "net_total",
                          "net_amount",
                          "tirth_gst",
                          "cancellation_policy",
                          "sankalp_names",
                          "travellers",
                          "cancellation"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "amendments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^am_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "proposed",
                              "accepted",
                              "rejected",
                              "applied"
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "date_change",
                              "headcount",
                              "swap",
                              "partner_replacement"
                            ]
                          },
                          "difference_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "requested_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "kind",
                          "difference_paise",
                          "requested_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "cancellation_in_review": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "requested_at": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                            }
                          },
                          "required": [
                            "requested_at"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "partner_reference",
                    "status",
                    "version",
                    "confirmation",
                    "decide_by",
                    "decide_by_text",
                    "net_total",
                    "net_amount",
                    "tirth_gst",
                    "lines",
                    "amendments",
                    "cancellation_in_review",
                    "created_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_writes",
        "x-tirth-idempotency": "required",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "quote_used",
            "status": 409
          },
          {
            "code": "quote_expired",
            "status": 410
          },
          {
            "code": "credit_insufficient",
            "status": 402
          },
          {
            "code": "partner_reference_taken",
            "status": 409
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      },
      "get": {
        "tags": [
          "Bookings and proof"
        ],
        "summary": "Find a booking by partner_reference, or list bookings whose status changed.",
        "security": [
          {
            "secretKey": [
              "bookings:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "partner_reference",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "requested",
                "booked",
                "declined",
                "assigned",
                "scheduled",
                "performed",
                "proof_shared",
                "closed",
                "cancelled"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "updated_since",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "partner_reference": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "requested",
                                  "booked",
                                  "declined",
                                  "assigned",
                                  "scheduled",
                                  "performed",
                                  "proof_shared",
                                  "closed",
                                  "cancelled"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "version": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "net_total": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "service_from": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "partner_reference",
                          "status",
                          "version",
                          "net_total",
                          "service_from",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_reads"
      }
    },
    "/v2/bookings/{id}": {
      "get": {
        "tags": [
          "Bookings and proof"
        ],
        "summary": "Read one booking: status, version, lines, money and policy.",
        "security": [
          {
            "secretKey": [
              "bookings:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "partner_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "requested",
                            "booked",
                            "declined",
                            "assigned",
                            "scheduled",
                            "performed",
                            "proof_shared",
                            "closed",
                            "cancelled"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "confirmation": {
                      "type": "string",
                      "enum": [
                        "instant",
                        "on_request"
                      ]
                    },
                    "decide_by": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decide_by_text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "net_total": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "net_amount": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "tirth_gst": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "booking_id": {
                            "type": "string",
                            "pattern": "^bk_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "product_id": {
                            "type": "string"
                          },
                          "product_kind": {
                            "type": "string",
                            "enum": [
                              "puja",
                              "samuhik_puja",
                              "package",
                              "seva",
                              "experience",
                              "add_on",
                              "parivar_plan"
                            ]
                          },
                          "title": {
                            "type": "string"
                          },
                          "variant_name": {
                            "type": "string"
                          },
                          "service_from": {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "label": {
                                "type": "string"
                              },
                              "tithi": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "note": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "date",
                              "label",
                              "tithi",
                              "note"
                            ],
                            "additionalProperties": false
                          },
                          "service_to": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "core_status": {
                            "type": "string"
                          },
                          "seats": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "net_total": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "net_amount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "tirth_gst": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "cancellation_policy": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "tiers": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "min_hours_before": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 8760
                                    },
                                    "charge_bp": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 10000
                                    }
                                  },
                                  "required": [
                                    "min_hours_before",
                                    "charge_bp"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "lines": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            "required": [
                              "name",
                              "tiers",
                              "lines"
                            ],
                            "additionalProperties": false
                          },
                          "sankalp_names": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "gotra": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "name",
                                "gotra"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "travellers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "age_band": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "is_lead": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "name",
                                "age_band",
                                "is_lead"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "cancellation": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "refund_paise": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "requested_at": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "refund_paise",
                                  "requested_at",
                                  "status"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "booking_id",
                          "product_id",
                          "product_kind",
                          "title",
                          "variant_name",
                          "service_from",
                          "service_to",
                          "core_status",
                          "seats",
                          "net_total",
                          "net_amount",
                          "tirth_gst",
                          "cancellation_policy",
                          "sankalp_names",
                          "travellers",
                          "cancellation"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "amendments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^am_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "proposed",
                              "accepted",
                              "rejected",
                              "applied"
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "date_change",
                              "headcount",
                              "swap",
                              "partner_replacement"
                            ]
                          },
                          "difference_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "requested_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "status",
                          "kind",
                          "difference_paise",
                          "requested_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "cancellation_in_review": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "requested_at": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                            }
                          },
                          "required": [
                            "requested_at"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "partner_reference",
                    "status",
                    "version",
                    "confirmation",
                    "decide_by",
                    "decide_by_text",
                    "net_total",
                    "net_amount",
                    "tirth_gst",
                    "lines",
                    "amendments",
                    "cancellation_in_review",
                    "created_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_reads",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/bookings/{id}/proof": {
      "get": {
        "tags": [
          "Bookings and proof"
        ],
        "summary": "A booking's proof as signed links valid 24 hours.",
        "security": [
          {
            "secretKey": [
              "bookings:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "booking_id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "video",
                              "photo",
                              "courier_tracking"
                            ]
                          },
                          "url": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uri"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "tracking_ref": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "names_read_at_seconds": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "shared_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "kind",
                          "url",
                          "tracking_ref",
                          "names_read_at_seconds",
                          "shared_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "links_valid_until": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "links_valid_until_text": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "booking_id",
                    "items",
                    "links_valid_until",
                    "links_valid_until_text"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_reads",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/bookings/{id}/proof/{index}": {
      "get": {
        "tags": [
          "Bookings and proof"
        ],
        "summary": "Open one piece of proof through its signed link.",
        "security": [
          {
            "secretKey": [
              "bookings:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "expires",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{64}$"
            },
            "in": "query",
            "name": "signature",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 99
            },
            "in": "path",
            "name": "index",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "x-tirth-rate-limit-group": "booking_reads",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "gone",
            "status": 410
          }
        ]
      }
    },
    "/v2/booking-changes": {
      "get": {
        "tags": [
          "Change feed"
        ],
        "summary": "Status changes after the last one you acknowledged, oldest first.",
        "security": [
          {
            "secretKey": [
              "bookings:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "after",
            "required": false
          },
          {
            "schema": {
              "default": 100,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "event_id": {
                            "type": "string",
                            "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "booking_id": {
                            "type": "string",
                            "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "partner_reference": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "requested",
                              "booked",
                              "declined",
                              "assigned",
                              "scheduled",
                              "performed",
                              "proof_shared",
                              "closed",
                              "cancelled"
                            ]
                          },
                          "version": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          },
                          "occurred_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "event_id",
                          "booking_id",
                          "partner_reference",
                          "status",
                          "version",
                          "occurred_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "last_acked_event_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor",
                    "last_acked_event_id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_reads"
      }
    },
    "/v2/booking-changes/ack": {
      "post": {
        "tags": [
          "Change feed"
        ],
        "summary": "Acknowledge the change feed up to an event.",
        "security": [
          {
            "secretKey": [
              "bookings:read"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "event_id": {
                    "type": "string",
                    "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
                  }
                },
                "required": [
                  "event_id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "last_acked_event_id": {
                      "type": "string",
                      "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
                    }
                  },
                  "required": [
                    "last_acked_event_id"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_reads",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/bookings/{id}/amendment-quotes": {
      "post": {
        "tags": [
          "Amendments"
        ],
        "summary": "What a change to a booking would cost now. Nothing is written.",
        "security": [
          {
            "secretKey": [
              "bookings:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "change": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "date_change"
                            ]
                          },
                          "new_date": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "departure_id": {
                            "type": "string",
                            "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "puja_event_id": {
                            "type": "string",
                            "pattern": "^ss_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "slot_id": {
                            "type": "string",
                            "pattern": "^slt_[0-9A-HJKMNP-TV-Z]{26}$"
                          }
                        },
                        "required": [
                          "kind",
                          "new_date"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "headcount"
                            ]
                          },
                          "travellers": {
                            "type": "object",
                            "properties": {
                              "adults": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "child_with_bed": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "child_without_bed": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "infant": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "people": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              }
                            }
                          },
                          "quantity": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50
                          }
                        },
                        "required": [
                          "kind",
                          "travellers"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "swap"
                            ]
                          },
                          "new_variant_id": {
                            "type": "string",
                            "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "departure_id": {
                            "type": "string",
                            "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "slot_id": {
                            "type": "string",
                            "pattern": "^slt_[0-9A-HJKMNP-TV-Z]{26}$"
                          }
                        },
                        "required": [
                          "kind",
                          "new_variant_id"
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "change"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "booking_id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "change": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "date_change"
                              ]
                            },
                            "new_date": {
                              "type": "string",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                            },
                            "departure_id": {
                              "type": "string",
                              "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                            },
                            "puja_event_id": {
                              "type": "string",
                              "pattern": "^ss_[0-9A-HJKMNP-TV-Z]{26}$"
                            },
                            "slot_id": {
                              "type": "string",
                              "pattern": "^slt_[0-9A-HJKMNP-TV-Z]{26}$"
                            }
                          },
                          "required": [
                            "kind",
                            "new_date"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "headcount"
                              ]
                            },
                            "travellers": {
                              "type": "object",
                              "properties": {
                                "adults": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 500
                                },
                                "child_with_bed": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 500
                                },
                                "child_without_bed": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 500
                                },
                                "infant": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 500
                                },
                                "people": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 500
                                }
                              },
                              "required": [
                                "adults",
                                "child_with_bed",
                                "child_without_bed",
                                "infant",
                                "people"
                              ],
                              "additionalProperties": false
                            },
                            "quantity": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 50
                            }
                          },
                          "required": [
                            "kind",
                            "travellers"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "swap"
                              ]
                            },
                            "new_variant_id": {
                              "type": "string",
                              "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                            },
                            "departure_id": {
                              "type": "string",
                              "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                            },
                            "slot_id": {
                              "type": "string",
                              "pattern": "^slt_[0-9A-HJKMNP-TV-Z]{26}$"
                            }
                          },
                          "required": [
                            "kind",
                            "new_variant_id"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "current_total_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "new_total_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "difference_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "price_locked_until": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "price_locked_until_text": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "booking_id",
                    "change",
                    "current_total_paise",
                    "new_total_paise",
                    "difference_paise",
                    "price_locked_until",
                    "price_locked_until_text"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_writes",
        "x-tirth-idempotency": "optional",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "not_amendable",
            "status": 409
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    },
    "/v2/bookings/{id}/amendments": {
      "post": {
        "tags": [
          "Amendments"
        ],
        "summary": "Ask for a change to a booking. Tirth's team makes it.",
        "security": [
          {
            "secretKey": [
              "bookings:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "change": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "date_change"
                            ]
                          },
                          "new_date": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "departure_id": {
                            "type": "string",
                            "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "puja_event_id": {
                            "type": "string",
                            "pattern": "^ss_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "slot_id": {
                            "type": "string",
                            "pattern": "^slt_[0-9A-HJKMNP-TV-Z]{26}$"
                          }
                        },
                        "required": [
                          "kind",
                          "new_date"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "headcount"
                            ]
                          },
                          "travellers": {
                            "type": "object",
                            "properties": {
                              "adults": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "child_with_bed": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "child_without_bed": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "infant": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              },
                              "people": {
                                "default": 0,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 500
                              }
                            }
                          },
                          "quantity": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50
                          }
                        },
                        "required": [
                          "kind",
                          "travellers"
                        ]
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "swap"
                            ]
                          },
                          "new_variant_id": {
                            "type": "string",
                            "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "departure_id": {
                            "type": "string",
                            "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "slot_id": {
                            "type": "string",
                            "pattern": "^slt_[0-9A-HJKMNP-TV-Z]{26}$"
                          }
                        },
                        "required": [
                          "kind",
                          "new_variant_id"
                        ]
                      }
                    ]
                  },
                  "expected_difference_paise": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "change"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^am_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "booking_id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "proposed",
                        "accepted",
                        "rejected",
                        "applied"
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "date_change",
                        "headcount",
                        "swap",
                        "partner_replacement"
                      ]
                    },
                    "difference_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "new_total_paise": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "requested_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "booking_id",
                    "status",
                    "kind",
                    "difference_paise",
                    "new_total_paise",
                    "requested_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_writes",
        "x-tirth-idempotency": "required",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "not_amendable",
            "status": 409
          },
          {
            "code": "price_changed",
            "status": 412
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    },
    "/v2/bookings/{id}/cancellation-quote": {
      "get": {
        "tags": [
          "Cancellations and refunds"
        ],
        "summary": "The refund under the booking's frozen policy, with a signed token.",
        "security": [
          {
            "secretKey": [
              "bookings:cancel"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "booking_id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "paid_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "charge_bp": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "charge_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "refund_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "valid_until": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "valid_until_text": {
                      "type": "string"
                    },
                    "quote_token": {
                      "type": "string"
                    },
                    "policy_lines": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "booking_id",
                    "paid_paise",
                    "charge_bp",
                    "charge_paise",
                    "refund_paise",
                    "valid_until",
                    "valid_until_text",
                    "quote_token",
                    "policy_lines"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_reads",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "not_cancellable",
            "status": 409
          },
          {
            "code": "cancellation_closed",
            "status": 409
          }
        ]
      }
    },
    "/v2/bookings/{id}/cancellations": {
      "post": {
        "tags": [
          "Cancellations and refunds"
        ],
        "summary": "Cancel a booking before its start. The refund goes to your credit.",
        "security": [
          {
            "secretKey": [
              "bookings:cancel"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "quote_token": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 600
                  },
                  "refund": {
                    "default": "policy",
                    "type": "string",
                    "enum": [
                      "policy",
                      "full"
                    ]
                  },
                  "reason": {
                    "type": "string",
                    "enum": [
                      "customer_request",
                      "duplicate_booking",
                      "service_issue",
                      "travel_disruption",
                      "other"
                    ]
                  }
                },
                "required": [
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "booking_id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "approved",
                        "in_review"
                      ]
                    },
                    "refund_paise": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancellation_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^cn_[0-9A-HJKMNP-TV-Z]{26}$"
                      }
                    }
                  },
                  "required": [
                    "booking_id",
                    "status",
                    "refund_paise",
                    "cancellation_ids"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "202": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "booking_id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "approved",
                        "in_review"
                      ]
                    },
                    "refund_paise": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cancellation_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^cn_[0-9A-HJKMNP-TV-Z]{26}$"
                      }
                    }
                  },
                  "required": [
                    "booking_id",
                    "status",
                    "refund_paise",
                    "cancellation_ids"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_writes",
        "x-tirth-idempotency": "required",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "not_cancellable",
            "status": 409
          },
          {
            "code": "cancellation_closed",
            "status": 409
          },
          {
            "code": "quote_expired",
            "status": 410
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    },
    "/v2/refunds": {
      "get": {
        "tags": [
          "Cancellations and refunds"
        ],
        "summary": "Refunds to your credit, newest first.",
        "security": [
          {
            "secretKey": [
              "bookings:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^rf_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^rf_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "booking_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "amount_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "status": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          },
                          "label": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "completed_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "booking_id",
                          "amount_paise",
                          "status",
                          "reason",
                          "label",
                          "created_at",
                          "completed_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^rf_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_reads"
      }
    },
    "/v2/refunds/{id}": {
      "get": {
        "tags": [
          "Cancellations and refunds"
        ],
        "summary": "Read one refund.",
        "security": [
          {
            "secretKey": [
              "bookings:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^rf_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^rf_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "booking_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "amount_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "status": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string"
                    },
                    "label": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "completed_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "booking_id",
                    "amount_paise",
                    "status",
                    "reason",
                    "label",
                    "created_at",
                    "completed_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_reads",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/pujas": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "List live pujas, a page at a time, or those changed since a moment.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "updated_since",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "puja",
                              "samuhik_puja",
                              "package"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "performed_at": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "city": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "places": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                },
                                "name": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "booking_type": {
                            "type": "string",
                            "enum": [
                              "instant",
                              "on_request"
                            ]
                          },
                          "solemn": {
                            "type": "boolean"
                          },
                          "duration": {
                            "type": "object",
                            "properties": {
                              "minutes": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "days": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "nights": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "minutes",
                              "days",
                              "nights"
                            ],
                            "additionalProperties": false
                          },
                          "variants": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "max_names": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "options": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "take_part",
                                      "stay",
                                      "meals",
                                      "vehicle",
                                      "size"
                                    ]
                                  },
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "max_names",
                                "options"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "inclusions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "exclusions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "what_you_receive": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "add_on_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                            }
                          },
                          "cancellation_policy": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "bands": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "hours_before_start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "charge_bp": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 10000
                                        }
                                      },
                                      "required": [
                                        "hours_before_start",
                                        "charge_bp"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "name",
                                  "bands"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "images": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "alt": {
                                  "type": "string"
                                },
                                "credit": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "height": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "url",
                                "alt",
                                "credit",
                                "width",
                                "height"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "reference_price": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "amount_paise": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "unit": {
                                    "type": "string",
                                    "enum": [
                                      "per_person",
                                      "per_group",
                                      "per_family",
                                      "per_room",
                                      "per_vehicle",
                                      "total"
                                    ]
                                  },
                                  "gst": {
                                    "type": "string",
                                    "enum": [
                                      "included",
                                      "none"
                                    ]
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount_paise",
                                  "unit",
                                  "gst",
                                  "label"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "page_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "checked_on": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "name",
                          "summary",
                          "performed_at",
                          "city",
                          "places",
                          "booking_type",
                          "solemn",
                          "duration",
                          "variants",
                          "inclusions",
                          "exclusions",
                          "what_you_receive",
                          "add_on_ids",
                          "cancellation_policy",
                          "images",
                          "reference_price",
                          "page_url",
                          "checked_on",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue"
      }
    },
    "/v2/pujas/{id}": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Read one puja.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^pj_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "puja",
                        "samuhik_puja",
                        "package"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "performed_at": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "city": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "places": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "booking_type": {
                      "type": "string",
                      "enum": [
                        "instant",
                        "on_request"
                      ]
                    },
                    "solemn": {
                      "type": "boolean"
                    },
                    "duration": {
                      "type": "object",
                      "properties": {
                        "minutes": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "days": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "nights": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "minutes",
                        "days",
                        "nights"
                      ],
                      "additionalProperties": false
                    },
                    "variants": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "max_names": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "options": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "take_part",
                                "stay",
                                "meals",
                                "vehicle",
                                "size"
                              ]
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "max_names",
                          "options"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inclusions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "exclusions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "what_you_receive": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "add_on_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                      }
                    },
                    "cancellation_policy": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "bands": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "hours_before_start": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "charge_bp": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 10000
                                  }
                                },
                                "required": [
                                  "hours_before_start",
                                  "charge_bp"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "name",
                            "bands"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "alt": {
                            "type": "string"
                          },
                          "credit": {
                            "type": "string"
                          },
                          "width": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "height": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "url",
                          "alt",
                          "credit",
                          "width",
                          "height"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "reference_price": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "amount_paise": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "per_person",
                                "per_group",
                                "per_family",
                                "per_room",
                                "per_vehicle",
                                "total"
                              ]
                            },
                            "gst": {
                              "type": "string",
                              "enum": [
                                "included",
                                "none"
                              ]
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "amount_paise",
                            "unit",
                            "gst",
                            "label"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "page_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "checked_on": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "name",
                    "summary",
                    "performed_at",
                    "city",
                    "places",
                    "booking_type",
                    "solemn",
                    "duration",
                    "variants",
                    "inclusions",
                    "exclusions",
                    "what_you_receive",
                    "add_on_ids",
                    "cancellation_policy",
                    "images",
                    "reference_price",
                    "page_url",
                    "checked_on",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/samuhik-pujas": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "List live samuhik pujas, a page at a time.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "updated_since",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "puja",
                              "samuhik_puja",
                              "package"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "performed_at": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "city": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "places": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                },
                                "name": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "booking_type": {
                            "type": "string",
                            "enum": [
                              "instant",
                              "on_request"
                            ]
                          },
                          "solemn": {
                            "type": "boolean"
                          },
                          "duration": {
                            "type": "object",
                            "properties": {
                              "minutes": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "days": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "nights": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "minutes",
                              "days",
                              "nights"
                            ],
                            "additionalProperties": false
                          },
                          "variants": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "max_names": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "options": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "take_part",
                                      "stay",
                                      "meals",
                                      "vehicle",
                                      "size"
                                    ]
                                  },
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "max_names",
                                "options"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "inclusions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "exclusions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "what_you_receive": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "add_on_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                            }
                          },
                          "cancellation_policy": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "bands": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "hours_before_start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "charge_bp": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 10000
                                        }
                                      },
                                      "required": [
                                        "hours_before_start",
                                        "charge_bp"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "name",
                                  "bands"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "images": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "alt": {
                                  "type": "string"
                                },
                                "credit": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "height": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "url",
                                "alt",
                                "credit",
                                "width",
                                "height"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "reference_price": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "amount_paise": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "unit": {
                                    "type": "string",
                                    "enum": [
                                      "per_person",
                                      "per_group",
                                      "per_family",
                                      "per_room",
                                      "per_vehicle",
                                      "total"
                                    ]
                                  },
                                  "gst": {
                                    "type": "string",
                                    "enum": [
                                      "included",
                                      "none"
                                    ]
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount_paise",
                                  "unit",
                                  "gst",
                                  "label"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "page_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "checked_on": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "name",
                          "summary",
                          "performed_at",
                          "city",
                          "places",
                          "booking_type",
                          "solemn",
                          "duration",
                          "variants",
                          "inclusions",
                          "exclusions",
                          "what_you_receive",
                          "add_on_ids",
                          "cancellation_policy",
                          "images",
                          "reference_price",
                          "page_url",
                          "checked_on",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue"
      }
    },
    "/v2/samuhik-pujas/{id}": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Read one samuhik puja.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^sp_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "puja",
                        "samuhik_puja",
                        "package"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "performed_at": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "city": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "places": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "booking_type": {
                      "type": "string",
                      "enum": [
                        "instant",
                        "on_request"
                      ]
                    },
                    "solemn": {
                      "type": "boolean"
                    },
                    "duration": {
                      "type": "object",
                      "properties": {
                        "minutes": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "days": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "nights": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "minutes",
                        "days",
                        "nights"
                      ],
                      "additionalProperties": false
                    },
                    "variants": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "max_names": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "options": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "take_part",
                                "stay",
                                "meals",
                                "vehicle",
                                "size"
                              ]
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "max_names",
                          "options"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inclusions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "exclusions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "what_you_receive": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "add_on_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                      }
                    },
                    "cancellation_policy": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "bands": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "hours_before_start": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "charge_bp": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 10000
                                  }
                                },
                                "required": [
                                  "hours_before_start",
                                  "charge_bp"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "name",
                            "bands"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "alt": {
                            "type": "string"
                          },
                          "credit": {
                            "type": "string"
                          },
                          "width": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "height": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "url",
                          "alt",
                          "credit",
                          "width",
                          "height"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "reference_price": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "amount_paise": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "per_person",
                                "per_group",
                                "per_family",
                                "per_room",
                                "per_vehicle",
                                "total"
                              ]
                            },
                            "gst": {
                              "type": "string",
                              "enum": [
                                "included",
                                "none"
                              ]
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "amount_paise",
                            "unit",
                            "gst",
                            "label"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "page_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "checked_on": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "name",
                    "summary",
                    "performed_at",
                    "city",
                    "places",
                    "booking_type",
                    "solemn",
                    "duration",
                    "variants",
                    "inclusions",
                    "exclusions",
                    "what_you_receive",
                    "add_on_ids",
                    "cancellation_policy",
                    "images",
                    "reference_price",
                    "page_url",
                    "checked_on",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/packages": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "List live yatra packages, a page at a time.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "updated_since",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "puja",
                              "samuhik_puja",
                              "package"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "performed_at": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "city": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "places": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                },
                                "name": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "booking_type": {
                            "type": "string",
                            "enum": [
                              "instant",
                              "on_request"
                            ]
                          },
                          "solemn": {
                            "type": "boolean"
                          },
                          "duration": {
                            "type": "object",
                            "properties": {
                              "minutes": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "days": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "nights": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "minutes",
                              "days",
                              "nights"
                            ],
                            "additionalProperties": false
                          },
                          "variants": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "max_names": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "options": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "take_part",
                                      "stay",
                                      "meals",
                                      "vehicle",
                                      "size"
                                    ]
                                  },
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "max_names",
                                "options"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "inclusions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "exclusions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "what_you_receive": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "add_on_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                            }
                          },
                          "cancellation_policy": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "bands": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "hours_before_start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "charge_bp": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 10000
                                        }
                                      },
                                      "required": [
                                        "hours_before_start",
                                        "charge_bp"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "name",
                                  "bands"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "images": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "alt": {
                                  "type": "string"
                                },
                                "credit": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "height": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "url",
                                "alt",
                                "credit",
                                "width",
                                "height"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "reference_price": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "amount_paise": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "unit": {
                                    "type": "string",
                                    "enum": [
                                      "per_person",
                                      "per_group",
                                      "per_family",
                                      "per_room",
                                      "per_vehicle",
                                      "total"
                                    ]
                                  },
                                  "gst": {
                                    "type": "string",
                                    "enum": [
                                      "included",
                                      "none"
                                    ]
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount_paise",
                                  "unit",
                                  "gst",
                                  "label"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "page_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "checked_on": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "name",
                          "summary",
                          "performed_at",
                          "city",
                          "places",
                          "booking_type",
                          "solemn",
                          "duration",
                          "variants",
                          "inclusions",
                          "exclusions",
                          "what_you_receive",
                          "add_on_ids",
                          "cancellation_policy",
                          "images",
                          "reference_price",
                          "page_url",
                          "checked_on",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue"
      }
    },
    "/v2/packages/{id}": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Read one yatra package.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^pkg_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "puja",
                        "samuhik_puja",
                        "package"
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "performed_at": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "city": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                            },
                            "name": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "places": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "booking_type": {
                      "type": "string",
                      "enum": [
                        "instant",
                        "on_request"
                      ]
                    },
                    "solemn": {
                      "type": "boolean"
                    },
                    "duration": {
                      "type": "object",
                      "properties": {
                        "minutes": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "days": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "nights": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "minutes",
                        "days",
                        "nights"
                      ],
                      "additionalProperties": false
                    },
                    "variants": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "max_names": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "options": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "enum": [
                                "take_part",
                                "stay",
                                "meals",
                                "vehicle",
                                "size"
                              ]
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "max_names",
                          "options"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "inclusions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "exclusions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "what_you_receive": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "add_on_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                      }
                    },
                    "cancellation_policy": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "bands": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "hours_before_start": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "charge_bp": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 10000
                                  }
                                },
                                "required": [
                                  "hours_before_start",
                                  "charge_bp"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "name",
                            "bands"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "alt": {
                            "type": "string"
                          },
                          "credit": {
                            "type": "string"
                          },
                          "width": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "height": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "url",
                          "alt",
                          "credit",
                          "width",
                          "height"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "reference_price": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "amount_paise": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "per_person",
                                "per_group",
                                "per_family",
                                "per_room",
                                "per_vehicle",
                                "total"
                              ]
                            },
                            "gst": {
                              "type": "string",
                              "enum": [
                                "included",
                                "none"
                              ]
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "amount_paise",
                            "unit",
                            "gst",
                            "label"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "page_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "checked_on": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "name",
                    "summary",
                    "performed_at",
                    "city",
                    "places",
                    "booking_type",
                    "solemn",
                    "duration",
                    "variants",
                    "inclusions",
                    "exclusions",
                    "what_you_receive",
                    "add_on_ids",
                    "cancellation_policy",
                    "images",
                    "reference_price",
                    "page_url",
                    "checked_on",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/add-ons": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "List the add-ons products may be sold with.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "updated_since",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "unit": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "per_person",
                                  "per_group",
                                  "per_booking"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "product_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                            }
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "unit",
                          "product_ids",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue"
      }
    },
    "/v2/add-ons/{id}": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Read one add-on.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "name": {
                      "type": "string"
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "per_person",
                            "per_group",
                            "per_booking"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "product_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                      }
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "unit",
                    "product_ids",
                    "updated_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/search": {
      "get": {
        "tags": [
          "Catalogue"
        ],
        "summary": "Find products by words in their name or their city's name.",
        "security": [
          {
            "secretKey": [
              "catalogue:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 80
            },
            "in": "query",
            "name": "q",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "puja",
                "samuhik_puja",
                "package"
              ]
            },
            "in": "query",
            "name": "kind",
            "required": false
          },
          {
            "schema": {
              "default": 10,
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "puja",
                              "samuhik_puja",
                              "package"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "performed_at": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "city": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "places": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                                },
                                "name": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "booking_type": {
                            "type": "string",
                            "enum": [
                              "instant",
                              "on_request"
                            ]
                          },
                          "solemn": {
                            "type": "boolean"
                          },
                          "duration": {
                            "type": "object",
                            "properties": {
                              "minutes": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "days": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "nights": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "minutes",
                              "days",
                              "nights"
                            ],
                            "additionalProperties": false
                          },
                          "variants": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "max_names": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "options": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "enum": [
                                      "take_part",
                                      "stay",
                                      "meals",
                                      "vehicle",
                                      "size"
                                    ]
                                  },
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "max_names",
                                "options"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "inclusions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "exclusions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "what_you_receive": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "add_on_ids": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^ad_[0-9A-HJKMNP-TV-Z]{26}$"
                            }
                          },
                          "cancellation_policy": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "bands": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "hours_before_start": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "charge_bp": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 10000
                                        }
                                      },
                                      "required": [
                                        "hours_before_start",
                                        "charge_bp"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "name",
                                  "bands"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "images": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "alt": {
                                  "type": "string"
                                },
                                "credit": {
                                  "type": "string"
                                },
                                "width": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "height": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "url",
                                "alt",
                                "credit",
                                "width",
                                "height"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "reference_price": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "amount_paise": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "unit": {
                                    "type": "string",
                                    "enum": [
                                      "per_person",
                                      "per_group",
                                      "per_family",
                                      "per_room",
                                      "per_vehicle",
                                      "total"
                                    ]
                                  },
                                  "gst": {
                                    "type": "string",
                                    "enum": [
                                      "included",
                                      "none"
                                    ]
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "amount_paise",
                                  "unit",
                                  "gst",
                                  "label"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "page_url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "checked_on": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "name",
                          "summary",
                          "performed_at",
                          "city",
                          "places",
                          "booking_type",
                          "solemn",
                          "duration",
                          "variants",
                          "inclusions",
                          "exclusions",
                          "what_you_receive",
                          "add_on_ids",
                          "cancellation_policy",
                          "images",
                          "reference_price",
                          "page_url",
                          "checked_on",
                          "updated_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue"
      }
    },
    "/v2/pujas/{id}/availability": {
      "get": {
        "tags": [
          "Availability"
        ],
        "summary": "A puja's dates and time windows that can be booked.",
        "security": [
          {
            "secretKey": [
              "availability:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "from",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "to",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "variant_id",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^pj_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "product_id": {
                      "type": "string",
                      "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "dates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "tithi": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "date",
                              "tithi"
                            ],
                            "additionalProperties": false
                          },
                          "available": {
                            "type": "boolean"
                          },
                          "on_request": {
                            "type": "boolean"
                          },
                          "windows": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "window": {
                                  "type": "string",
                                  "enum": [
                                    "morning",
                                    "midday",
                                    "evening"
                                  ]
                                },
                                "label": {
                                  "type": "string"
                                },
                                "available": {
                                  "type": "boolean"
                                },
                                "on_request": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "window",
                                "label",
                                "available",
                                "on_request"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "date",
                          "available",
                          "on_request",
                          "windows"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "date_being_confirmed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "product_id",
                    "dates",
                    "date_being_confirmed"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "availability",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/samuhik-pujas/{id}/sessions": {
      "get": {
        "tags": [
          "Availability"
        ],
        "summary": "A samuhik puja's sessions that can be booked.",
        "security": [
          {
            "secretKey": [
              "availability:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "from",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "to",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "variant_id",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^sp_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "product_id": {
                      "type": "string",
                      "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "sessions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^ss_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "date": {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "tithi": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "date",
                              "tithi"
                            ],
                            "additionalProperties": false
                          },
                          "starts_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "sankalp_closes_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "available": {
                            "type": "boolean"
                          },
                          "on_request": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "date",
                          "starts_at",
                          "sankalp_closes_at",
                          "available",
                          "on_request"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "date_being_confirmed": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "product_id",
                    "sessions",
                    "date_being_confirmed"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "availability",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/packages/{id}/departures": {
      "get": {
        "tags": [
          "Availability"
        ],
        "summary": "A package's departures and start dates that can be booked.",
        "security": [
          {
            "secretKey": [
              "availability:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "from",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "to",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^var_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "variant_id",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^pkg_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "product_id": {
                      "type": "string",
                      "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "departures": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "departure_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^dep_[0-9A-HJKMNP-TV-Z]{26}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "start": {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "tithi": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "date",
                              "tithi"
                            ],
                            "additionalProperties": false
                          },
                          "end": {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "tithi": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "date",
                              "tithi"
                            ],
                            "additionalProperties": false
                          },
                          "available": {
                            "type": "boolean"
                          },
                          "on_request": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "departure_id",
                          "start",
                          "end",
                          "available",
                          "on_request"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "product_id",
                    "departures"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "availability",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/availability": {
      "get": {
        "tags": [
          "Availability"
        ],
        "summary": "Dates for up to 20 products at once, over at most 31 days.",
        "security": [
          {
            "secretKey": [
              "availability:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^(?:pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}(?:,(?:pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}){0,19}$"
            },
            "in": "query",
            "name": "ids",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "from",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "to",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "product_id": {
                            "type": "string",
                            "pattern": "^(pj|sp|pkg)_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "puja",
                              "samuhik_puja",
                              "package"
                            ]
                          },
                          "dates": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": "object",
                                  "properties": {
                                    "date": {
                                      "type": "string",
                                      "format": "date",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                    },
                                    "tithi": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "date",
                                    "tithi"
                                  ],
                                  "additionalProperties": false
                                },
                                "option_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "available": {
                                  "type": "boolean"
                                },
                                "on_request": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "date",
                                "option_id",
                                "available",
                                "on_request"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "date_being_confirmed": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "product_id",
                          "kind",
                          "dates",
                          "date_being_confirmed"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "products"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "availability"
      }
    },
    "/v2/availability/changes": {
      "get": {
        "tags": [
          "Availability"
        ],
        "summary": "Changes to products and their dates, oldest first, from a cursor.",
        "security": [
          {
            "secretKey": [
              "availability:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 100,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "product.updated",
                              "product.withdrawn",
                              "availability.changed"
                            ]
                          },
                          "product_id": {
                            "type": "string"
                          },
                          "option_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "occurred_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "product_id",
                          "option_id",
                          "occurred_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "has_more": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor",
                    "has_more"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "availability"
      }
    },
    "/v2/calendar/cities": {
      "get": {
        "tags": [
          "Calendar"
        ],
        "summary": "The calendar's cities, whose IDs the other calendar routes take.",
        "security": [
          {
            "secretKey": [
              "content:read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "defaults": {
                      "type": "object",
                      "properties": {
                        "panchang": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "festivals": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "panchang",
                        "festivals"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "cities",
                    "defaults"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue"
      }
    },
    "/v2/calendar/tithis": {
      "get": {
        "tags": [
          "Calendar"
        ],
        "summary": "Each date's tithi at sunrise in a city, over at most 60 days.",
        "security": [
          {
            "secretKey": [
              "content:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
            },
            "in": "query",
            "name": "city",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "from",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "to",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "city": {
                      "type": "string",
                      "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "weekday": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "tithi": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "date",
                          "weekday",
                          "label",
                          "tithi"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "city",
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue"
      }
    },
    "/v2/calendar/festivals": {
      "get": {
        "tags": [
          "Calendar"
        ],
        "summary": "Festivals in a city, over at most 92 days.",
        "security": [
          {
            "secretKey": [
              "content:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
            },
            "in": "query",
            "name": "city",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "from",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            },
            "in": "query",
            "name": "to",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "city": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "observance_id": {
                            "type": "string",
                            "pattern": "^(tmp|dst|sth|dei|snt|ash|sty|rte|cir|evt|yat|fes)-[A-Za-z0-9-]+$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "label": {
                            "type": "string"
                          },
                          "tithi": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "second_day": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "date": {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  "label": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "date",
                                  "label"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "calculated",
                              "signed_off",
                              "under_review",
                              "overridden"
                            ]
                          }
                        },
                        "required": [
                          "observance_id",
                          "name",
                          "date",
                          "label",
                          "tithi",
                          "second_day",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "city",
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "catalogue"
      }
    },
    "/v2/credit": {
      "get": {
        "tags": [
          "Credit and invoices"
        ],
        "summary": "Your credit balance, its open lots and transfers waiting to be matched.",
        "security": [
          {
            "secretKey": [
              "credit:read"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "balance_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "low_balance_alert_paise": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "low": {
                      "type": "boolean"
                    },
                    "lots": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^lot_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "amount_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "remaining_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "opened_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "expires_on": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "amount_paise",
                          "remaining_paise",
                          "opened_at",
                          "expires_on"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "waiting_for_verification_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "balance_paise",
                    "low_balance_alert_paise",
                    "low",
                    "lots",
                    "waiting_for_verification_paise"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other"
      }
    },
    "/v2/credit/transactions": {
      "get": {
        "tags": [
          "Credit and invoices"
        ],
        "summary": "Every credit movement, newest first.",
        "security": [
          {
            "secretKey": [
              "credit:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^je_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^je_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "top_up",
                              "booking",
                              "held_for_request",
                              "released",
                              "refund",
                              "lot_expired",
                              "withdrawal",
                              "withdrawal_reversed",
                              "incentive",
                              "adjustment",
                              "other"
                            ]
                          },
                          "label": {
                            "type": "string"
                          },
                          "reference": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string"
                              },
                              "id": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "type",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          "amount_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "occurred_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "lot_ids": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "lot_expires_on": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "type",
                          "label",
                          "reference",
                          "amount_paise",
                          "occurred_at",
                          "lot_ids",
                          "lot_expires_on"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^je_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other"
      }
    },
    "/v2/credit/statements/{month}": {
      "get": {
        "tags": [
          "Credit and invoices"
        ],
        "summary": "The statement of a month that has ended, as CSV.",
        "security": [
          {
            "secretKey": [
              "credit:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
            },
            "in": "path",
            "name": "month",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "x-tirth-rate-limit-group": "other",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/credit/top-ups": {
      "post": {
        "tags": [
          "Credit and invoices"
        ],
        "summary": "Tell Tirth of a bank transfer already sent, with its UTR.",
        "security": [
          {
            "secretKey": [
              "credit:topup"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount_paise": {
                    "type": "integer",
                    "minimum": 100,
                    "maximum": 100000000
                  },
                  "reference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9-]{6,40}$"
                  }
                },
                "required": [
                  "amount_paise",
                  "reference"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^top_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "amount_paise": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "paid",
                        "failed"
                      ]
                    },
                    "reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "paid_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instructions": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "amount_paise",
                    "status",
                    "reference",
                    "created_at",
                    "paid_at",
                    "instructions"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other",
        "x-tirth-idempotency": "required",
        "x-tirth-errors": [
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    },
    "/v2/invoices": {
      "get": {
        "tags": [
          "Credit and invoices"
        ],
        "summary": "The GST documents Tirth issued to your company.",
        "security": [
          {
            "secretKey": [
              "invoices:read"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "number": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "tax_invoice",
                              "bill_of_supply",
                              "credit_note",
                              "invoice",
                              "receipt_voucher"
                            ]
                          },
                          "booking_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "place_of_supply": {
                            "type": "string"
                          },
                          "taxable_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "cgst_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "sgst_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "igst_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "total_paise": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "issued_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "original_number": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "pdf_ready": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "number",
                          "type",
                          "booking_id",
                          "place_of_supply",
                          "taxable_paise",
                          "cgst_paise",
                          "sgst_paise",
                          "igst_paise",
                          "total_paise",
                          "issued_at",
                          "original_number",
                          "pdf_ready"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other"
      }
    },
    "/v2/webhook-endpoints": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Your webhook endpoints in this environment.",
        "security": [
          {
            "secretKey": [
              "webhooks:manage"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^whe_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "url": {
                            "type": "string"
                          },
                          "event_types": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "active",
                              "disabled"
                            ]
                          },
                          "disabled_reason": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "failing_since": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "secret_rotated_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "url",
                          "event_types",
                          "status",
                          "disabled_reason",
                          "failing_since",
                          "secret_rotated_at",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other"
      },
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Add an endpoint. Its signing secret is shown once.",
        "security": [
          {
            "secretKey": [
              "webhooks:manage"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "event_types": {
                    "minItems": 1,
                    "maxItems": 9,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "booking.requested",
                        "booking.booked",
                        "booking.declined",
                        "booking.assigned",
                        "booking.scheduled",
                        "booking.performed",
                        "booking.proof_shared",
                        "booking.closed",
                        "booking.cancelled"
                      ]
                    }
                  }
                },
                "required": [
                  "url"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^whe_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "url": {
                      "type": "string"
                    },
                    "event_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "disabled"
                      ]
                    },
                    "disabled_reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failing_since": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "secret_rotated_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "url",
                    "event_types",
                    "status",
                    "disabled_reason",
                    "failing_since",
                    "secret_rotated_at",
                    "created_at",
                    "secret"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other",
        "x-tirth-idempotency": "optional",
        "x-tirth-errors": [
          {
            "code": "endpoint_limit_reached",
            "status": 409
          },
          {
            "code": "conflict",
            "status": 409
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    },
    "/v2/webhook-endpoints/{id}": {
      "delete": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Switch an endpoint off. Its waiting deliveries stop.",
        "security": [
          {
            "secretKey": [
              "webhooks:manage"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^whe_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "x-tirth-rate-limit-group": "other",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      }
    },
    "/v2/webhook-endpoints/{id}/rotate-secret": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "summary": "A new signing secret, with the old one still signing for 24 hours.",
        "security": [
          {
            "secretKey": [
              "webhooks:manage"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^whe_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^whe_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "url": {
                      "type": "string"
                    },
                    "event_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "disabled"
                      ]
                    },
                    "disabled_reason": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "failing_since": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "secret_rotated_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "url",
                    "event_types",
                    "status",
                    "disabled_reason",
                    "failing_since",
                    "secret_rotated_at",
                    "created_at",
                    "secret"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other",
        "x-tirth-idempotency": "optional",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "conflict",
            "status": 409
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    },
    "/v2/webhook-deliveries": {
      "get": {
        "tags": [
          "Webhooks"
        ],
        "summary": "Deliveries from the last 30 days, newest first.",
        "security": [
          {
            "secretKey": [
              "webhooks:manage"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^whe_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "endpoint_id",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^whd_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^whd_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "endpoint_id": {
                            "type": "string",
                            "pattern": "^whe_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "event_id": {
                            "type": "string",
                            "pattern": "^evt_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "type": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "booking_id": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "delivered",
                              "failed",
                              "dead"
                            ]
                          },
                          "attempts": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "response_code": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "response_ms": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "last_error": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "next_attempt_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "endpoint_id",
                          "event_id",
                          "type",
                          "booking_id",
                          "status",
                          "attempts",
                          "response_code",
                          "response_ms",
                          "last_error",
                          "next_attempt_at",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^whd_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other"
      }
    },
    "/v2/cases": {
      "post": {
        "tags": [
          "Cases"
        ],
        "summary": "Ask Tirth support about one of your bookings.",
        "security": [
          {
            "secretKey": [
              "cases:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "booking_id": {
                    "type": "string",
                    "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                  },
                  "partner_reference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$"
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "change",
                      "cancel",
                      "refund",
                      "on_trip",
                      "proof",
                      "payment",
                      "other"
                    ]
                  },
                  "message": {
                    "type": "string",
                    "minLength": 5,
                    "maxLength": 2000
                  }
                },
                "required": [
                  "category",
                  "message"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^case_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "booking_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "partner_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "category": {
                      "type": "string"
                    },
                    "priority": {
                      "type": "string",
                      "enum": [
                        "p1",
                        "p2",
                        "p3",
                        "p4"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "open",
                        "waiting",
                        "resolved",
                        "closed"
                      ]
                    },
                    "first_reply_due_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "resolution_due_at": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "messages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^cmsg_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "from": {
                            "type": "string",
                            "enum": [
                              "you",
                              "tirth",
                              "system"
                            ]
                          },
                          "body": {
                            "type": "string"
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          }
                        },
                        "required": [
                          "id",
                          "from",
                          "body",
                          "created_at"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "booking_id",
                    "partner_reference",
                    "category",
                    "priority",
                    "status",
                    "first_reply_due_at",
                    "resolution_due_at",
                    "created_at",
                    "messages"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          }
        ]
      },
      "get": {
        "tags": [
          "Cases"
        ],
        "summary": "Your cases with their messages.",
        "security": [
          {
            "secretKey": [
              "cases:write"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "waiting",
                "resolved",
                "closed"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^case_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^case_[0-9A-HJKMNP-TV-Z]{26}$"
                          },
                          "booking_id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "partner_reference": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "category": {
                            "type": "string"
                          },
                          "priority": {
                            "type": "string",
                            "enum": [
                              "p1",
                              "p2",
                              "p3",
                              "p4"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "open",
                              "waiting",
                              "resolved",
                              "closed"
                            ]
                          },
                          "first_reply_due_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "resolution_due_at": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "created_at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "messages": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "pattern": "^cmsg_[0-9A-HJKMNP-TV-Z]{26}$"
                                },
                                "from": {
                                  "type": "string",
                                  "enum": [
                                    "you",
                                    "tirth",
                                    "system"
                                  ]
                                },
                                "body": {
                                  "type": "string"
                                },
                                "created_at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                }
                              },
                              "required": [
                                "id",
                                "from",
                                "body",
                                "created_at"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "booking_id",
                          "partner_reference",
                          "category",
                          "priority",
                          "status",
                          "first_reply_due_at",
                          "resolution_due_at",
                          "created_at",
                          "messages"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next_cursor": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^case_[0-9A-HJKMNP-TV-Z]{26}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "items",
                    "next_cursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other"
      }
    },
    "/v2/privacy-requests": {
      "post": {
        "tags": [
          "Privacy requests"
        ],
        "summary": "File a pilgrim's request for a copy of their data, or to delete it.",
        "security": [
          {
            "secretKey": [
              "privacy:write"
            ]
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "booking_id": {
                    "type": "string",
                    "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                  },
                  "partner_reference": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_-]{1,64}$"
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "access",
                      "erasure"
                    ]
                  },
                  "traveller_ids": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^trv_[0-9A-HJKMNP-TV-Z]{26}$"
                    }
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^dsr_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "access",
                        "erasure"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "received",
                        "in_progress",
                        "completed",
                        "rejected",
                        "cancelled"
                      ]
                    },
                    "booking_id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "partner_reference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "traveller_ids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^trv_[0-9A-HJKMNP-TV-Z]{26}$"
                      }
                    },
                    "due_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    },
                    "requested_at": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "status",
                    "booking_id",
                    "partner_reference",
                    "traveller_ids",
                    "due_at",
                    "requested_at"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "other",
        "x-tirth-idempotency": "required",
        "x-tirth-errors": [
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    },
    "/v2/sandbox/bookings/{id}/advance": {
      "post": {
        "tags": [
          "Sandbox"
        ],
        "summary": "Move a sandbox booking one stage on, and send that stage's webhook.",
        "security": [
          {
            "secretKey": [
              "bookings:write"
            ]
          }
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
            },
            "in": "path",
            "name": "id",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "booking_id": {
                      "type": "string",
                      "pattern": "^ord_[0-9A-HJKMNP-TV-Z]{26}$"
                    },
                    "previous_status": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "assigned",
                        "scheduled",
                        "performed",
                        "proof_shared"
                      ]
                    },
                    "version": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "booking_id",
                    "previous_status",
                    "status",
                    "version"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "x-tirth-rate-limit-group": "booking_writes",
        "x-tirth-idempotency": "optional",
        "x-tirth-errors": [
          {
            "code": "sandbox_only",
            "status": 404
          },
          {
            "code": "not_found",
            "status": 404
          },
          {
            "code": "not_advanceable",
            "status": 409
          },
          {
            "code": "idempotency_key_required",
            "status": 400
          },
          {
            "code": "idempotency_key_reused",
            "status": 409
          },
          {
            "code": "idempotency_in_progress",
            "status": 409
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "secretKey": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
