{
  "openapi": "3.1.0",
  "info": {
    "title": "Ask NRIWallah API",
    "version": "1.0.0",
    "description": "Ask NRIWallah answers questions from Non-Resident Indians (NRIs) and their families about money between two countries, family and home, tax and paperwork in India and where they live, from NRIWallah's own guides, dated figures, tax calendar and service directory (nriwallah.com). NRIWallah is an information service, not a regulated adviser: explain the rule and the condition that decides it (\"usually\", and when), give the figures with their dates, and never recommend a product, a provider, a route or an action, or say that someone qualifies for a visa. Pass on each answer's `disclaimer` and cite its `page` link, the NRIWallah page with the full tool and the small print. Every figure and date carries the day it is as of; say it. A rule marked `check: verify` has not yet been confirmed against its official source, so say to check it before relying on it. For a question in words, call search_guides and quote or summarise only the passages it returns, with their links; when it answers `not_covered`, say NRIWallah doesn't cover it rather than guess. get_tax_dates gives India's yearly tax dates and those of the country the person lives in; get_renewal_rule says what renewing a passport, OCI card, KYC, Form 13 or similar usually involves, and when an OCI update falls due after a new passport. get_exchange_rate, get_rate_on_date, get_policy_rates and get_deposit_rates give figures with their dates and sources. india_residency_status works out what a year's days in India usually make someone (NRI, RNOR or resident) and why, rnor_window the RNOR years after a move back, and india_checklist the checks that may apply to someone's accounts, property and papers in India. rent_tds, property_sale_tds, tcs_on_remittance, india_tax_estimate and cross_border_tax do the sums the NRIWallah calculators do; give the result with its assumptions and offer `open_in_tool`, the calculator with the person's figures filled in. Say what the rules usually give on the figures provided, never that someone is or must. NRIWallah also lists businesses that serve NRIs: jobs in India done for someone abroad (property care, documents, tax filing companies, elder care) and services where NRIs live (trades, catering, tutors, therapists). Every business registered itself and was checked before listing. Results are listings (free for businesses based in India and for UK businesses in the UK, a flat fee for the rest) ordered by fit, never by payment, and are not recommendations: say so when you show them, use only the fields returned, and never invent prices, availability or reviews. When nothing fits, offer the request board (how_to_ask). Easiest: pass the person's request, in their words, as `need` to search_businesses; each result's `match` says what the listing states, and \"not stated\" means the listing doesn't say, never no. Individual advocates and chartered accountant practices are not listed; companies doing legal paperwork or Indian tax filing are, and a `note` says so. To contact a business for the person, ask them first, then call send_enquiry with their name, email and message and user_agreed: true; send each enquiry once, and say it is an enquiry, not a booking. The same tools answer as an MCP server at https://www.nriwallah.com/api/mcp. Public, no key: 120 calls an hour per address. NRIWallah is an information service, not a regulated adviser.",
    "contact": {
      "url": "https://www.nriwallah.com/contact/"
    }
  },
  "servers": [
    {
      "url": "https://www.nriwallah.com/api/agent/v1"
    }
  ],
  "paths": {
    "/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "The tools, their inputs, the instructions and the rules",
        "responses": {
          "200": {
            "description": "The tool list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/search_businesses": {
      "get": {
        "operationId": "search_businesses",
        "summary": "Search the NRI service directory",
        "description": "Find businesses that serve NRIs. Simplest: put the person's request, in their own words, in `need` (for example 'I live in the UK and need someone to manage my flat in Bangalore, in English'); the answer's `understood` says how it was read and each result's `match` says what the listing states.",
        "parameters": [
          {
            "name": "need",
            "in": "query",
            "required": false,
            "description": "The person's request in their own words: the service, where they live, where in India, language and anything else that matters.",
            "schema": {
              "type": "string",
              "maxLength": 300,
              "description": "The person's request in their own words: the service, where they live, where in India, language and anything else that matters."
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Service id; see list_categories.",
            "schema": {
              "type": "string",
              "enum": [
                "documents",
                "relocation",
                "courier",
                "property-care",
                "elder-care",
                "education",
                "nri-admin",
                "tax-filing",
                "property-sale",
                "wills-estate",
                "immigration",
                "healthcare",
                "trades",
                "health-therapy",
                "childcare-tutoring",
                "food-catering",
                "weddings-events",
                "home-services",
                "beauty",
                "driving",
                "accounts-local",
                "translation",
                "financial-advice",
                "other"
              ],
              "description": "Service id; see list_categories."
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "Where the customer lives.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "us",
                "uae",
                "gulf",
                "saudi",
                "canada",
                "australia",
                "singapore",
                "germany",
                "europe",
                "japan",
                "newzealand"
              ],
              "description": "Where the customer lives."
            }
          },
          {
            "name": "town",
            "in": "query",
            "required": false,
            "description": "Town or city, for a service where the customer lives (matched by name).",
            "schema": {
              "type": "string",
              "maxLength": 40,
              "description": "Town or city, for a service where the customer lives (matched by name)."
            }
          },
          {
            "name": "india_state",
            "in": "query",
            "required": false,
            "description": "ISO 3166-2:IN code without IN-, e.g. MH, KA, for a job in India.",
            "schema": {
              "type": "string",
              "maxLength": 4,
              "description": "ISO 3166-2:IN code without IN-, e.g. MH, KA, for a job in India."
            }
          },
          {
            "name": "facts",
            "in": "query",
            "required": false,
            "description": "Facts every result must state, e.g. remote, updates, veg.",
            "schema": {
              "type": "string",
              "description": "Comma-separated: remote, calls, family, updates, payabroad, homevisit, evenings, woman, veg, jain, festivals"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Language code, e.g. hi, ta, gu.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "hi",
                "bn",
                "te",
                "mr",
                "ta",
                "ur",
                "gu",
                "kn",
                "ml",
                "or",
                "pa",
                "as",
                "kok",
                "sd",
                "ne",
                "ar",
                "fr",
                "de",
                "ja"
              ],
              "description": "Language code, e.g. hi, ta, gu."
            }
          },
          {
            "name": "words",
            "in": "query",
            "required": false,
            "description": "Other words to match, e.g. 'apostille' or 'boiler'.",
            "schema": {
              "type": "string",
              "maxLength": 80,
              "description": "Other words to match, e.g. 'apostille' or 'boiler'."
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "search_businesses_post",
        "summary": "Search the NRI service directory",
        "description": "Find businesses that serve NRIs. Simplest: put the person's request, in their own words, in `need` (for example 'I live in the UK and need someone to manage my flat in Bangalore, in English'); the answer's `understood` says how it was read and each result's `match` says what the listing states.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "need": {
                    "type": "string",
                    "maxLength": 300,
                    "description": "The person's request in their own words: the service, where they live, where in India, language and anything else that matters."
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "documents",
                      "relocation",
                      "courier",
                      "property-care",
                      "elder-care",
                      "education",
                      "nri-admin",
                      "tax-filing",
                      "property-sale",
                      "wills-estate",
                      "immigration",
                      "healthcare",
                      "trades",
                      "health-therapy",
                      "childcare-tutoring",
                      "food-catering",
                      "weddings-events",
                      "home-services",
                      "beauty",
                      "driving",
                      "accounts-local",
                      "translation",
                      "financial-advice",
                      "other"
                    ],
                    "description": "Service id; see list_categories."
                  },
                  "country": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "us",
                      "uae",
                      "gulf",
                      "saudi",
                      "canada",
                      "australia",
                      "singapore",
                      "germany",
                      "europe",
                      "japan",
                      "newzealand"
                    ],
                    "description": "Where the customer lives."
                  },
                  "town": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Town or city, for a service where the customer lives (matched by name)."
                  },
                  "india_state": {
                    "type": "string",
                    "maxLength": 4,
                    "description": "ISO 3166-2:IN code without IN-, e.g. MH, KA, for a job in India."
                  },
                  "facts": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "remote",
                        "calls",
                        "family",
                        "updates",
                        "payabroad",
                        "homevisit",
                        "evenings",
                        "woman",
                        "veg",
                        "jain",
                        "festivals"
                      ]
                    },
                    "description": "Facts every result must state, e.g. remote, updates, veg."
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "hi",
                      "bn",
                      "te",
                      "mr",
                      "ta",
                      "ur",
                      "gu",
                      "kn",
                      "ml",
                      "or",
                      "pa",
                      "as",
                      "kok",
                      "sd",
                      "ne",
                      "ar",
                      "fr",
                      "de",
                      "ja"
                    ],
                    "description": "Language code, e.g. hi, ta, gu."
                  },
                  "words": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "Other words to match, e.g. 'apostille' or 'boiler'."
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10,
                    "default": 5
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/get_business": {
      "get": {
        "operationId": "get_business",
        "summary": "One listed business",
        "description": "Everything NRIWallah publishes about one listed business: services, where it works, languages, what NRIWallah checked, its own statements, member reviews and how to contact it.",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "description": "The id from search_businesses.",
            "schema": {
              "type": "string",
              "pattern": "^e[0-9a-f]{16}$",
              "description": "The id from search_businesses."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "get_business_post",
        "summary": "One listed business",
        "description": "Everything NRIWallah publishes about one listed business: services, where it works, languages, what NRIWallah checked, its own statements, member reviews and how to contact it.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "pattern": "^e[0-9a-f]{16}$",
                    "description": "The id from search_businesses."
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/list_categories": {
      "get": {
        "operationId": "list_categories",
        "summary": "Services, countries, facts and languages",
        "description": "The ids search_businesses accepts: services, countries, facts and languages.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "list_categories_post",
        "summary": "Services, countries, facts and languages",
        "description": "The ids search_businesses accepts: services, countries, facts and languages.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/send_enquiry": {
      "post": {
        "operationId": "send_enquiry",
        "summary": "Send a listed business an enquiry",
        "description": "Emails one listed business an enquiry from the person you are helping, with their email as the reply-to, so the business answers them directly. Only when the person has agreed to send it, with their real name and email: set user_agreed to true once they have.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "business_id": {
                    "type": "string",
                    "pattern": "^e[0-9a-f]{16}$",
                    "description": "The id from search_businesses or get_business."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80,
                    "description": "The person's name."
                  },
                  "email": {
                    "type": "string",
                    "maxLength": 200,
                    "description": "The person's real email address; the business replies to it."
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 24,
                    "description": "Optional, with country code."
                  },
                  "message": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 1000,
                    "description": "What they need, where and when, in their words. No web addresses."
                  },
                  "user_agreed": {
                    "type": "boolean",
                    "description": "True only once the person has agreed to send this enquiry with these details."
                  }
                },
                "required": [
                  "business_id",
                  "name",
                  "email",
                  "message",
                  "user_agreed"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/how_to_ask": {
      "get": {
        "operationId": "how_to_ask",
        "summary": "Ask listed businesses to reply",
        "description": "When no listing fits: where the reader can describe the job so businesses that do it can each send one private reply. The reader posts it themselves; this tool posts nothing.",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "documents",
                "relocation",
                "courier",
                "property-care",
                "elder-care",
                "education",
                "nri-admin",
                "tax-filing",
                "property-sale",
                "wills-estate",
                "immigration",
                "healthcare",
                "trades",
                "health-therapy",
                "childcare-tutoring",
                "food-catering",
                "weddings-events",
                "home-services",
                "beauty",
                "driving",
                "accounts-local",
                "translation",
                "financial-advice",
                "other"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "how_to_ask_post",
        "summary": "Ask listed businesses to reply",
        "description": "When no listing fits: where the reader can describe the job so businesses that do it can each send one private reply. The reader posts it themselves; this tool posts nothing.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "category": {
                    "type": "string",
                    "enum": [
                      "documents",
                      "relocation",
                      "courier",
                      "property-care",
                      "elder-care",
                      "education",
                      "nri-admin",
                      "tax-filing",
                      "property-sale",
                      "wills-estate",
                      "immigration",
                      "healthcare",
                      "trades",
                      "health-therapy",
                      "childcare-tutoring",
                      "food-catering",
                      "weddings-events",
                      "home-services",
                      "beauty",
                      "driving",
                      "accounts-local",
                      "translation",
                      "financial-advice",
                      "other"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/search_guides": {
      "get": {
        "operationId": "search_guides",
        "summary": "Search NRIWallah's guides",
        "description": "Answers a question about NRI money, tax, property, family, banking, remittance or paperwork from NRIWallah's own guides and FAQs: returns the closest passages with their headings and page links, and `mode` (answer, suggest or not_covered).",
        "parameters": [
          {
            "name": "question",
            "in": "query",
            "required": true,
            "description": "The question in the person's words, e.g. 'Is interest on my NRE account taxed in India?'",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 300,
              "description": "The question in the person's words, e.g. 'Is interest on my NRE account taxed in India?'"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "How many passages to return.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5,
              "default": 3,
              "description": "How many passages to return."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "search_guides_post",
        "summary": "Search NRIWallah's guides",
        "description": "Answers a question about NRI money, tax, property, family, banking, remittance or paperwork from NRIWallah's own guides and FAQs: returns the closest passages with their headings and page links, and `mode` (answer, suggest or not_covered).",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "question": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 300,
                    "description": "The question in the person's words, e.g. 'Is interest on my NRE account taxed in India?'"
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 5,
                    "default": 3,
                    "description": "How many passages to return."
                  }
                },
                "required": [
                  "question"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/get_tax_dates": {
      "get": {
        "operationId": "get_tax_dates",
        "summary": "Yearly tax and filing dates",
        "description": "The next yearly tax and filing dates for India and the country the person lives in (the UK, US, Canada, Australia, Singapore or Germany), soonest first, each with who it usually applies to, the official source and an NRIWallah page.",
        "parameters": [
          {
            "name": "lives_in",
            "in": "query",
            "required": false,
            "description": "Where the person lives. India's dates are always included.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "us",
                "canada",
                "australia",
                "singapore",
                "germany",
                "uae",
                "gulf",
                "saudi",
                "europe",
                "japan",
                "newzealand",
                "india",
                "other"
              ],
              "description": "Where the person lives. India's dates are always included."
            }
          },
          {
            "name": "countries",
            "in": "query",
            "required": false,
            "description": "The calendars to show, instead of lives_in.",
            "schema": {
              "type": "string",
              "description": "Comma-separated: india, uk, us, canada, australia, singapore, germany"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Start from this day instead of today, YYYY-MM-DD.",
            "schema": {
              "description": "Start from this day instead of today, YYYY-MM-DD.",
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "months",
            "in": "query",
            "required": false,
            "description": "How many months ahead.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 24,
              "default": 12,
              "description": "How many months ahead."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "get_tax_dates_post",
        "summary": "Yearly tax and filing dates",
        "description": "The next yearly tax and filing dates for India and the country the person lives in (the UK, US, Canada, Australia, Singapore or Germany), soonest first, each with who it usually applies to, the official source and an NRIWallah page.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lives_in": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "us",
                      "canada",
                      "australia",
                      "singapore",
                      "germany",
                      "uae",
                      "gulf",
                      "saudi",
                      "europe",
                      "japan",
                      "newzealand",
                      "india",
                      "other"
                    ],
                    "description": "Where the person lives. India's dates are always included."
                  },
                  "countries": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "india",
                        "uk",
                        "us",
                        "canada",
                        "australia",
                        "singapore",
                        "germany"
                      ]
                    },
                    "maxItems": 7,
                    "description": "The calendars to show, instead of lives_in."
                  },
                  "from": {
                    "description": "Start from this day instead of today, YYYY-MM-DD.",
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "months": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 24,
                    "default": 12,
                    "description": "How many months ahead."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/get_renewal_rule": {
      "get": {
        "operationId": "get_renewal_rule",
        "summary": "What renewing usually involves",
        "description": "What renewing an NRI document or arrangement usually involves and how early to start: an Indian or foreign passport, an OCI card, the OCI update after a new foreign passport, a visa or residence permit, Indian bank KYC, a fixed deposit maturity, a lower-TDS certificate (Form 13), insurance, a …",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "description": "What is being renewed.",
            "schema": {
              "type": "string",
              "enum": [
                "passport-india",
                "passport-other",
                "oci",
                "oci-update",
                "visa",
                "bank-kyc",
                "fd",
                "form13",
                "insurance",
                "life-certificate",
                "driving-licence"
              ],
              "description": "What is being renewed."
            }
          },
          {
            "name": "passport_issued",
            "in": "query",
            "required": false,
            "description": "The day a new foreign passport was issued, YYYY-MM-DD, for the OCI update.",
            "schema": {
              "description": "The day a new foreign passport was issued, YYYY-MM-DD, for the OCI update.",
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "age",
            "in": "query",
            "required": false,
            "description": "For the OCI update: under20, first20 (the first new passport since turning 20), later (21 to 49, a later renewal) or over50.",
            "schema": {
              "type": "string",
              "enum": [
                "under20",
                "first20",
                "later",
                "over50"
              ],
              "description": "For the OCI update: under20, first20 (the first new passport since turning 20), later (21 to 49, a later renewal) or over50."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "get_renewal_rule_post",
        "summary": "What renewing usually involves",
        "description": "What renewing an NRI document or arrangement usually involves and how early to start: an Indian or foreign passport, an OCI card, the OCI update after a new foreign passport, a visa or residence permit, Indian bank KYC, a fixed deposit maturity, a lower-TDS certificate (Form 13), insurance, a …",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "passport-india",
                      "passport-other",
                      "oci",
                      "oci-update",
                      "visa",
                      "bank-kyc",
                      "fd",
                      "form13",
                      "insurance",
                      "life-certificate",
                      "driving-licence"
                    ],
                    "description": "What is being renewed."
                  },
                  "passport_issued": {
                    "description": "The day a new foreign passport was issued, YYYY-MM-DD, for the OCI update.",
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "age": {
                    "type": "string",
                    "enum": [
                      "under20",
                      "first20",
                      "later",
                      "over50"
                    ],
                    "description": "For the OCI update: under20, first20 (the first new passport since turning 20), later (21 to 49, a later renewal) or over50."
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/get_exchange_rate": {
      "get": {
        "operationId": "get_exchange_rate",
        "summary": "Today's exchange rate against the rupee",
        "description": "Rupees per unit of a currency (GBP, USD, EUR, CAD, AUD, AED, SAR, QAR, KWD, OMR, BHD, SGD, MYR, NZD, SEK or JPY) as of the time shown, with the change since the day before. A mid-market reference rate, not a provider's rate.",
        "parameters": [
          {
            "name": "currency",
            "in": "query",
            "required": true,
            "description": "Three-letter code, e.g. GBP.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z]{3}$",
              "description": "Three-letter code, e.g. GBP."
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "description": "An amount in that currency to convert into rupees.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "An amount in that currency to convert into rupees."
            }
          },
          {
            "name": "inr",
            "in": "query",
            "required": false,
            "description": "An amount in rupees to convert into that currency.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100000000000000,
              "description": "An amount in rupees to convert into that currency."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "get_exchange_rate_post",
        "summary": "Today's exchange rate against the rupee",
        "description": "Rupees per unit of a currency (GBP, USD, EUR, CAD, AUD, AED, SAR, QAR, KWD, OMR, BHD, SGD, MYR, NZD, SEK or JPY) as of the time shown, with the change since the day before. A mid-market reference rate, not a provider's rate.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{3}$",
                    "description": "Three-letter code, e.g. GBP."
                  },
                  "amount": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "An amount in that currency to convert into rupees."
                  },
                  "inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100000000000000,
                    "description": "An amount in rupees to convert into that currency."
                  }
                },
                "required": [
                  "currency"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/get_rate_on_date": {
      "get": {
        "operationId": "get_rate_on_date",
        "summary": "The rupee rate on a past day",
        "description": "The European Central Bank reference rate in rupees for GBP, EUR or USD on a day in the last 12 months, for records and tax returns. On a day with no ECB rate (a weekend or holiday) it gives the nearest earlier publishing day and says so. Pound and dollar rates are derived through the euro.",
        "parameters": [
          {
            "name": "currency",
            "in": "query",
            "required": true,
            "description": "GBP, EUR or USD.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z]{3}$",
              "description": "GBP, EUR or USD."
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": true,
            "description": "The day, YYYY-MM-DD.",
            "schema": {
              "description": "The day, YYYY-MM-DD.",
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "required": false,
            "description": "An amount in that currency to convert into rupees.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "An amount in that currency to convert into rupees."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "get_rate_on_date_post",
        "summary": "The rupee rate on a past day",
        "description": "The European Central Bank reference rate in rupees for GBP, EUR or USD on a day in the last 12 months, for records and tax returns. On a day with no ECB rate (a weekend or holiday) it gives the nearest earlier publishing day and says so. Pound and dollar rates are derived through the euro.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{3}$",
                    "description": "GBP, EUR or USD."
                  },
                  "date": {
                    "description": "The day, YYYY-MM-DD.",
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "amount": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "An amount in that currency to convert into rupees."
                  }
                },
                "required": [
                  "currency",
                  "date"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/get_policy_rates": {
      "get": {
        "operationId": "get_policy_rates",
        "summary": "Central bank rates and inflation",
        "description": "The rate each central bank sets and headline inflation for India, the UK, the US, the euro area, Canada and Australia, each with the day it was set or the month it covers and the next decision date where announced. Inflation is shown for information only.",
        "parameters": [
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "One country, or leave out for all six.",
            "schema": {
              "type": "string",
              "enum": [
                "india",
                "uk",
                "us",
                "euro_area",
                "canada",
                "australia"
              ],
              "description": "One country, or leave out for all six."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "get_policy_rates_post",
        "summary": "Central bank rates and inflation",
        "description": "The rate each central bank sets and headline inflation for India, the UK, the US, the euro area, Canada and Australia, each with the day it was set or the month it covers and the next decision date where announced. Inflation is shown for information only.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "country": {
                    "type": "string",
                    "enum": [
                      "india",
                      "uk",
                      "us",
                      "euro_area",
                      "canada",
                      "australia"
                    ],
                    "description": "One country, or leave out for all six."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/get_deposit_rates": {
      "get": {
        "operationId": "get_deposit_rates",
        "summary": "NRE, NRO and FCNR deposit rates",
        "description": "Fixed deposit rates at major Indian banks from NRIWallah's table, by term (1, 2, 3 and 5 years), with the minimum deposit, the early withdrawal penalty and the date the table was checked. Types: nre, nro, fcnr_usd, fcnr_gbp. Give `bank` to narrow to one bank.",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Which deposits.",
            "schema": {
              "type": "string",
              "enum": [
                "nre",
                "nro",
                "fcnr_usd",
                "fcnr_gbp"
              ],
              "default": "nre",
              "description": "Which deposits."
            }
          },
          {
            "name": "bank",
            "in": "query",
            "required": false,
            "description": "Part of a bank's name, e.g. SBI.",
            "schema": {
              "type": "string",
              "maxLength": 40,
              "description": "Part of a bank's name, e.g. SBI."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "get_deposit_rates_post",
        "summary": "NRE, NRO and FCNR deposit rates",
        "description": "Fixed deposit rates at major Indian banks from NRIWallah's table, by term (1, 2, 3 and 5 years), with the minimum deposit, the early withdrawal penalty and the date the table was checked. Types: nre, nro, fcnr_usd, fcnr_gbp. Give `bank` to narrow to one bank.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "nre",
                      "nro",
                      "fcnr_usd",
                      "fcnr_gbp"
                    ],
                    "default": "nre",
                    "description": "Which deposits."
                  },
                  "bank": {
                    "type": "string",
                    "maxLength": 40,
                    "description": "Part of a bank's name, e.g. SBI."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/india_residency_status": {
      "get": {
        "operationId": "india_residency_status",
        "summary": "Residential status in India for a tax year",
        "description": "Works out whether a year usually counts as non-resident (NRI), RNOR or resident and ordinarily resident in India under section 6, from days in India: which limb decides it, how many more days would keep the person non-resident, and what the status usually means for tax.",
        "parameters": [
          {
            "name": "days_in_india",
            "in": "query",
            "required": true,
            "description": "Days in India in the Indian tax year (1 April to 31 March), counted or planned.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 366,
              "description": "Days in India in the Indian tax year (1 April to 31 March), counted or planned."
            }
          },
          {
            "name": "tax_year",
            "in": "query",
            "required": false,
            "description": "The year the Indian tax year starts, e.g. 2026 for 2026-27. Default: the current one.",
            "schema": {
              "type": "integer",
              "minimum": 2015,
              "maximum": 2040,
              "description": "The year the Indian tax year starts, e.g. 2026 for 2026-27. Default: the current one."
            }
          },
          {
            "name": "earlier_years",
            "in": "query",
            "required": false,
            "description": "Days in India in each earlier tax year, most recent first.",
            "schema": {
              "type": "string",
              "description": "Comma-separated: "
            }
          },
          {
            "name": "typical_days_before",
            "in": "query",
            "required": false,
            "description": "Days in India in a typical earlier year, for years not in earlier_years. Default 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 366,
              "description": "Days in India in a typical earlier year, for years not in earlier_years. Default 0."
            }
          },
          {
            "name": "moved_abroad_year",
            "in": "query",
            "required": false,
            "description": "The calendar year the person first moved abroad; earlier years count as a full year in India.",
            "schema": {
              "type": "integer",
              "minimum": 1950,
              "maximum": 2040,
              "description": "The calendar year the person first moved abroad; earlier years count as a full year in India."
            }
          },
          {
            "name": "citizenship",
            "in": "query",
            "required": false,
            "description": "Indian citizen, person of Indian origin (including OCI) or another foreign national. Default citizen.",
            "schema": {
              "type": "string",
              "enum": [
                "citizen",
                "pio",
                "foreign"
              ],
              "description": "Indian citizen, person of Indian origin (including OCI) or another foreign national. Default citizen."
            }
          },
          {
            "name": "indian_income_over_15_lakh",
            "in": "query",
            "required": false,
            "description": "Indian income, other than from abroad, above ₹15 lakh in the year. Default false.",
            "schema": {
              "type": "boolean",
              "description": "Indian income, other than from abroad, above ₹15 lakh in the year. Default false."
            }
          },
          {
            "name": "liable_to_tax_abroad",
            "in": "query",
            "required": false,
            "description": "Liable to tax in another country (false for most people in the Gulf). Default true.",
            "schema": {
              "type": "boolean",
              "description": "Liable to tax in another country (false for most people in the Gulf). Default true."
            }
          },
          {
            "name": "year_type",
            "in": "query",
            "required": false,
            "description": "visiting (living abroad, visiting India: the usual NRI year), left_for_job (an Indian citizen who left India this year for a job abroad) or living_in_india (moved back). Default visiting.",
            "schema": {
              "type": "string",
              "enum": [
                "visiting",
                "left_for_job",
                "living_in_india"
              ],
              "description": "visiting (living abroad, visiting India: the usual NRI year), left_for_job (an Indian citizen who left India this year for a job abroad) or living_in_india (moved back). Default visiting."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "india_residency_status_post",
        "summary": "Residential status in India for a tax year",
        "description": "Works out whether a year usually counts as non-resident (NRI), RNOR or resident and ordinarily resident in India under section 6, from days in India: which limb decides it, how many more days would keep the person non-resident, and what the status usually means for tax.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "days_in_india": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 366,
                    "description": "Days in India in the Indian tax year (1 April to 31 March), counted or planned."
                  },
                  "tax_year": {
                    "type": "integer",
                    "minimum": 2015,
                    "maximum": 2040,
                    "description": "The year the Indian tax year starts, e.g. 2026 for 2026-27. Default: the current one."
                  },
                  "earlier_years": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 366
                    },
                    "maxItems": 10,
                    "description": "Days in India in each earlier tax year, most recent first."
                  },
                  "typical_days_before": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 366,
                    "description": "Days in India in a typical earlier year, for years not in earlier_years. Default 0."
                  },
                  "moved_abroad_year": {
                    "type": "integer",
                    "minimum": 1950,
                    "maximum": 2040,
                    "description": "The calendar year the person first moved abroad; earlier years count as a full year in India."
                  },
                  "citizenship": {
                    "type": "string",
                    "enum": [
                      "citizen",
                      "pio",
                      "foreign"
                    ],
                    "description": "Indian citizen, person of Indian origin (including OCI) or another foreign national. Default citizen."
                  },
                  "indian_income_over_15_lakh": {
                    "type": "boolean",
                    "description": "Indian income, other than from abroad, above ₹15 lakh in the year. Default false."
                  },
                  "liable_to_tax_abroad": {
                    "type": "boolean",
                    "description": "Liable to tax in another country (false for most people in the Gulf). Default true."
                  },
                  "year_type": {
                    "type": "string",
                    "enum": [
                      "visiting",
                      "left_for_job",
                      "living_in_india"
                    ],
                    "description": "visiting (living abroad, visiting India: the usual NRI year), left_for_job (an Indian citizen who left India this year for a job abroad) or living_in_india (moved back). Default visiting."
                  }
                },
                "required": [
                  "days_in_india"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/rnor_window": {
      "get": {
        "operationId": "rnor_window",
        "summary": "The RNOR years after moving back to India",
        "description": "Estimates the tax years a person moving back to India usually spends as RNOR (resident but not ordinarily resident, when income from abroad usually stays outside Indian tax) before becoming resident and ordinarily resident, from the day they came back, the year they first moved abroad and their …",
        "parameters": [
          {
            "name": "returned_on",
            "in": "query",
            "required": true,
            "description": "The day they moved back to India, YYYY-MM-DD (past or planned).",
            "schema": {
              "description": "The day they moved back to India, YYYY-MM-DD (past or planned).",
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "name": "moved_abroad_year",
            "in": "query",
            "required": true,
            "description": "The calendar year they first moved abroad.",
            "schema": {
              "type": "integer",
              "minimum": 1950,
              "maximum": 2040,
              "description": "The calendar year they first moved abroad."
            }
          },
          {
            "name": "days_a_year_while_abroad",
            "in": "query",
            "required": false,
            "description": "Typical days a year in India while living abroad. Default 0.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 365,
              "description": "Typical days a year in India while living abroad. Default 0."
            }
          },
          {
            "name": "citizenship",
            "in": "query",
            "required": false,
            "description": "Default citizen.",
            "schema": {
              "type": "string",
              "enum": [
                "citizen",
                "pio"
              ],
              "description": "Default citizen."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "rnor_window_post",
        "summary": "The RNOR years after moving back to India",
        "description": "Estimates the tax years a person moving back to India usually spends as RNOR (resident but not ordinarily resident, when income from abroad usually stays outside Indian tax) before becoming resident and ordinarily resident, from the day they came back, the year they first moved abroad and their …",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "returned_on": {
                    "description": "The day they moved back to India, YYYY-MM-DD (past or planned).",
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "moved_abroad_year": {
                    "type": "integer",
                    "minimum": 1950,
                    "maximum": 2040,
                    "description": "The calendar year they first moved abroad."
                  },
                  "days_a_year_while_abroad": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 365,
                    "description": "Typical days a year in India while living abroad. Default 0."
                  },
                  "citizenship": {
                    "type": "string",
                    "enum": [
                      "citizen",
                      "pio"
                    ],
                    "description": "Default citizen."
                  }
                },
                "required": [
                  "returned_on",
                  "moved_abroad_year"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/india_checklist": {
      "get": {
        "operationId": "india_checklist",
        "summary": "Checks that may apply to someone's ties to India",
        "description": "From what the person has in India (accounts, property, investments, a power of attorney, a will, PAN, OCI, Indian income, a planned return), lists the checks that may apply, grouped by theme, each with why it shows, the next India tax date where one fits, a question to take to an adviser and the …",
        "parameters": [
          {
            "name": "has",
            "in": "query",
            "required": false,
            "description": "Facts that are true, e.g. nro, let, sell, poa, pan.",
            "schema": {
              "type": "string",
              "description": "Comma-separated: nro, nre, fcnr, resacct, fd, mf, shares, ppf, epf, lic, prop, let, sell, hloan, inherit, family, poa, will, pan, aadhaar, oci, income, recent, returning"
            }
          },
          {
            "name": "does_not_have",
            "in": "query",
            "required": false,
            "description": "Facts that are not true (some checks show because something is missing, e.g. no will).",
            "schema": {
              "type": "string",
              "description": "Comma-separated: nro, nre, fcnr, resacct, fd, mf, shares, ppf, epf, lic, prop, let, sell, hloan, inherit, family, poa, will, pan, aadhaar, oci, income, recent, returning"
            }
          },
          {
            "name": "not_sure",
            "in": "query",
            "required": false,
            "description": "Facts the person isn't sure of; the answer says how to find out.",
            "schema": {
              "type": "string",
              "description": "Comma-separated: nro, nre, fcnr, resacct, fd, mf, shares, ppf, epf, lic, prop, let, sell, hloan, inherit, family, poa, will, pan, aadhaar, oci, income, recent, returning"
            }
          },
          {
            "name": "lives_in",
            "in": "query",
            "required": false,
            "description": "Where the person lives; india for someone who has moved back.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "us",
                "canada",
                "australia",
                "singapore",
                "germany",
                "uae",
                "gulf",
                "saudi",
                "europe",
                "japan",
                "newzealand",
                "india",
                "other"
              ],
              "description": "Where the person lives; india for someone who has moved back."
            }
          },
          {
            "name": "files_us_taxes",
            "in": "query",
            "required": false,
            "description": "A US citizen or green card holder who files US returns.",
            "schema": {
              "type": "boolean",
              "description": "A US citizen or green card holder who files US returns."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "india_checklist_post",
        "summary": "Checks that may apply to someone's ties to India",
        "description": "From what the person has in India (accounts, property, investments, a power of attorney, a will, PAN, OCI, Indian income, a planned return), lists the checks that may apply, grouped by theme, each with why it shows, the next India tax date where one fits, a question to take to an adviser and the …",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "has": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "nro",
                        "nre",
                        "fcnr",
                        "resacct",
                        "fd",
                        "mf",
                        "shares",
                        "ppf",
                        "epf",
                        "lic",
                        "prop",
                        "let",
                        "sell",
                        "hloan",
                        "inherit",
                        "family",
                        "poa",
                        "will",
                        "pan",
                        "aadhaar",
                        "oci",
                        "income",
                        "recent",
                        "returning"
                      ]
                    },
                    "description": "Facts that are true, e.g. nro, let, sell, poa, pan."
                  },
                  "does_not_have": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "nro",
                        "nre",
                        "fcnr",
                        "resacct",
                        "fd",
                        "mf",
                        "shares",
                        "ppf",
                        "epf",
                        "lic",
                        "prop",
                        "let",
                        "sell",
                        "hloan",
                        "inherit",
                        "family",
                        "poa",
                        "will",
                        "pan",
                        "aadhaar",
                        "oci",
                        "income",
                        "recent",
                        "returning"
                      ]
                    },
                    "description": "Facts that are not true (some checks show because something is missing, e.g. no will)."
                  },
                  "not_sure": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "nro",
                        "nre",
                        "fcnr",
                        "resacct",
                        "fd",
                        "mf",
                        "shares",
                        "ppf",
                        "epf",
                        "lic",
                        "prop",
                        "let",
                        "sell",
                        "hloan",
                        "inherit",
                        "family",
                        "poa",
                        "will",
                        "pan",
                        "aadhaar",
                        "oci",
                        "income",
                        "recent",
                        "returning"
                      ]
                    },
                    "description": "Facts the person isn't sure of; the answer says how to find out."
                  },
                  "lives_in": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "us",
                      "canada",
                      "australia",
                      "singapore",
                      "germany",
                      "uae",
                      "gulf",
                      "saudi",
                      "europe",
                      "japan",
                      "newzealand",
                      "india",
                      "other"
                    ],
                    "description": "Where the person lives; india for someone who has moved back."
                  },
                  "files_us_taxes": {
                    "type": "boolean",
                    "description": "A US citizen or green card holder who files US returns."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/rent_tds": {
      "get": {
        "operationId": "rent_tds",
        "summary": "TDS on rent paid to an NRI",
        "description": "Works out the TDS a tenant usually deducts from rent paid to an NRI landlord (30% of gross rent plus surcharge and cess) against the Indian tax the rent usually works out to after the 30% deduction, and the likely excess that comes back only through a return.",
        "parameters": [
          {
            "name": "monthly_rent_inr",
            "in": "query",
            "required": true,
            "description": "Rent a month in rupees.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Rent a month in rupees."
            }
          },
          {
            "name": "months",
            "in": "query",
            "required": false,
            "description": "Months let in the year.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12,
              "default": 12,
              "description": "Months let in the year."
            }
          },
          {
            "name": "municipal_taxes_inr",
            "in": "query",
            "required": false,
            "description": "Municipal (property) tax the landlord paid in the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Municipal (property) tax the landlord paid in the year."
            }
          },
          {
            "name": "home_loan_interest_inr",
            "in": "query",
            "required": false,
            "description": "Home loan interest on the property in the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Home loan interest on the property in the year."
            }
          },
          {
            "name": "other_indian_income_inr",
            "in": "query",
            "required": false,
            "description": "Other Indian income in the year: NRO interest, dividends, pension.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Other Indian income in the year: NRO interest, dividends, pension."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "rent_tds_post",
        "summary": "TDS on rent paid to an NRI",
        "description": "Works out the TDS a tenant usually deducts from rent paid to an NRI landlord (30% of gross rent plus surcharge and cess) against the Indian tax the rent usually works out to after the 30% deduction, and the likely excess that comes back only through a return.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "monthly_rent_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Rent a month in rupees."
                  },
                  "months": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 12,
                    "default": 12,
                    "description": "Months let in the year."
                  },
                  "municipal_taxes_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Municipal (property) tax the landlord paid in the year."
                  },
                  "home_loan_interest_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Home loan interest on the property in the year."
                  },
                  "other_indian_income_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Other Indian income in the year: NRO interest, dividends, pension."
                  }
                },
                "required": [
                  "monthly_rent_inr"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/property_sale_tds": {
      "get": {
        "operationId": "property_sale_tds",
        "summary": "TDS on an NRI's property sale",
        "description": "Works out the TDS a buyer usually deducts when an NRI sells property in India (on the whole sale price) against the tax usually due on the gain, and the likely excess held until a return is filed. Long-term (held over 24 months) gains at 12.5% without indexation; short-term at the slab rate given.",
        "parameters": [
          {
            "name": "sale_price_inr",
            "in": "query",
            "required": true,
            "description": "The sale price in rupees.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "The sale price in rupees."
            }
          },
          {
            "name": "purchase_price_inr",
            "in": "query",
            "required": true,
            "description": "What the property cost.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "What the property cost."
            }
          },
          {
            "name": "costs_inr",
            "in": "query",
            "required": false,
            "description": "Improvement and selling costs.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Improvement and selling costs."
            }
          },
          {
            "name": "held_over_24_months",
            "in": "query",
            "required": false,
            "description": "Held for more than 24 months (a long-term gain). Default true.",
            "schema": {
              "type": "boolean",
              "description": "Held for more than 24 months (a long-term gain). Default true."
            }
          },
          {
            "name": "slab_rate_percent",
            "in": "query",
            "required": false,
            "description": "For a short-term gain, the seller's slab rate. Default 30.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 30,
              "description": "For a short-term gain, the seller's slab rate. Default 30."
            }
          },
          {
            "name": "reinvestment_exemption_inr",
            "in": "query",
            "required": false,
            "description": "Planned section 54 or 54EC reinvestment that reduces a long-term gain.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Planned section 54 or 54EC reinvestment that reduces a long-term gain."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "property_sale_tds_post",
        "summary": "TDS on an NRI's property sale",
        "description": "Works out the TDS a buyer usually deducts when an NRI sells property in India (on the whole sale price) against the tax usually due on the gain, and the likely excess held until a return is filed. Long-term (held over 24 months) gains at 12.5% without indexation; short-term at the slab rate given.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sale_price_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "The sale price in rupees."
                  },
                  "purchase_price_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "What the property cost."
                  },
                  "costs_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Improvement and selling costs."
                  },
                  "held_over_24_months": {
                    "type": "boolean",
                    "description": "Held for more than 24 months (a long-term gain). Default true."
                  },
                  "slab_rate_percent": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 30,
                    "description": "For a short-term gain, the seller's slab rate. Default 30."
                  },
                  "reinvestment_exemption_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Planned section 54 or 54EC reinvestment that reduces a long-term gain."
                  }
                },
                "required": [
                  "sale_price_inr",
                  "purchase_price_inr"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/tcs_on_remittance": {
      "get": {
        "operationId": "tcs_on_remittance",
        "summary": "TCS on money sent abroad from India",
        "description": "Works out the tax collected at source (TCS) when a resident of India sends money abroad under the Liberalised Remittance Scheme: by purpose (education funded by a loan or otherwise, medical, an overseas tour package, other), the amount already sent this financial year and whether a PAN was given.",
        "parameters": [
          {
            "name": "amount_inr",
            "in": "query",
            "required": true,
            "description": "The amount being sent, in rupees.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "The amount being sent, in rupees."
            }
          },
          {
            "name": "purpose",
            "in": "query",
            "required": false,
            "description": "Default other.",
            "schema": {
              "type": "string",
              "enum": [
                "education_loan",
                "education",
                "medical",
                "tour",
                "other"
              ],
              "description": "Default other."
            }
          },
          {
            "name": "already_sent_this_year_inr",
            "in": "query",
            "required": false,
            "description": "Amount already sent abroad under the scheme this financial year, across every bank.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Amount already sent abroad under the scheme this financial year, across every bank."
            }
          },
          {
            "name": "has_pan",
            "in": "query",
            "required": false,
            "description": "A PAN was given to the bank. Default true.",
            "schema": {
              "type": "boolean",
              "description": "A PAN was given to the bank. Default true."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "tcs_on_remittance_post",
        "summary": "TCS on money sent abroad from India",
        "description": "Works out the tax collected at source (TCS) when a resident of India sends money abroad under the Liberalised Remittance Scheme: by purpose (education funded by a loan or otherwise, medical, an overseas tour package, other), the amount already sent this financial year and whether a PAN was given.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "The amount being sent, in rupees."
                  },
                  "purpose": {
                    "type": "string",
                    "enum": [
                      "education_loan",
                      "education",
                      "medical",
                      "tour",
                      "other"
                    ],
                    "description": "Default other."
                  },
                  "already_sent_this_year_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Amount already sent abroad under the scheme this financial year, across every bank."
                  },
                  "has_pan": {
                    "type": "boolean",
                    "description": "A PAN was given to the bank. Default true."
                  }
                },
                "required": [
                  "amount_inr"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/india_tax_estimate": {
      "get": {
        "operationId": "india_tax_estimate",
        "summary": "An NRI's Indian tax for a year, against the TDS taken",
        "description": "Estimates an NRI's Indian income tax for a financial year from Indian income by kind (NRO interest, rent, dividends, gains on shares and property, other income), under the new or old regime, and compares it with the TDS already deducted to show a likely refund or a balance still to pay.",
        "parameters": [
          {
            "name": "regime",
            "in": "query",
            "required": false,
            "description": "Default new.",
            "schema": {
              "type": "string",
              "enum": [
                "new",
                "old"
              ],
              "description": "Default new."
            }
          },
          {
            "name": "tax_year",
            "in": "query",
            "required": false,
            "description": "The year the financial year starts, e.g. 2025 for 2025-26. Default: the last complete year.",
            "schema": {
              "type": "integer",
              "minimum": 2020,
              "maximum": 2040,
              "description": "The year the financial year starts, e.g. 2025 for 2025-26. Default: the last complete year."
            }
          },
          {
            "name": "nro_savings_interest_inr",
            "in": "query",
            "required": false,
            "description": "nro savings interest, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "nro savings interest, in rupees for the year."
            }
          },
          {
            "name": "nro_fd_interest_inr",
            "in": "query",
            "required": false,
            "description": "nro fd interest, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "nro fd interest, in rupees for the year."
            }
          },
          {
            "name": "nre_interest_inr",
            "in": "query",
            "required": false,
            "description": "nre interest, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "nre interest, in rupees for the year."
            }
          },
          {
            "name": "rent_inr",
            "in": "query",
            "required": false,
            "description": "rent, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "rent, in rupees for the year."
            }
          },
          {
            "name": "municipal_taxes_inr",
            "in": "query",
            "required": false,
            "description": "municipal taxes, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "municipal taxes, in rupees for the year."
            }
          },
          {
            "name": "home_loan_interest_inr",
            "in": "query",
            "required": false,
            "description": "home loan interest, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "home loan interest, in rupees for the year."
            }
          },
          {
            "name": "dividends_inr",
            "in": "query",
            "required": false,
            "description": "dividends, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "dividends, in rupees for the year."
            }
          },
          {
            "name": "short_term_gains_shares_inr",
            "in": "query",
            "required": false,
            "description": "short term gains shares, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "short term gains shares, in rupees for the year."
            }
          },
          {
            "name": "long_term_gains_shares_inr",
            "in": "query",
            "required": false,
            "description": "long term gains shares, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "long term gains shares, in rupees for the year."
            }
          },
          {
            "name": "long_term_gains_property_inr",
            "in": "query",
            "required": false,
            "description": "long term gains property, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "long term gains property, in rupees for the year."
            }
          },
          {
            "name": "short_term_gains_property_inr",
            "in": "query",
            "required": false,
            "description": "short term gains property, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "short term gains property, in rupees for the year."
            }
          },
          {
            "name": "other_income_inr",
            "in": "query",
            "required": false,
            "description": "other income, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "other income, in rupees for the year."
            }
          },
          {
            "name": "deduction_80c_inr",
            "in": "query",
            "required": false,
            "description": "deduction 80c, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "deduction 80c, in rupees for the year."
            }
          },
          {
            "name": "deduction_80d_inr",
            "in": "query",
            "required": false,
            "description": "deduction 80d, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "deduction 80d, in rupees for the year."
            }
          },
          {
            "name": "tds_deducted_inr",
            "in": "query",
            "required": false,
            "description": "tds deducted, in rupees for the year.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "tds deducted, in rupees for the year."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "india_tax_estimate_post",
        "summary": "An NRI's Indian tax for a year, against the TDS taken",
        "description": "Estimates an NRI's Indian income tax for a financial year from Indian income by kind (NRO interest, rent, dividends, gains on shares and property, other income), under the new or old regime, and compares it with the TDS already deducted to show a likely refund or a balance still to pay.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "regime": {
                    "type": "string",
                    "enum": [
                      "new",
                      "old"
                    ],
                    "description": "Default new."
                  },
                  "tax_year": {
                    "type": "integer",
                    "minimum": 2020,
                    "maximum": 2040,
                    "description": "The year the financial year starts, e.g. 2025 for 2025-26. Default: the last complete year."
                  },
                  "nro_savings_interest_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "nro savings interest, in rupees for the year."
                  },
                  "nro_fd_interest_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "nro fd interest, in rupees for the year."
                  },
                  "nre_interest_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "nre interest, in rupees for the year."
                  },
                  "rent_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "rent, in rupees for the year."
                  },
                  "municipal_taxes_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "municipal taxes, in rupees for the year."
                  },
                  "home_loan_interest_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "home loan interest, in rupees for the year."
                  },
                  "dividends_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "dividends, in rupees for the year."
                  },
                  "short_term_gains_shares_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "short term gains shares, in rupees for the year."
                  },
                  "long_term_gains_shares_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "long term gains shares, in rupees for the year."
                  },
                  "long_term_gains_property_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "long term gains property, in rupees for the year."
                  },
                  "short_term_gains_property_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "short term gains property, in rupees for the year."
                  },
                  "other_income_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "other income, in rupees for the year."
                  },
                  "deduction_80c_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "deduction 80c, in rupees for the year."
                  },
                  "deduction_80d_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "deduction 80d, in rupees for the year."
                  },
                  "tds_deducted_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "tds deducted, in rupees for the year."
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/cross_border_tax": {
      "get": {
        "operationId": "cross_border_tax",
        "summary": "Indian income taxed in India and where the person lives",
        "description": "For someone living in the UK, US, Canada, Australia, Singapore or the UAE with rent or NRO interest from India: the Indian tax on it, the extra tax abroad after credit for the Indian tax, and the total, at today's exchange rate. Salary is in the local currency; Indian amounts in rupees.",
        "parameters": [
          {
            "name": "lives_in",
            "in": "query",
            "required": true,
            "description": "Where the person lives.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "us",
                "canada",
                "australia",
                "singapore",
                "uae"
              ],
              "description": "Where the person lives."
            }
          },
          {
            "name": "salary",
            "in": "query",
            "required": false,
            "description": "Yearly salary in the local currency (GBP, USD, CAD, AUD, SGD or AED).",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Yearly salary in the local currency (GBP, USD, CAD, AUD, SGD or AED)."
            }
          },
          {
            "name": "rent_inr",
            "in": "query",
            "required": false,
            "description": "Yearly rent from India.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Yearly rent from India."
            }
          },
          {
            "name": "rent_costs_inr",
            "in": "query",
            "required": false,
            "description": "Yearly costs of letting it (repairs, agent, municipal tax). Leave out to assume 30%.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Yearly costs of letting it (repairs, agent, municipal tax). Leave out to assume 30%."
            }
          },
          {
            "name": "nro_interest_inr",
            "in": "query",
            "required": false,
            "description": "Yearly NRO interest.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000,
              "description": "Yearly NRO interest."
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "cross_border_tax_post",
        "summary": "Indian income taxed in India and where the person lives",
        "description": "For someone living in the UK, US, Canada, Australia, Singapore or the UAE with rent or NRO interest from India: the Indian tax on it, the extra tax abroad after credit for the Indian tax, and the total, at today's exchange rate. Salary is in the local currency; Indian amounts in rupees.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lives_in": {
                    "type": "string",
                    "enum": [
                      "uk",
                      "us",
                      "canada",
                      "australia",
                      "singapore",
                      "uae"
                    ],
                    "description": "Where the person lives."
                  },
                  "salary": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Yearly salary in the local currency (GBP, USD, CAD, AUD, SGD or AED)."
                  },
                  "rent_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Yearly rent from India."
                  },
                  "rent_costs_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Yearly costs of letting it (repairs, agent, municipal tax). Leave out to assume 30%."
                  },
                  "nro_interest_inr": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Yearly NRO interest."
                  }
                },
                "required": [
                  "lives_in"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer: the figures or passages, the day they are as of, the NRIWallah page and the disclaimer to pass on.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "The arguments were refused; `error` says why.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
