post
https://api.apicbase.com/api/v2/suppliers/
Creates a new supplier in the library.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
You can edit the details of placing orders with a supplier using the Edit Supplier Ordering Details endpoint.
Order approval settings
order_approval_enabled, daily_order_threshold and approver_roles are returned to every library with their stored values, whether or not it has the Order Approval module.
- Without the module, a request that changes any of them is refused with 400, naming only the fields whose value differs from the stored one. Sending the stored values back is accepted, so a record that is read and written back whole goes through.
approver_rolesis written as role IDs. It is read as role objects (id,name) and written as a list of their IDs, like a user connector'srole. Sending the objects back is refused with 400.- Enabling needs a threshold.
order_approval_enabled: truewithout adaily_order_thresholdis refused with 400 ondaily_order_threshold. - Roles are checked when written. Each one must belong to the library, be a library or outlet role and hold the Approve Orders permission; otherwise the request is refused with 400 on
approver_roles, listing the rejected IDs.
403Forbidden - User lacks required permissions
