{ "opencollection": "1.0.0", "info": { "name": "FirstPromoter Invoices API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Invoices", "type": "folder" }, "items": [ { "info": { "name": "Get invoices", "type": "http" }, "http": { "method": "GET", "url": "https://api.firstpromoter.com/api/v2/company/invoices", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "filters[promoter_id]", "value": "", "type": "query", "description": "Filter by promoter ID" }, { "name": "filters[status]", "value": "", "type": "query", "description": "Filter by status" } ] }, "docs": "Returns all invoices. \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/invoices`
" }, { "info": { "name": "Get invoice by id", "type": "http" }, "http": { "method": "GET", "url": "https://api.firstpromoter.com/api/v2/company/invoices/:id", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path", "description": "Invoice ID" } ] }, "docs": "Returns single invoice \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/invoices/{id}`
" }, { "info": { "name": "Void invoices", "type": "http" }, "http": { "method": "POST", "url": "https://api.firstpromoter.com/api/v2/company/invoices/void", "headers": [ { "name": "Account-ID", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Marks invoices as void \n **HTTP Request**
`POST https://api.firstpromoter.com/api/v2/company/invoices/void`
" }, { "info": { "name": "Finalize invoices", "type": "http" }, "http": { "method": "POST", "url": "https://api.firstpromoter.com/api/v2/company/invoices/finalize", "headers": [ { "name": "Account-ID", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Marks invoices as finalized \n **HTTP Request**
`POST https://api.firstpromoter.com/api/v2/company/invoices/finalize`
" }, { "info": { "name": "Destroy invoices", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.firstpromoter.com/api/v2/company/invoices/destroy", "headers": [ { "name": "Account-ID", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Deletes invoices \n **HTTP Request**
`DELETE https://api.firstpromoter.com/api/v2/company/invoices/destroy`
" }, { "info": { "name": "Export invoices as csv", "type": "http" }, "http": { "method": "GET", "url": "https://api.firstpromoter.com/api/v2/company/invoices/export", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "filters[promoter_id]", "value": "", "type": "query", "description": "Filter by promoter ID" } ] }, "docs": "Exports invoices as csv \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/invoices/export`
" }, { "info": { "name": "Export all invoices PDF in a single zip", "type": "http" }, "http": { "method": "GET", "url": "https://api.firstpromoter.com/api/v2/company/invoices/export_zip", "headers": [ { "name": "Account-ID", "value": "" } ] }, "docs": "Exports invoices PDF in a single zip \n **HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/invoices/export_zip`
" }, { "info": { "name": "Show invoice preview", "type": "http" }, "http": { "method": "GET", "url": "https://api.firstpromoter.com/api/v2/company/invoices/preview", "headers": [ { "name": "Account-ID", "value": "" } ], "params": [ { "name": "promoter_id", "value": "", "type": "query", "description": "The promoter id" }, { "name": "payout_ids", "value": "", "type": "query", "description": "Payout ids" } ] }, "docs": "**HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/invoices/preview`
" } ] }, { "info": { "name": "Invoice Templates", "type": "folder" }, "items": [ { "info": { "name": "Show invoice template", "type": "http" }, "http": { "method": "GET", "url": "https://api.firstpromoter.com/api/v2/company/invoices/template", "headers": [ { "name": "Account-ID", "value": "" } ] }, "docs": "**HTTP Request**
`GET https://api.firstpromoter.com/api/v2/company/invoices/template`
" }, { "info": { "name": "Show invoice template preview", "type": "http" }, "http": { "method": "POST", "url": "https://api.firstpromoter.com/api/v2/company/invoices/preview_template", "headers": [ { "name": "Account-ID", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "**HTTP Request**
`POST https://api.firstpromoter.com/api/v2/company/invoices/preview_template`
" }, { "info": { "name": "Update invoice template", "type": "http" }, "http": { "method": "PUT", "url": "https://api.firstpromoter.com/api/v2/company/invoices/custom_template", "headers": [ { "name": "Account-ID", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "**HTTP Request**
`PUT https://api.firstpromoter.com/api/v2/company/invoices/custom_template`
" } ] } ], "bundled": true }