{
  "opencollection": "1.0.0",
  "info": {
    "name": "Helpcenter Finance API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Finance",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List invoices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v1/zohoFinance/:financeService/invoices",
            "params": [
              {
                "name": "deskEntityId",
                "value": "",
                "type": "query",
                "description": "To fetch invoice by desk contact or account or ticket id"
              },
              {
                "name": "pageNumber",
                "value": "",
                "type": "query",
                "description": "page number"
              },
              {
                "name": "departmentId",
                "value": "",
                "type": "query",
                "description": "Department Id"
              },
              {
                "name": "deskModuleName",
                "value": "",
                "type": "query",
                "description": "Desk Module Name:  Contacts or Cases or Accounts"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "To fetch invoice by status, Available status are sent, draft, overdue, paid, void, unpaid, partially_paid and viewed"
              },
              {
                "name": "financeService",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "To list invoices."
        },
        {
          "info": {
            "name": "List estimates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v1/zohoFinance/:financeService/estimates",
            "params": [
              {
                "name": "deskEntityId",
                "value": "",
                "type": "query",
                "description": "To fetch invoice by desk contact or account or ticket id"
              },
              {
                "name": "pageNumber",
                "value": "",
                "type": "query",
                "description": "page number"
              },
              {
                "name": "deskModuleName",
                "value": "",
                "type": "query",
                "description": "Desk Module Name:  Contacts or Cases or Accounts"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "To fetch invoice by status, Available status are sent, draft, overdue, paid, void, unpaid, partially_paid and viewed"
              },
              {
                "name": "financeService",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "To list estimates."
        },
        {
          "info": {
            "name": "Update estimate status ",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/api/v1/zohoFinance/:financeService/estimates/:id",
            "params": [
              {
                "name": "financeService",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This will update status of estimate."
        },
        {
          "info": {
            "name": "Update invoice status ",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/api/v1/zohoFinance/:financeService/invoices/:id",
            "params": [
              {
                "name": "financeService",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This will  update status of invoice."
        },
        {
          "info": {
            "name": "MarkAllInvoicesSent",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/api/v1/zohoFinance/:financeService/invoices/markAsSent",
            "params": [
              {
                "name": "financeService",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This will update status of invoice to sent."
        },
        {
          "info": {
            "name": "Get tickets for invoices",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/api/v1/finance/invoices/:id/tickets",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "To get associated tickets for invoice id."
        }
      ]
    }
  ],
  "bundled": true
}