External documents in order fulfillment
You can add external documents to the process
entity so that these documents can be selected for printing in the mobile app or they can be used by other clients to upload or change documents during processing.
If you want to view added external documents in one of our clients, please also check the print / document configuration.
Adding an external document
In this example we are going to add a PDF document to the process using the POST /api/processes/<processId>/documents
endpoint. Specifically, we want to add it to the PACKJOB
section because in this example, labels and documents should be displayed and printed during Packing.
Subscribe to
PACK_JOB_CREATED
webhook events as described in the Eventing tutorialRetrieve
processId
fromPACK_JOB_CREATED
event
Add the invoice document to the process:
Currently you can only upload files of type PDF.
Assigning documents to sections
Using the section
field in the request object, you can assign the document to a specific section. This way you can control in which part of the app the document is displayed, e.g. in the Picking, Packing, or Handover section.
Currently, the following sections are supported: PACKJOB, PICKJOB, HANDOVERJOB
Adding placeholder documents
You can add an (empty) placeholder document early in the process, so when a user opens the printing section and the document is not available yet, at least an information is shown in the "External documents" section.
Place an Order
Retrieve
processId
from response
Add empty document placeholder to the process:
Retrieve the document
id
from the response so you can update it in a second step:
Adding placeholder documents is optional but recommended, since it improves the usability of the process for picking staff.
Updating the document
Once the final document is available, you can add it to the process
entity in a similar fashion, but this time you have to use PUT
to modify the document:
Reference
Full specification of the endpoint in our fulfillmenttools API
Last updated