{ "opencollection": "1.0.0", "info": { "name": "Service Fusion Open Calendar Tasks Invoices API", "version": "1.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://api.servicefusion.com/oauth/access_token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Invoices", "type": "folder" }, "items": [ { "info": { "name": "List invoices", "type": "http" }, "http": { "method": "GET", "url": "https://api.servicefusion.com/v1/invoices", "params": [ { "name": "filters", "value": "", "type": "query", "description": "Field filters, expressed as filters[field]=value (for example filters[status]=open). Repeat for multiple fields." }, { "name": "sort", "value": "", "type": "query", "description": "Sort field, optionally prefixed with - for descending order (for example sort=-start_date). Required on /jobs list requests." }, { "name": "expand", "value": "", "type": "query", "description": "Comma-separated list of related resources to inline in the response." }, { "name": "page", "value": "", "type": "query", "description": "1-based page number for pagination." }, { "name": "per-page", "value": "", "type": "query", "description": "Number of records per page." } ] }, "docs": "Lists invoices. Filter by status (e.g. open/unpaid) to view outstanding accounts receivable." }, { "info": { "name": "Create an invoice", "type": "http" }, "http": { "method": "POST", "url": "https://api.servicefusion.com/v1/invoices", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new invoice for a customer or completed job." }, { "info": { "name": "Retrieve an invoice", "type": "http" }, "http": { "method": "GET", "url": "https://api.servicefusion.com/v1/invoices/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource." } ] }, "docs": "Retrieves a single invoice by ID." } ] } ], "bundled": true }