This page lists the 8 endpoints of the info_records sub-module of the procurement module, under /api/v1/procurement. Scope: Info records, their prices, and a lookup. The module entry page is Procurement API.
Group facts¶
| Item | Value | Source |
|---|---|---|
| Base path | /api/v1/procurement |
src/cluster_erp/core/module_base.py:37-38, src/cluster_erp/modules/procurement/module.py:70 |
| Routers | 1 router objects in 1 files; listed in the section Endpoints | src/cluster_erp/modules/procurement/module.py:35 |
| Endpoints | 8, counted from the route decorators and add_api_route calls of the routers that register_routes mounts |
src/cluster_erp/modules/procurement/info_records/routes.py |
| Authentication | Bearer header or session cookie, resolved by get_current_user; see Authentication and headers |
src/cluster_erp/modules/auth/guards.py:85-167 |
| Permission guard | 8 of 8 routes declare require_permission |
src/cluster_erp/modules/auth/guards.py:205-240 |
| App entitlement gate | require_app("procurement") on every mounted router |
src/cluster_erp/modules/procurement/module.py:82 |
| Error format | JSON body {"error": {...}}; see Errors |
src/cluster_erp/server/error_handler.py:33-46 |
Endpoints¶
| Method | Path | Handler | Permission | Request | Query | Response | Status | Source |
|---|---|---|---|---|---|---|---|---|
GET |
/api/v1/procurement/info-records/ |
list_records |
info_record.read |
none | search, vendor_party_id, product_id, is_active, limit, offset |
dict |
200 (default) | src/cluster_erp/modules/procurement/info_records/routes.py:32 |
POST |
/api/v1/procurement/info-records/ |
create_record |
info_record.create |
PurchasingInfoRecordCreate |
none | PurchasingInfoRecordRead |
201 |
src/cluster_erp/modules/procurement/info_records/routes.py:61 |
GET |
/api/v1/procurement/info-records/{record_id} |
get_record |
info_record.read |
none | none | PurchasingInfoRecordRead |
200 (default) | src/cluster_erp/modules/procurement/info_records/routes.py:72 |
PUT |
/api/v1/procurement/info-records/{record_id} |
update_record |
info_record.update |
PurchasingInfoRecordUpdate |
none | PurchasingInfoRecordRead |
200 (default) | src/cluster_erp/modules/procurement/info_records/routes.py:85 |
DELETE |
/api/v1/procurement/info-records/{record_id} |
delete_record |
info_record.delete |
none | none | none | 204 |
src/cluster_erp/modules/procurement/info_records/routes.py:99 |
POST |
/api/v1/procurement/info-records/bulk-delete |
bulk_delete |
info_record.delete |
BulkDeleteRequest |
none | BulkDeleteResponse |
200 (default) | src/cluster_erp/modules/procurement/info_records/routes.py:110 |
GET |
/api/v1/procurement/info-records/{record_id}/prices |
list_prices |
info_record.read |
none | search |
list[PurchasingInfoRecordPriceRead] |
200 (default) | src/cluster_erp/modules/procurement/info_records/routes.py:125 |
GET |
/api/v1/procurement/info-record-lookup |
lookup |
info_record.read |
none | vendor_party_id, product_id |
dict |
200 (default) | src/cluster_erp/modules/procurement/info_records/routes.py:140 |
Error codes¶
The table lists the error codes that code under src/cluster_erp/modules/procurement/info_records/ raises, found by a syntax-tree scan for AppError(...), the factories in src/cluster_erp/core/errors.py (not_found, conflict, protected, permission_denied, privilege_escalation, check_version), and HTTPException(...). A status of 400 is the AppError default (src/cluster_erp/core/errors.py:23). Guard errors (401, 403), the entitlement codes, and validation errors (422) apply to every route and are listed on Errors.
| Code | HTTP status | Raised in | First site |
|---|---|---|---|
CONCURRENCY_VERSION_CONFLICT |
409 |
services |
src/cluster_erp/modules/procurement/info_records/services.py:199 |
INFO_RECORD_EXISTS |
409 |
services |
src/cluster_erp/modules/procurement/info_records/services.py:169 |
RESOURCE_NOT_FOUND |
404 |
routes |
src/cluster_erp/modules/procurement/info_records/routes.py:81 |
Related pages¶
Verified against commit 92f8051 on 2026-11-13.