{ "opencollection": "1.0.0", "info": { "name": "Basware OAUTH2 authentication APIs AccountingDocuments MatchingOrders API", "version": "1.0.0" }, "items": [ { "info": { "name": "MatchingOrders", "type": "folder" }, "items": [ { "info": { "name": "Returns matching order headers posted to Basware API.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/matchingOrders", "headers": [ { "name": "x-amz-meta-continuationtoken", "value": "a4cb3d5f-441a-469d-9234-36f631bc5249" } ], "params": [ { "name": "pageSize", "value": "", "type": "query", "description": "A limit for the number of items to be returned for one request. Limit can range between 1 and 500 items." }, { "name": "companyCode", "value": "", "type": "query", "description": "Company filter. Returns items for specific company." }, { "name": "orderStatus", "value": "", "type": "query", "description": "Order status filter. Returns items for specific status." }, { "name": "lastUpdated", "value": "", "type": "query", "description": "Date Filter. Returns items that have been updated after specified date." } ] }, "docs": "Returns matching order headers posted to Basware API." }, { "info": { "name": "Creates new order header(s), overwrites previous record if exists.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/matchingOrders", "headers": [ { "name": "Content-Type", "value": "application/json" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Notes: \r\n1) Please make sure you have POSTed the order header to matchingOrders API before posting lines to the same order through matchingOrderLines API. It is enough to POST the order header only once (unless updates are needed to the order header). The order becomes available in P2P after order lines lines have been added.\r\n2) Vendor(s) used by the order need to be in P2P before importing the order. \r\n3) The following fields uniquely identify an order in P2P: Order number, source system, comp" }, { "info": { "name": "Deletes data from Basware API. For manual one-time operations.", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v1/matchingOrders", "body": { "type": "json", "data": "{}" } }, "docs": "For manual one-time operations only, such as a manual clean-up to remove test data generated during API integration development. Only removes records from API layer. \r\nDeletion in target systems needs to be done separately using the data deletion mechanisms available in each of the target system in addition to deleting the data in Basware API." }, { "info": { "name": "Returns single matching order header by externalCode -identifier.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/matchingOrders/:externalCode", "params": [ { "name": "externalCode", "value": "", "type": "path", "description": "The ExternalCode of the entity to be fetched" } ] }, "docs": "Returns single matching order header by externalCode -identifier." }, { "info": { "name": "Updates fields on specified order header. Preserves existing values in fields, which were not updated.", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/v1/matchingOrders/:externalCode", "params": [ { "name": "externalCode", "value": "", "type": "path", "description": "The ExternalCode of the order to be updated" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Note: Basware API considers 'null' value in field(s) equivalent to the field(s) not being sent. For this reason patch method does not support setting field values to 'null'.\r\nPlease see section \"[Usage scenario 2: Import external purchase orders for Order Matching](https://developer.basware.com/api/p2p/manual#usage2)\" for details on implementing this API. Check out also the [example JSONs using a minimal feasible set of fields](https://developer.basware.com/api/p2p/templates) from the developer " } ] } ], "bundled": true }