{
  "opencollection": "1.0.0",
  "info": {
    "name": "Razorpay Bills Instant Settlements API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Instant Settlements",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Fetch all instant settlements",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.razorpay.com/v1/settlements/ondemand",
            "params": [
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "Unix timestamp (seconds). Fetch records created on or after this time."
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "Unix timestamp (seconds). Fetch records created on or before this time."
              },
              {
                "name": "count",
                "value": "",
                "type": "query",
                "description": "Number of records to return per call. Maximum 100. Default 10."
              },
              {
                "name": "skip",
                "value": "",
                "type": "query",
                "description": "Number of records to skip. Use with count for pagination. Default 0."
              },
              {
                "name": "expand[]",
                "value": "",
                "type": "query",
                "description": "Set to ondemand_payouts to include payout details."
              }
            ]
          },
          "docs": "Retrieve a list of all on-demand instant settlements. Use expand[]=ondemand_payouts to include individual payout records inline."
        },
        {
          "info": {
            "name": "Create an instant settlement",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.razorpay.com/v1/settlements/ondemand",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Request an on-demand (instant) settlement of your available Razorpay balance to your bank account. Fees apply. Use settle_full_balance=true to settle everything available, or specify an amount."
        },
        {
          "info": {
            "name": "Fetch instant settlement by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.razorpay.com/v1/settlements/ondemand/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Instant settlement ID (setlod_*)."
              },
              {
                "name": "expand[]",
                "value": "",
                "type": "query",
                "description": "Set to ondemand_payouts to include payout details."
              }
            ]
          },
          "docs": "Retrieve details of a specific on-demand instant settlement. Use expand[]=ondemand_payouts to include payout records."
        }
      ]
    }
  ],
  "bundled": true
}