{
  "opencollection": "1.0.0",
  "info": {
    "name": "Romit Application Invoice API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://api.romit.io/v1/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Invoice",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List invoices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.romit.io/v1/invoice",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Page size for list endpoints."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Result offset for list endpoints."
              }
            ]
          },
          "docs": "List invoices"
        },
        {
          "info": {
            "name": "Create an invoice",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.romit.io/v1/invoice",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an invoice"
        },
        {
          "info": {
            "name": "Get an invoice",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.romit.io/v1/invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get an invoice"
        },
        {
          "info": {
            "name": "Update an invoice",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.romit.io/v1/invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an invoice"
        },
        {
          "info": {
            "name": "Cancel an invoice",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.romit.io/v1/invoice/:id/cancel",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Cancel an invoice"
        }
      ]
    }
  ],
  "bundled": true
}