{
  "opencollection": "1.0.0",
  "info": {
    "name": "Puzzle Api Accounts Invoices API",
    "version": "0"
  },
  "items": [
    {
      "info": {
        "name": "Invoices",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Invoices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/invoices",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              },
              {
                "name": "from",
                "value": "",
                "type": "query"
              },
              {
                "name": "to",
                "value": "",
                "type": "query"
              },
              {
                "name": "customerIds",
                "value": "",
                "type": "query"
              },
              {
                "name": "statuses",
                "value": "",
                "type": "query"
              },
              {
                "name": "coaKeys",
                "value": "",
                "type": "query"
              },
              {
                "name": "isPaid",
                "value": "",
                "type": "query"
              },
              {
                "name": "minAmount",
                "value": "",
                "type": "query"
              },
              {
                "name": "maxAmount",
                "value": "",
                "type": "query"
              },
              {
                "name": "sortBy",
                "value": "",
                "type": "query"
              },
              {
                "name": "count",
                "value": "",
                "type": "query"
              },
              {
                "name": "after",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Retrieves invoices.\n\nRequired scope: read:company"
        },
        {
          "info": {
            "name": "Create Invoice",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/invoices",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates an invoice for the company.\n\nRequired scope: write:invoice"
        },
        {
          "info": {
            "name": "Get Invoice",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/invoices/:invoiceId",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              },
              {
                "name": "invoiceId",
                "value": "",
                "type": "path",
                "description": "The invoice ID"
              }
            ]
          },
          "docs": "Retrieves an invoice.\n\nRequired scope: read:company"
        },
        {
          "info": {
            "name": "Update Invoice",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://staging.southparkdata.com/rest/v0/company/:id/invoices/:invoiceId",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The company ID"
              },
              {
                "name": "invoiceId",
                "value": "",
                "type": "path",
                "description": "The invoice ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an invoice.\n\nRequired scope: write:invoice"
        }
      ]
    }
  ],
  "bundled": true
}