{"openapi":"3.1.0","info":{"title":"Precoro (BYOK) API","version":"0.1.0","description":"Precoro (BYOK) lets an AI assistant read your own Precoro data through the Precoro API with a key you supply (Precoro API key (international .com instance)). Read-only: 12 tools (list_purchase_orders, get_purchase_order, list_purchase_requisitions, list_invoices, list_receipts, list_suppliers, list_items, list_contracts, list_budgets, list_warehouses, list_warehouse_items, list_locations). The...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-precoro.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-precoro/docs"},"termsOfService":"https://connectorbay.com/byok-precoro/terms"},"servers":[{"url":"https://byok-precoro.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-precoro/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_purchase_orders":{"post":{"operationId":"list_purchase_orders","summary":"List purchase orders with number, dates, totals, currency, status, receiving and payment status, supplier and location. ","description":"List purchase orders with number, dates, totals, currency, status, receiving and payment status, supplier and location. Status fields are numeric codes (2 appears on approved documents). Limits: 60 requests a minute and 3,000 a day; repeating an identical request is limited to once a minute. Use for \"Which Precoro purchase orders changed this week\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"modified_since":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only records changed since this time, ISO 8601 such as 2026-09-01T00:00:00.","title":"Modified Since"},"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_purchase_ordersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_purchase_order":{"post":{"operationId":"get_purchase_order","summary":"Get one purchase order by its number (IDN) with all lines, taxes, supplier, location, budget and approval details. Statu","description":"Get one purchase order by its number (IDN) with all lines, taxes, supplier, location, budget and approval details. Status fields are numeric codes (2 appears on approved documents). Limits: 60 requests a minute and 3,000 a day; repeating an identical request is limited to once a minute. Use for \"Show Precoro purchase order 3 with its lines\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"idn":{"description":"Purchase order number (the idn field of the list).","maxLength":200,"title":"Idn","type":"string"}},"required":["idn"],"title":"get_purchase_orderArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_purchase_requisitions":{"post":{"operationId":"list_purchase_requisitions","summary":"List purchase requisitions (purchase requests) with number, dates, total, currency, status and location. Status fields a","description":"List purchase requisitions (purchase requests) with number, dates, total, currency, status and location. Status fields are numeric codes (2 appears on approved documents). Limits: 60 requests a minute and 3,000 a day; repeating an identical request is limited to once a minute. Use for \"What purchase requisitions are in Precoro\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"modified_since":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only records changed since this time, ISO 8601 such as 2026-09-01T00:00:00.","title":"Modified Since"},"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_purchase_requisitionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_invoices":{"post":{"operationId":"list_invoices","summary":"List invoices with invoice number, dates, total, amount paid, currency, status and supplier. Status fields are numeric c","description":"List invoices with invoice number, dates, total, amount paid, currency, status and supplier. Status fields are numeric codes (2 appears on approved documents). Limits: 60 requests a minute and 3,000 a day; repeating an identical request is limited to once a minute. Use for \"Which Precoro invoices are still unpaid\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"modified_since":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only records changed since this time, ISO 8601 such as 2026-09-01T00:00:00.","title":"Modified Since"},"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_invoicesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_receipts":{"post":{"operationId":"list_receipts","summary":"List goods receipts with number, dates, status, location and warehouse. Status fields are numeric codes (2 appears on ap","description":"List goods receipts with number, dates, status, location and warehouse. Status fields are numeric codes (2 appears on approved documents). Limits: 60 requests a minute and 3,000 a day; repeating an identical request is limited to once a minute. Use for \"What did we receive recently in Precoro\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"modified_since":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only records changed since this time, ISO 8601 such as 2026-09-01T00:00:00.","title":"Modified Since"},"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_receiptsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_suppliers":{"post":{"operationId":"list_suppliers","summary":"List suppliers with code, name, currency, country, city, minimum order sum and delivery period. Bank details are left ou","description":"List suppliers with code, name, currency, country, city, minimum order sum and delivery period. Bank details are left out. Use for \"Who are my suppliers in Precoro\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"modified_since":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only records changed since this time, ISO 8601 such as 2026-09-01T00:00:00.","title":"Modified Since"},"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_suppliersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_items":{"post":{"operationId":"list_items","summary":"List catalog items with SKU, name, price, currency, unit and type. Use for \"What items are in my Precoro catalog\".","description":"List catalog items with SKU, name, price, currency, unit and type. Use for \"What items are in my Precoro catalog\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"modified_since":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Only records changed since this time, ISO 8601 such as 2026-09-01T00:00:00.","title":"Modified Since"},"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_contracts":{"post":{"operationId":"list_contracts","summary":"List supplier contracts with number, dates, whether they renew and the supplier. Use for \"Which supplier contracts end s","description":"List supplier contracts with number, dates, whether they renew and the supplier. Use for \"Which supplier contracts end soon in Precoro\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_contractsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_budgets":{"post":{"operationId":"list_budgets","summary":"List budgets with period, amount, used and available sums. Use for \"How much budget is left in Precoro\".","description":"List budgets with period, amount, used and available sums. Use for \"How much budget is left in Precoro\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_budgetsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_warehouses":{"post":{"operationId":"list_warehouses","summary":"List warehouses with name, code and whether they are enabled. Use for \"What warehouses are set up in Precoro\".","description":"List warehouses with name, code and whether they are enabled. Use for \"What warehouses are set up in Precoro\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_warehousesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_warehouse_items":{"post":{"operationId":"list_warehouse_items","summary":"List the stock held in one warehouse: quantity, minimum level, reorder level and the item's SKU and name. Use for \"What ","description":"List the stock held in one warehouse: quantity, minimum level, reorder level and the item's SKU and name. Use for \"What stock is in Precoro warehouse 12963\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"warehouse_id":{"description":"Numeric warehouse ID from list_warehouses.","title":"Warehouse Id","type":"integer"},"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"required":["warehouse_id"],"title":"list_warehouse_itemsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_locations":{"post":{"operationId":"list_locations","summary":"List company locations with code, name and address. Use for \"What locations does Precoro have\".","description":"List company locations with code, name and address. Use for \"What locations does Precoro have\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"per_page":{"anyOf":[{"enum":[10,20,50,100,200],"type":"integer"},{"type":"null"}],"default":50,"description":"How many records per page; only 10, 20, 50, 100 or 200 are accepted.","title":"Per Page"},"page":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Page number, starting at 1.","title":"Page"}},"title":"list_locationsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}