File Delivery
Once the print file has been generated by FastEditor, we need to share the file location of the print-ready files. You therefore need to implement a handle that can receive this request from FastEditor.
Endpoint(s)
your_endpoint The URL for this endpoint should be submitted as the callbackUrl parameter in the Sale Notification request. The File Delivery request will then be sent to that URL.
Authorization
Authorization for your File Delivery endpoint is optional but recommended. If you choose to require authorization, you must share the X-Api-Key header value with FastEditor so we can include it when sending the file delivery payload to your endpoint.
This key must be different from the API key you use to send requests to FastEditor's systems. Use a separate key for requests from FastEditor to your File Delivery endpoint.
Request
This request body is a JSON object with the following parameters:
| Name | Required | Description | Type |
|---|---|---|---|
| projectKey | Yes | Unique Identifier for the finished project as received in the request in Sale Notification. | Integer |
| userId | No | Your internal user identifier, matching the userId you supplied to the Create SmartLink endpoint. Included only when you supplied a value to SmartLink and that value can be found; otherwise, this field is omitted. | String |
| files | Yes | Array with the download URLs of the files required for printing. This could be a single PDF file for a photobook, or an array of images for a set of prints. | Array |
| output | Yes | Array of objects. Each object represents a single page or section of the project. | Array<Object> |
| uploads | No | Array of URLs to the original uploads made by the user. This is only shared for logo products so that this can be used to check vectorization results. | Array |
Output
The output parameter in the request body will hold an array of objects. Each object represents a single page or section of the project and will have the following parameters:
| Name | Required | Description | Type |
|---|---|---|---|
| name | Yes | A string identifying the page or section (e.g. front, back, bookCover, innerPages). | String |
| printFiles | Yes | Array of URLs pointing to the generated print files. | Array<string> |
| proofUrls | No | Array of URLs pointing to print proof files. Only provided for logo products. | Array<string> |
| printMethod | Yes | The print method used for this page or section. | String |
Sample Callback Payload
This is the exact JSON body FastEditor POSTs to the callbackUrl you supplied in the Sale Notification request. Parse it on your server to retrieve the print-ready files. The examples below assume you supplied userId when creating the SmartLink. If no value is available, this field is omitted from the callback.
{
"projectKey": 492393,
"userId": "user_123",
"files": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/123_456_FSF2nXZRmNrqSwQAAila/10111132/v1755077001/combined-file.pdf"
],
"output": [
{
"name": "front",
"printFiles": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/123_456_FSF2nXZRmNrqSwQAAila/10111132/v1755077001/0.pdf"
],
"proofUrls": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/123_456_FSF2nXZRmNrqSwQAAila/10111132/v1755077001/proof_0.pdf"
],
"printMethod": "Digital printing"
},
{
"name": "back",
"printFiles": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/124_457_FSF2nXZRmNrqSwQAAila/10111132/1.pdf"
],
"proofUrls": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/124_457_FSF2nXZRmNrqSwQAAila/10111132/proof_1.pdf"
],
"printMethod": "Digital printing"
}
],
"uploads": [
"https://useruploads.com/logo.eps"
]
}Key fields to parse
projectKeyThe Project Key as shared by FastEditor in the add-to-cart API call. Match it to the order item you sent in the Sale Notification to know which project these files belong to.userIdOptional: your user identifier supplied to SmartLink. Omitted if you did not supply a value or it cannot be found.filesThe ready-to-print file(s) — a single combined PDF here. Download and forward these to your print workflow.output[].nameIdentifies the page or section (e.g. front, back) so you can map each set of print files to the right position.output[].printFilesThe generated print file URL(s) for that specific section.output[].proofUrlsOptional proof file URL(s); only present for logo products.output[].printMethodThe print method used for that section (e.g. Digital printing).uploadsOptional original user uploads; only present for logo products, useful for checking vectorization results.
Example Request
Below is an example request to your File Delivery endpoint with the optional authorization header:
curl -X POST "https://yourapidomain.com/your_endpoint" \
-H "X-Api-Key: YOUR_FILE_DELIVERY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"projectKey": 492393,
"userId": "user_123",
"files": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/123_456_FSF2nXZRmNrqSwQAAila/10111132/v1755077001/combined-file.pdf"
],
"output": [
{
"name": "front",
"printFiles": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/123_456_FSF2nXZRmNrqSwQAAila/10111132/v1755077001/0.pdf"
],
"proofUrls": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/123_456_FSF2nXZRmNrqSwQAAila/10111132/v1755077001/proof_0.pdf"
],
"printMethod": "Digital printing"
},
{
"name": "back",
"printFiles": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/124_457_FSF2nXZRmNrqSwQAAila/10111132/1.pdf"
],
"proofUrls": [
"https://order-fulfillment-staging-documents-fasteditor.s3.amazonaws.com/25/124_457_FSF2nXZRmNrqSwQAAila/10111132/proof_1.pdf"
],
"printMethod": "Digital printing"
}
],
"uploads": [
"https://useruploads.com/logo.eps"
]
}'Response
We will check for a successful 201 response status code to this request so we know the data was received and saved correctly.