Suppliers. 5 operations.
0 of them work. 5 are in the contract and not built yet. Each needs a bearer token with its scope. All operations.
Operations
POST/api/v1/suppliers/{key}/archivesuppliers.archivesuppliers.writeContract only
This operation is in the contract, and the engine refuses every call of it until it is built.
Parameters
keypath | string |
keypath | string |
Idempotency-Keyheader | stringSee common parameters |
Request body
Answer
Errors: 401, 403, 404, 405, 409, 413, 422, 429
curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/suppliers/{key}/archive
POST/api/v1/suppliers/{key}/deletesuppliers.deletesuppliers.writeContract only
This operation is in the contract, and the engine refuses every call of it until it is built.
Parameters
keypath | string |
keypath | string |
Idempotency-Keyheader | stringSee common parameters |
Answer
Errors: 401, 403, 404, 405, 409, 422, 429
curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/suppliers/{key}/delete
GET/api/v1/suppliers/{key}suppliers.getsuppliers.readContract only
GET/api/v1/supplierssuppliers.listsuppliers.readContract only
This operation is in the contract, and the engine refuses every call of it until it is built.
Parameters
archivedquery | booleanOnly the archived suppliers; the live ones when left out. |
qquery | stringThe words to search the suppliers for: a name, a key, an email. |
limitquery | integerThe most suppliers in the page: 1 to 200; 50 when left out. |
afterquery | stringThe cursor of the page: the next of the page before; the first page when left out. The suppliers follow it. |
Answer
Errors: 401, 403, 405, 422, 429
curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/suppliers
POST/api/v1/supplierssuppliers.savesuppliers.writeContract only
This operation is in the contract, and the engine refuses every call of it until it is built.
Parameters
Idempotency-Keyheader | stringSee common parameters |
Request body
Answer
Errors: 401, 403, 405, 409, 413, 422, 429
curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/suppliers
Schemas 8
ArchiveSupplierRequest
ArchiveSupplierRequest archives a supplier, or brings it back.
archivedrequired | boolean |
Deletion
Deletion is what a delete deleted: the slug of the category, the collection or the content page that is gone, or the name of the image.
deletedrequired | string |
Supplier
Supplier is a business that makes or sends goods for the store. It is not the store's own supplier details on the tax invoice.
archivedrequired | boolean |
contactrequired | string |
emailsrequired | array of string |
keyrequired | string |
namerequired | string |
noterequired | string |
open_ordersrequired | integer |
phonerequired | string |
revisionrequired | integer |
send_byrequired | string |
ships_torequired | string |
SupplierChange
SupplierChange is a line of a supplier's history: who changed what, and when.
atrequired | string (date-time) |
byrequired | string |
by_name | string |
summaryrequired | string |
SupplierDetail
SupplierDetail is a supplier with its history and its supplier orders counted by state (suppliers.get).
historyrequired | array of SupplierChange |
ordersrequired | array of SupplierOrderCount |
supplierrequired | Supplier |
SupplierList
SupplierList is a page of suppliers, with how many the filter holds in all.
countrequired | integer |
nextrequired | string |
suppliersrequired | array of Supplier |
SupplierOrderCount
SupplierOrderCount is how many supplier orders a supplier has in a state.
countrequired | integer |
staterequired | string |
SupplierRequest
SupplierRequest makes a supplier, or changes the one with the same Key, at Revision (0 to make; a stale revision is Refused). It sets every part given here.
contactrequired | string |
emailsrequired | array of string |
keyrequired | string |
namerequired | string |
noterequired | string |
phonerequired | string |
revisionrequired | integer |
send_byrequired | string |
ships_torequired | string |
Made from engine/internal/openapi/openapi.json at commit 6c4cbd921. The contract-only operations come from the engine’s stub file, engine/internal/ops.