Automation and API
Two ways to connect the print queue to the rest of your workflow: a webhook that calls you, and a REST API you call.
Outgoing webhook
Under Settings, Automation, enable the webhook, give it a URL and a secret, and tick the events you want: paid (ready to print), printing, done, cancelled. Each status change sends a JSON POST:
Content-Type: application/json
X-FC3D-Event: print_job.paid
X-FC3D-Delivery: <uuid>
X-FC3D-Signature: sha256=<HMAC-SHA256 of the raw body, keyed with the secret>
Verify the signature before trusting the body. The last twenty deliveries and their responses are listed under Settings, Automation, with a button to send a test.
The body is the job payload: its id and number, status and previous status, product, filament, size, dimensions in millimetres at the ordered size, options and typed text, quantity, notes, the order with its customer and shipping address, and the files. files.print is the model exactly as ordered and the one to slice; files.stl and files.glb are the catalogue files. Prices are integers in the smallest currency unit.
Print queue API
Authenticate with a WordPress application password (Users, your profile, Application Passwords) as a user who can manage the store. Base: /wp-json/fc3d/v1/.
| Endpoint | What it does |
|---|---|
GET /jobs | List jobs. Filters: status, order_id, page, per_page (max 200). Newest first. |
GET /jobs/<id> | One job, the same payload as the webhook |
POST /jobs/<id> | Update status and/or notes. Status only moves forward (paid, printing, done); cancelled is final. |
Statuses: draft, in_cart, ordered, paid, printing, done, cancelled.
The storefront uses three public, rate-limited endpoints of its own (/quote, /jobs POST, /uploads); they need no key and are not meant for automation.
Hooks for developers
| Hook | What it does |
|---|---|
fc3d/job_status_changed (action) | After a status change: the job, the old and the new status |
fc3d/job_payload (filter) | Change the payload sent to the webhook and the API |
fc3d/job_weight_g (filter) | Correct the weight of one unit, in grams |
fc3d/integrations (filter) | Force a builder integration on or off |
fc3d/reviews_where (filter) | Narrow which reviews count towards a rating |
The Reference tab in the plugin lists the same with copyable snippets.