Fulfillment Manager API · printing
Say how a job went: printed
POST /print-jobs/{jobId}/outcome
Say how a job went: printed, or failed with the reason (the printer refused the connection, ran out of labels).
409 PrintJobNotOpen for another agent's job. Only a print agent's device token calls it (POST /api/auth/print-agent/token); a person's session is refused 403 PrintAgentOnly. Appends fulfillment.print-job-printed or fulfillment.print-job-failed. Idempotent by state: a job is answered once, so a retry on one already answered appends nothing and answers it as it stands.
Access
Requires printing:write.
How scopes come from roles: Scopes and roles. Getting a token: Authentication and app tokens.
Retries
Idempotent by state: a job is answered once, so a retry on one already answered appends nothing and answers it as it stands.
Why every write carries a key: Idempotency and retries.
Facts appended
fulfillment.print-job-printedfulfillment.print-job-failed
What a fact is: Facts and the journal.
AI agent tool
No agent tool. only the print agent that sent a job to its printer can say how it went, under its device token
Connecting an agent: AI agents.
Example
curl -X POST 'https://fulfillment.getmanifold.io/print-jobs/pjb_01a15a20-4400-7e55-8f66-6f7a8b9c0d1e/outcome' \
-H "Authorization: Bearer $MANIFOLD_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"_tag": "printed"
}'const response = await fetch("https://fulfillment.getmanifold.io/print-jobs/pjb_01a15a20-4400-7e55-8f66-6f7a8b9c0d1e/outcome", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.MANIFOLD_TOKEN}`, "Content-Type": "application/json" },
body: JSON.stringify({
"_tag": "printed"
}),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const answer = await response.json();{
"_tag": "printed"
}{
"id": "pjb_01a15a20-4400-7e55-8f66-6f7a8b9c0d1e",
"locationId": "loc_01a0f6b0-1100-7e51-8f62-7a8b9cadbec4",
"printerId": "prn_01a15a10-2c00-7a11-8b22-3c4d5e6f7a8b",
"agentId": "pag_01a15a0f-9e00-7c33-8d44-5e6f7a8b9c0d",
"purpose": "sku-label",
"document": {
"_tag": "sku-labels",
"sku": "MUG-SPECKLE",
"copies": 12
},
"content": {
"name": "Speckled mug",
"barcode": "9312345000017"
},
"status": "printed",
"requestedAt": "2026-10-20T02:41:07.330Z",
"updatedAt": "2026-10-20T02:41:09.104Z",
"sentAt": "2026-10-20T02:41:07.912Z",
"finishedAt": "2026-10-20T02:41:09.104Z"
}The panel writes this call in other languages. It does not send it: Manifold's APIs do not take calls from a web
page on another site, so run the call from your own code or terminal. The whole API as OpenAPI: fulfillment-manager.openapi.json. Base URL https://fulfillment.getmanifold.io.
Errors
Every refusal is a status and a JSON body whose _tag names it. A refused call changes nothing.
401
| Refusal | What it means | What to do |
|---|---|---|
Unauthorized reason | The token is missing, expired or not one Manifold issued. | Get a fresh token and send the call again. |
TokenAlreadyUsed tokenId | A single-use app token was already spent. | Mint a new token for this call. |
402
| Refusal | What it means | What to do |
|---|---|---|
SubscriptionRequired status | The organization's subscription has lapsed, so writes are refused. | An owner settles billing. Reads still work meanwhile. |
403
| Refusal | What it means | What to do |
|---|---|---|
PrintAgentOnly reason | This call is a print agent's alone, or a person's alone. reason says which. | Call it with the right credential. |
TenantRequired userId | The token names no organization. | Choose the organization, then get a new token. |
ScopeRequired required | The token's roles do not grant the scope this call needs. | Ask an owner or admin for a role that grants it. |
404
| Refusal | What it means | What to do |
|---|---|---|
PrintJobNotFound jobId | No print job of this organization has that id. | List the site's print jobs. |
409
| Refusal | What it means | What to do |
|---|---|---|
PrintJobNotOpen jobId, status | The job is another agent's, or already answered. | Take and answer only your own open jobs. |
MirroredFromSource source | This area is fed by your source system until the organization goes live. | Make the change in the source system, or go live first. |
503
| Refusal | What it means | What to do |
|---|---|---|
RequestLogUnavailable tokenId, reason | The service could not record the request, so it did nothing. | Send the same request again shortly. |
How refusals work everywhere: Errors.