{ "opencollection": "1.0.0", "info": { "name": "Coupa Core Invoices Purchase Orders 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": "Purchase Orders", "type": "folder" }, "items": [ { "info": { "name": "Coupa List purchase orders", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}.coupahost.com/api/purchase_orders", "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 order status. Includes buyer_hold, cancelled, closed, currency_hold, draft, error, expensed, issued, supplier_hold, supplier_window_hold, and exported." }, { "name": "po-number", "value": "", "type": "query", "description": "Filter by purchase order 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": "created-at[gt]", "value": "", "type": "query", "description": "Filter for records created after this datetime" }, { "name": "exported", "value": "", "type": "query", "description": "Filter by export status" } ] }, "docs": "Retrieve a list of purchase orders. Use query parameters to filter results. Coupa recommends always limiting result sets with GET criteria for optimal performance." }, { "info": { "name": "Coupa Create a purchase order", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.coupahost.com/api/purchase_orders", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new external purchase order. The type must be set to ExternalOrderHeader. A supplier and at least one order line are required." }, { "info": { "name": "Coupa Get a purchase order", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}.coupahost.com/api/purchase_orders/: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 purchase order by its Coupa internal ID." }, { "info": { "name": "Coupa Update a purchase order", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/purchase_orders/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update an existing purchase order by its Coupa internal ID." }, { "info": { "name": "Coupa Cancel a purchase order", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/purchase_orders/:id/cancel", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ] }, "docs": "Cancel an existing purchase order." }, { "info": { "name": "Coupa Close a purchase order", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/purchase_orders/:id/close", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ] }, "docs": "Close an existing purchase order." }, { "info": { "name": "Coupa Issue a purchase order", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/purchase_orders/:id/issue", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ] }, "docs": "Issue and send the purchase order to the supplier." }, { "info": { "name": "Coupa Reopen a purchase order", "type": "http" }, "http": { "method": "PUT", "url": "https://{instance}.coupahost.com/api/purchase_orders/:id/reopen", "params": [ { "name": "id", "value": "", "type": "path", "description": "Coupa internal unique identifier" } ] }, "docs": "Reopen a soft-closed purchase order." } ] } ], "bundled": true }