Tillwire Read the guide
API reference

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

keypathstring
keypathstring
Idempotency-KeyheaderstringSee common parameters

Answer

Supplier

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

keypathstring
keypathstring
Idempotency-KeyheaderstringSee common parameters

Answer

Deletion

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

This operation is in the contract, and the engine refuses every call of it until it is built.

Parameters

keypathstring
keypathstring

Errors: 401, 403, 404, 405, 422, 429

curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/suppliers/{key}

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

archivedquerybooleanOnly the archived suppliers; the live ones when left out.
qquerystringThe words to search the suppliers for: a name, a key, an email.
limitqueryintegerThe most suppliers in the page: 1 to 200; 50 when left out.
afterquerystringThe cursor of the page: the next of the page before; the first page when left out. The suppliers follow it.

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-KeyheaderstringSee common parameters

Request body

SupplierRequest

Answer

Supplier

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.

archivedrequiredboolean
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.

deletedrequiredstring
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.

archivedrequiredboolean
contactrequiredstring
emailsrequiredarray of string
keyrequiredstring
namerequiredstring
noterequiredstring
open_ordersrequiredinteger
phonerequiredstring
revisionrequiredinteger
send_byrequiredstring
ships_torequiredstring
SupplierChange

SupplierChange is a line of a supplier's history: who changed what, and when.

atrequiredstring (date-time)
byrequiredstring
by_namestring
summaryrequiredstring
SupplierDetail

SupplierDetail is a supplier with its history and its supplier orders counted by state (suppliers.get).

historyrequiredarray of SupplierChange
ordersrequiredarray of SupplierOrderCount
supplierrequiredSupplier
SupplierList

SupplierList is a page of suppliers, with how many the filter holds in all.

countrequiredinteger
nextrequiredstring
suppliersrequiredarray of Supplier
SupplierOrderCount

SupplierOrderCount is how many supplier orders a supplier has in a state.

countrequiredinteger
staterequiredstring
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.

contactrequiredstring
emailsrequiredarray of string
keyrequiredstring
namerequiredstring
noterequiredstring
phonerequiredstring
revisionrequiredinteger
send_byrequiredstring
ships_torequiredstring

Made from engine/internal/openapi/openapi.json at commit 6c4cbd921. The contract-only operations come from the engine’s stub file, engine/internal/ops.