{ "opencollection": "1.0.0", "info": { "name": "Embat AccountingAccounts Products API", "version": "2.120.3" }, "items": [ { "info": { "name": "Products", "type": "folder" }, "items": [ { "info": { "name": "List products", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/products/:companyId", "params": [ { "name": "companyId", "value": "", "type": "path" }, { "name": "manual", "value": "", "type": "query", "description": "Filter by how the product was added: `true` for manually added products, `false` for products aggregated from a bank connection." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns the active products (bank accounts, credit lines, cards or wallets) of a company, whether aggregated from a bank connection or added manually. Results are not paginated. Products not marked as visible in Embat are excluded." }, { "info": { "name": "Update products in bulk", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/products/:companyId", "params": [ { "name": "companyId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates the accounting code and/or additional info of several products, identified by `id`. Entries whose `id` does not match any product are silently skipped — the call returns `200` for the whole batch. If the same `id` appears more than once, all entries are applied in order and the last one determines the final values." }, { "info": { "name": "Retrieve product", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/products/:companyId/:id", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "companyId", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns a single product by its Embat `id`." }, { "info": { "name": "Update product", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/products/:companyId/:id", "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "companyId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates the accounting code and/or additional info of a product identified by `id`. Updating an `id` that does not match any product also returns `200` without applying any change — no `404` is raised." } ] } ], "bundled": true }