{ "opencollection": "1.0.0", "info": { "name": "Coupa Core Invoices API", "version": "1.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://{instance}.coupahost.com/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Invoices", "type": "folder" }, "items": [ { "info": { "name": "Coupa List invoices", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}.coupahost.com/api/invoices", "params": [ { "name": "offset", "value": "", "type": "query", "description": "Number of records to skip for pagination" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of records to return (max 50)" }, { "name": "return_object", "value": "", "type": "query", "description": "Set to limited to return only key fields, or shallow to exclude nested objects" }, { "name": "dir", "value": "", "type": "query", "description": "Sort direction (asc or desc)" }, { "name": "status", "value": "", "type": "query", "description": "Filter by invoice status. Full list includes new, draft, pending_approval, approved, pending_receipt, processing, payable_adjustment, on_hold, ap_hold, booking_hold, pending_action, rejected, disputed, abandoned, voided, invalid." }, { "name": "invoice-number", "value": "", "type": "query", "description": "Filter by invoice number" }, { "name": "supplier[name]", "value": "", "type": "query", "description": "Filter by supplier name" }, { "name": "updated-at[gt]", "value": "", "type": "query", "description": "Filter for records updated after this datetime" }, { "name": "exported", "value": "", "type": "query", "description": "Filter by export status" } ] }, "docs": "Retrieve a list of invoices. Use query parameters to filter results. Supports filtering by status, supplier, date ranges, and export status." }, { "info": { "name": "Coupa Create an invoice", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.coupahost.com/api/invoices", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new invoice. Requires an invoice number, invoice date, supplier, currency, and at least one invoice line." }, { "info": { "name": "Coupa Get an invoice", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}.coupahost.com/api/invoices/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" }, { "name": "return_object", "value": "", "type": "query", "description": "Set to limited to return only key fields, or shallow to exclude nested objects" } ] }, "docs": "Retrieve a single invoice by its Coupa internal ID." }, { "info": { "name": "Coupa Update an invoice", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/invoices/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update an existing invoice by its Coupa internal ID." }, { "info": { "name": "Coupa Submit a draft invoice for approval", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/invoices/:id/submit", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ] }, "docs": "Submit a draft invoice for approval. The invoice must be in draft status. Once submitted, the invoice enters the approval workflow." }, { "info": { "name": "Coupa Abandon an invoice", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/invoices/:id/abandon", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ] }, "docs": "Abandon an invoice, removing it from active processing." }, { "info": { "name": "Coupa Void an approved or pending invoice", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/invoices/:id/void", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ] }, "docs": "Void an invoice that is in approved or pending status. Voided invoices cannot be reactivated." }, { "info": { "name": "Coupa Dispute an invoice", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/invoices/:id/dispute", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Dispute an invoice. The supplier will be notified and the invoice status changes to disputed." } ] } ], "bundled": true }