Tillwire Read the guide
API reference

Forms. 12 operations.

12 of them work. Each needs a bearer token with its scope. All operations.

Operations

POST/api/v1/forms/enquiries/{id}/notesforms.add-enquiry-noteforms.write

Parameters

idpathstring
idpathstring
Idempotency-KeyheaderstringSee common parameters

Request body

EnquiryNoteRequest

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

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/enquiries/{id}/notes

GET/api/v1/forms/enquiriesforms.enquiriesforms.read

Parameters

statusquerystringOnly the enquiries of this status: new, answered, closed or spam; every status but spam when left out.
afterqueryintegerThe id of the last enquiry of the page before; the first page when left out.
limitqueryintegerThe most enquiries in the page: 1 to 100; 50 when left out.

Errors: 401, 403, 405, 422, 429

curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/enquiries

GET/api/v1/forms/enquiries/{id}forms.enquiryforms.read

Parameters

idpathstring
idpathstring

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

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

GET/api/v1/forms/enquiries/countsforms.enquiry-countsforms.read

Errors: 401, 403, 405, 422, 429

curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/enquiries/counts

GET/api/v1/forms/formsforms.formsforms.read

Answer

array of FormSummary

Errors: 401, 403, 405, 422, 429

curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/forms

POST/api/v1/forms/submissions/{number}/readforms.mark-submission-readforms.write

Parameters

numberpathstring
numberpathstring
Idempotency-KeyheaderstringSee common parameters

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

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/submissions/{number}/read

POST/api/v1/forms/enquiries/{id}/statusforms.set-enquiry-statusforms.write

Parameters

idpathstring
idpathstring
Idempotency-KeyheaderstringSee common parameters

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

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/enquiries/{id}/status

POST/api/v1/forms/submissions/{number}/noteforms.set-submission-noteforms.write

Parameters

numberpathstring
numberpathstring
Idempotency-KeyheaderstringSee common parameters

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

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/submissions/{number}/note

POST/api/v1/forms/submissions/{number}/statusforms.set-submission-statusforms.write

Parameters

numberpathstring
numberpathstring
Idempotency-KeyheaderstringSee common parameters

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

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/submissions/{number}/status

GET/api/v1/forms/files/{id}forms.submission-fileforms.read

Parameters

idpathstring
idpathstring

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

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

GET/api/v1/forms/submissionsforms.submissionsforms.read

Read a page at a time: give limit (1 to 500; 100 when none is given) and after, the Next-Cursor of the page before. Follow the Link, rel next, to the rest.

Parameters

formquerystringOnly the submissions of this form (its name in store.yaml); every form when left out.
statusquerystringOnly the submissions of this status: new or done; either when left out.
limitqueryintegerThe most submissions in the page: 1 to 500; 100 when the call gives no limit. The Next-Cursor and Link headers name the next page.
afterquerystringSee common parameters

Answer

array of Submission

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

curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/submissions

GET/api/v1/forms/submissions/unread-countforms.unread-countforms.read

Errors: 401, 403, 405, 422, 429

curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/forms/submissions/unread-count

Schemas 19

Enquiry

Enquiry is an enquiry, as the store keeps it.

atrequiredstring (date-time)
emailrequiredstring
erasedrequiredboolean
idrequiredinteger
messagerequiredstring
namerequiredstring
phonerequiredstring
product_namerequiredstring
product_slugrequiredstring
quantityrequiredinteger
skurequiredstring
statusrequiredEnquiryStatus
verdictrequiredstring
EnquiryChange

EnquiryChange is what a change did: Changed is false when the enquiry stood as asked.

changedrequiredboolean
statusrequiredEnquiryStatus
EnquiryCounts

EnquiryCounts are the enquiries by status, and when the oldest new one was made (nil when none is new): the Home attention line.

answeredrequiredinteger
closedrequiredinteger
newrequiredinteger
oldest_newstring (date-time)
spamrequiredinteger
EnquiryDetail

EnquiryDetail is one enquiry with its notes, oldest first.

enquiryrequiredEnquiry
notesrequiredarray of EnquiryNote
EnquiryList

EnquiryList is a page of enquiries and the counts of all of them. Next is the cursor of the page after, 0 for none.

countsrequiredEnquiryCounts
itemsrequiredarray of Enquiry
nextrequiredinteger
EnquiryNote

EnquiryNote is a note the owner added to an enquiry.

atrequiredstring (date-time)
byrequiredstring
idrequiredinteger
textrequiredstring
EnquiryNoteRequest

EnquiryNoteRequest is a note to add: 1 to 2000 characters.

textrequiredstring
EnquiryStatus

EnquiryStatus is where an enquiry stands.

string

EnquiryStatusRequest

EnquiryStatusRequest is the status an enquiry is set to: answered, closed or spam. Setting spam suppresses the sender for further enquiries (ASI-6.8); an enquiry cannot be set back to new.

statusrequiredEnquiryStatus
Field

Field is one field of a submission: its name, its label as store.yaml gives it now, and the value given.

labelrequiredstring
namerequiredstring
valuerequiredstring
FormSummary

FormSummary is a form store.yaml defines, with how many submissions it holds (ASI POS and Mail F5).

donerequiredinteger
empty_textstring
namerequiredstring
newrequiredinteger
titlerequiredstring
ReadChange

ReadChange is what a read mark did: whether it changed the item from unread to read for its actor.

changedrequiredboolean
Submission

Submission is a form submission, as the store keeps it.

atrequiredstring (date-time)
done_atstring (date-time)
done_bystring
fieldsrequiredarray of Field
filesarray of SubmissionFileRef
formrequiredstring
notestring
note_atstring (date-time)
note_bystring
numberrequiredinteger
readrequiredboolean
statusrequiredstring
titlerequiredstring
SubmissionChange

SubmissionChange is what a call that changes a submission answers: whether it changed anything, and the submission as it then stands.

changedrequiredboolean
submissionrequiredSubmission
SubmissionFile

SubmissionFile is a file a submission carries as the engine kept it (F1): what names it, and its bytes, base64 in JSON.

content_typerequiredstring
datarequiredstring
fieldrequiredstring
idrequiredstring
labelrequiredstring
namerequiredstring
sizerequiredinteger
SubmissionFileRef

SubmissionFileRef names a file a submission carries (F1): its id, which is also its address (GetSubmissionFile), the field it came through and that field's label, the name it is shown by (the client's, cleaned of any path and markup), its media type as the engine found it from its first bytes, and its size in bytes.

content_typerequiredstring
fieldrequiredstring
idrequiredstring
labelrequiredstring
namerequiredstring
sizerequiredinteger
SubmissionNoteRequest

SubmissionNoteRequest is the body of the call that sets the staff note of a submission: Note, "" to clear it.

noterequiredstring
SubmissionStatusRequest

SubmissionStatusRequest is the body of the call that marks a submission: Status is new or done.

statusrequiredstring
UnreadCount

UnreadCount is how many items the reader has not marked read.

unreadrequiredinteger

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