patch
https://api.apicbase.com/api/v2/suppliers//
Edits an existing supplier.
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.
To write back a record you read, send outlets as outlet IDs or leave it out: it is read as outlet URLs, which are refused on write.
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_threshold, sent or already stored, is 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.
404The supplier does not exist in the library.
