Skip to content

API changelog

Every change to the Poppelo REST API, webhooks and MCP server that a client can observe, newest first, with what to change.

Changes an API or MCP client can observe, newest first. The OpenAPI document at /docs/json stays the reference for request and response shapes; this page records behaviour changes and what, if anything, you need to change.

Onboarding asks for delivery before the test order

  • The guided steps run inbox, destination, verify. POST /onboarding/guided takes the steps in the order basics, documents, connect-inbox, destination, verify, done, so the test document is read after QuickBooks or Shopify is connected and its catalog is in place. The step names and each step's data are unchanged; send destination before verify.
  • nextStep follows the new order. After connect-inbox it is destination, with or without skippedInbox (a skipped inbox used to answer done, and a connected one verify). After destination with a mode it is verify (it was done), and after verify it is done (it was destination). destination with mode: "policy" still answers destination. If you follow nextStep, nothing else changes.
  • verify with skippedTest no longer moves the saved step to destination. It records the flag and the saved step advances as for any other step.
  • GET /onboarding/status adds deliveryChosen and testFinished. deliveryChosen is true once a delivery choice was saved on destination (for mode: "connect", only once the QuickBooks or Shopify connection is active). testFinished is true once verify was left with skippedTest, true or false. resumeStep uses the new order.
  • Progress saved under the old order resumes without redoing a finished step. A setup saved on verify before its delivery choice resumes on destination, then verify. One that left the test but has no delivery choice resumes on destination and can finish from there (testFinished is true). Nothing stored is rewritten.
  • The finish check accepts the same saved steps as before. done is accepted once the saved step is destination or verify, or connect-inbox with skippedInbox; otherwise it still answers 409 ONBOARDING_STEP_ORDER.
  • The document type is still written only at done. When the answer on documents is supplier invoices alone, finishing still marks every active channel config.documentTypeDefault: "invoice", and no earlier step does.

Re-approved holds are checked again, failed sends and held orders on the attention list

  • A new approval is checked again before it is sent. When an order's destination held it before anything was sent (ECONOMIC_SAFETY_REFUSED or REVISION_REQUIRES_MANUAL) and a person approves it again, the destination is judged against the order as it stands now: it posts, or it is held again with today's reason. It used to be held again with the old reason, even after the cause was fixed. An order held before the cent-rounding fix of 2026-11-21 now posts when it is approved again.
  • Approved orders held at the destination are no longer in the review queue. GET /review (and its pagination.total) leaves out an approved order its destination held on the order's own data; GET /attention lists it under the new held list (with reason, and counts.held, cursor heldBefore). Correct it and approve it again from /review/:envelopeId. GET /metrics counts it as a decided, approved order, with its value, and not in processing.pendingReview.
  • Failed sends are not documents that could not be read. An order that was read and approved and whose send then failed (the destination refused it, or the connection errored) is no longer in GET /attention failed: it is in the new deliveryFailed list (destinationId, destinationName, errorMessage, errorCode, retryable; counts.deliveryFailed, cursor deliveryFailedBefore). Send it again with POST /orders/:orderId/destinations/:destinationId/retry when retryable is true; otherwise reconcile it on the order first. Do not re-read it with POST /orders/:envelopeId/reprocess.
  • approvedAt on approved orders not sent. GET /attention pendingExport and deliveryFailed rows add approvedAt: when the order was last approved, by a person or automatically, or null when no approval is recorded. createdAt is still when the document came in.
  • statusLabel, heldReason and deliveryState on orders. GET /orders rows and GET /orders/:orderId add statusLabel (the words the orders page and the CSV statusLabel column use), heldReason and deliveryState (held, send_failed or null). A held order is labelled held and not sent, and a failed send names the destination that refused it. The status codes are unchanged.
  • No web page in a destination error. When an endpoint answers with HTML (for example a 405 from a static site), the error names the status in words ("Your endpoint answered HTTP 405 (Method Not Allowed)."), in the envelope's errorMessage, the destination's lastError and its technical detail. Rows stored earlier are presented the same way.
  • INVALID_IMAP_HOST details are the validation array. POST /channels and PATCH /channels/:channelId answer 400 INVALID_IMAP_HOST with details as [{ path, message, code }] (body.config.imapPort with invalid_port, or body.config.imapHost with invalid_host) instead of { host }. A port other than 993 or 143 reads "Use port 993 for SSL or 143 for STARTTLS."

Order totals in the review queue and the orders CSV, and approve link acknowledgements

  • Review queue orderValue is the order total. GET /review rows state each line round(quantity × unit price) less its discount, plus the PO's charges (freight, tax, order discounts): the figure GET /orders/:orderId orderTotal, the review page and the exported file state. It was the lines' value when the order was read, without discounts or charges. Null when a line has no price. sortBy=orderValue and the default queue order still sort on the value recorded when the order was read.
  • Orders CSV totalAmount is the order total. GET /orders/export keeps the column's name and place; its value is now the same order total, to the cent (a PO with $580.00 of lines, a $58.00 trade discount and $75.00 freight reads 597.00, not 580.00). The cell is empty when a line has no price or the order has no lines, where it read 0.00. Each line rounds half away from zero on the decimal, so 1 × 132.225 counts as 132.23.
  • GET /approve-links/:token lines are net of their discount. Each line adds discount, and lineTotal is round(quantity × unit price) less that discount, as on the order page, so the lines add up to linesTotal. The summary adds checks: the checks that did not pass, failures first, at most five, each with validatorName, status, message and details. reasons keeps the messages.
  • Approve links take acknowledgements. When POST /approve-links/:token answers 409 APPROVAL_NEEDS_ACKNOWLEDGEMENT, nothing is approved and the link stays usable; resend with the body { "acknowledge": { "unmatchedLines": true, "unknownCustomer": true, "duplicatePo": true } } for the ones details.required names, as on POST /review/:envelopeId/approve. A tap with no body works as before; a body with another property answers 400 VALIDATION_ERROR.
  • POST /reference-data/customers refuses an unknown property with 400 VALIDATION_ERROR and details naming each one ([{ "path": "body.emailDomains", "message": "is not a known property", "code": "additionalProperties" }]), and stores nothing. It used to drop the property and create the customer without it.
  • A hold for a total the destination cannot take names the charges. When a PO's printed total differs from its lines because of charges read off it, and the destination (custom REST or NetSuite) cannot take charges, the economic_completeness message and the hold reason name them, for example "This order has Trade Discount 10% −$58.00 and Freight $75.00, which your own system can't receive as separate charges…". The order is held exactly as before.

One validation error shape, delivery health per connection, and empty DELETE bodies

  • One shape for VALIDATION_ERROR details, on every route. error.details is always an array of { path, message, code }, with the path written as the schema check writes it: the request part, then dots, an index in brackets (body.config.imapHost, body.exportConfig.delivery.email, body.document, querystring.status). Routes that sent { formErrors, fieldErrors }, { field, reason, value } or a JSON pointer such as /document now send the array; a former reason is the entry's code, and other facts stay on the entry (value, receivedType). If you read details.fieldErrors, read details[].path instead.
  • An empty JSON body no longer needs Content-Length: 0. A DELETE, or a POST whose body is optional, sent with Content-Type: application/json and no body is accepted when it has no Content-Length (what Node's fetch and curl -X DELETE send) or an empty chunked body. A route that requires a body still answers 400.
  • Approve refuses a correction to a line the order does not have. POST /review/:envelopeId/approve answers 400 INVALID_CORRECTION_FIELD with details.field when lineItems[<index or id>] names no line of the order (an index past the last line, or another order's line id). Nothing is changed; before, the correction was dropped and the order approved.
  • POST /channels signs in to a mailbox before storing it. A refused sign-in answers 400 CONNECTION_VERIFICATION_FAILED with the server's reason, details.errorKind (authentication_failed, connection or host_rejected) and details.field, and nothing is stored. CHANNEL_EXISTS advises editing the existing channel only when it has settings to edit.
  • Older forwarding-address channels no longer block a mailbox. An email channel from before the forwarding marker existed, with no mail server, is now marked as the forwarding address (config.via: "shared-intake"), so connecting your own mailbox no longer answers 409 CHANNEL_EXISTS. Forwarded mail keeps going to the same channel. Where an account had two such channels, the one forwarded mail was delivered to stays and the other is archived.
  • Delivery health per connection. GET /integrations/status adds instances[].delivery: state (healthy, error, idle, no_activity), reason, sent, couldNotSend (failed, or held for a person at that connection), waiting, lastSentAt, lastProblemAt, lastProblem, lastTest and recent (each with documentType and reference, the PO or invoice number). It counts only what was sent to that connection, and a failed connection test reads as error. POST /connectors/custom_rest/test is now recorded as a connection test.
  • GET /golden-data rows add referenceCustomerId, null when the order was approved without a customer from your list; partner checks read only orders of a listed customer.
  • Revoking a trusted customer clears grantedBy and grantedAt. The activity log keeps who granted it.
  • Public GET /api/v1/health/status: a dead-lettered message degrades the status only while the dead-letter count has grown within the last hour. One stuck message no longer holds the status at degraded; the operator form still reports the count.

Order totals on approve links, exported order files and sub-cent prices

  • GET /approve-links/:token: total is now the order total (lines less their discounts plus the PO's charges, as GET /orders/:orderId orderTotal states it); linesTotal, charges, chargesTotal and orderTotal are added. While the link can still approve, reasons lists the checks that did not pass and each line adds flagged.
  • Unit prices with more than two decimals. A line of 1 × 132.225 is 132.23, as the line total is stored and printed, and an order whose lines and printed total agree to the cent is no longer refused by a custom REST, QuickBooks or Shopify destination for a difference under a cent. A difference of a cent or more is still held.
  • POST /review/:envelopeId/approve: a custom REST or NetSuite destination whose order economics will be held (for example a printed total that includes freight) is returned with willHold: true and the reason, instead of willHold: false followed by a hold after approval.
  • Customer Number in exported order files (CSV and Excel) now falls back to the customer number the PO prints (the account number read off the document) when the order is not matched to one of your customers. A matched customer's number in your system still wins. The column keeps its name and place.
  • Appended Line Discount column at the end of the default exported order file layout: the line's printed discount (the amount Line Total already takes off), two decimals, empty when the PO prints none. Existing columns keep their names and places.
  • One rounding to the cent everywhere: amounts round on the decimal value, half away from zero, as the database does (1 × 132.225 = 132.23, 7 × 2.675 = 18.73). GET /orders/:orderId totals, exported files and the posting checks now agree on such lines.
  • Money cells always carry two decimals: Unit Price, Line Total, Charges Total, Order Total, and in custom layouts the line discount, the printed line amount and the per-type charge totals (45.00, 6.50, -73.20). A unit price printed with more decimals keeps every digit (0.125); nothing is rounded. Excel cells stay numbers, shown with two decimals.
  • Order-level columns repeat on every line row (PO number, customer, addresses, Charges, Charges Total, Order Total), as before. Add up Line Total for an order's value, not Order Total.

One match score everywhere, purchase-order metrics and review queue search

  • One match score, everywhere. GET /review/:envelopeId adds order.matchScore and order.matchScorePercent, the same routed score GET /review, GET /orders and GET /orders/:orderId already return. GET /invoices and GET /invoices/:invoiceId add matchScore and matchScorePercent too, and GET /invoices?sortBy=confidenceScore now sorts on that routed score. The review page, the review queue, the order timeline and every email (needs review, supplier invoice needs review, rejected automatically) now print that number as a whole percent. The GET /metrics confidence bands and averages, GET /metrics/timeseries, /customers, /channels, /export, the threshold recommendation and GET /metrics/threshold-impact read it too, so "under 70%" counts the orders the list shows under 70%. confidenceScore keeps its meaning (the extraction score before validation adjusted it).
  • Orders CSV export: the confidence column keeps its name and place for scripts that read it, but it is the extraction score, not the match score people see. Read matchScorePercent.
  • GET /review takes q in the app and the MCP tool. The review queue's search box sends q (PO number or customer name); the list-review-queue MCP tool accepts q. Each queue row adds shipByKind: ship when the PO printed a ship date, delivery when shipBy is its delivery date because it printed none, null with no date.
  • Value of approved orders is the order total. GET /metrics volume.dollarValueTotal and dollarValue30d, and GET /metrics/trust throughput.dollarValueProcessed and currentPeriod.dollarValueProcessedCents, sum each approved purchase order's total as the exported file states it: the lines less line discounts, plus the charges read off the PO (freight, tax, order discounts). They summed the lines alone. Supplier invoices are still not counted.
  • "This calendar month" counts purchase orders. GET /metrics/trust currentPeriod adds autoApprovedOrders, approvedByPersonOrders, rejectedOrders and manualHandlingOrders, purchase orders only; an undone decision is not counted. straightThroughRatePct is now over purchase orders. billableOrders, billableAutoApproved, billableReviewed, reviewedFree and manualHandlingFree are unchanged: they are what the plan counts.
  • ROI statement (GET /metrics/roi/statement, its CSV and email): volume counts purchase orders only. volume.reviewed is now the orders a person approved (it counted every decision, rejections and supplier invoices included), volume.rejected is added (appended as volumeRejected in the CSV), and volume.total is automatic + approved + rejected + manual. money.estimatedOverageCents is unchanged.
  • GET /orders/:orderId adds exportMethod, exportFormat and exportDeliveredTo, as the list rows have them.
  • Price check messages are in money words, for example "$14.80 is 70% below your price for LTR-REFILL-3 ($48.93)." (a validation result's details.lineResults[].message, and CORRECTION_INVALID details.failures[].message). The figures are unchanged in details.
  • The "Couldn't process" email names the file, the sender and when it arrived, and says what went wrong in the words the Couldn't process page uses.

A complete OpenAPI document, and structured MCP errors

  • Every operation has an operationId and a summary. Code generators get stable method names. Response descriptions say what each status means instead of "Default Response".
  • Shared error responses. Errors are described once, under components/responses and components/schemas/Error, and error.code is an enum of every code the API sends. The common refusals (400, 401, 403, 404, 429 and 5xx) are listed on every operation they apply to.
  • POST /upload documents its multipart body: the file part and the optional documentType field.
  • API key permissions are an enum in the API keys schema, so the scopes a key can hold are listed in the document.
  • The document describes authentication, finding your tenant id, the error envelope, pagination, idempotency, webhook signatures and rate limits in its introduction, with examples for the core flow: submit an order, follow the envelope, approve it.
  • Routes that are not for customers are no longer in the public document: platform-operator routes, the Stripe and Shopify webhook receivers, the mailbox push targets, and the token introspection endpoint the hosted MCP service calls. They were never callable with a tenant API key; nothing a customer could call was removed.
  • MCP tool errors are structured. A refused call returns { code, message, details } as the tool result under the Poppelo name, instead of the raw HTTP text. Branch on code.
  • MCP tool sets. Every tool is still offered by default, so existing clients see no change. To offer an agent only the core set (submit, status, review queue, approve and reject, reference data, and whoami), set ORDERFLOW_MCP_TOOLSETS=core on a local server, or send the X-Poppelo-MCP-Toolsets: core header to an HTTP server.
  • Every MCP tool parameter has a description.

Add one customer, transfer ownership, forward mail and connect a mailbox

  • New: POST /reference-data/customers adds one reference customer by hand, without a file (admin, reference-data:write; MCP tool create-reference-customer). Domains are checked the same way as an import: a malformed or public-mailbox domain is 400. A customer with the same name (ignoring case) or the same customer number as an active one is 409 CONFLICT; a single add never overwrites.
  • New: GET /golden-data/partners lists the customers that have verified orders, as { id, name, verifiedOrders }.
  • New MCP tool transfer-ownership over the existing POST /users/:userId/transfer-ownership. Owner only, so an API key gets 403.
  • A forwarding address and your own mailbox can be active together. Forwarded mail lands on the forwarding channel, and the mailbox is read on its own. A paused forwarding address now holds forwarded mail even when a mailbox is connected. GET /channels shows intakeAddress only on the channel forwarded mail is delivered to.
  • POST /channels with channelType: "email" requires imapHost, imapPort (1 to 65535), imapUser and imapPassword; otherwise 400 VALIDATION_ERROR with details.fieldErrors. via is set by Poppelo: POST /channels refuses it and PATCH keeps the stored value. CHANNEL_EXISTS now reads "You already have an active mailbox. Edit it, or turn it off before adding another."
  • PATCH /tenants/:id/settings refuses email export delivery with a missing, blank or malformed address: 400 VALIDATION_ERROR with details.fieldErrors['exportConfig.delivery.email'].

API contract fixes before launch

  • Autonomy grant needs a person. POST /autonomy/customers/:id/grant (and the grant-customer-autonomy MCP tool) answers 403 AUTONOMY_GRANT_REQUIRES_PERSON to an API key; a signed-in admin, or a connected app acting for one, may grant. Revoke still works with an API key. A partner below the clean-streak bar (eligible: false) is refused with 409 AUTONOMY_NOT_ELIGIBLE (details.cleanStreak, details.required) unless the body sends override: true with a reason of at least 10 characters (422 OVERRIDE_REASON_REQUIRED otherwise); an override grant is audited as autonomy.override_granted and its autonomy.granted webhook carries override: true. grantedBy is the person who granted. The MCP tool takes override and reason.
  • Order approve refuses an unknown correction field. POST /review/:envelopeId/approve answers 400 INVALID_CORRECTION_FIELD (details.field) when a corrections[].field is not a header field (customerName, poNumber, specialInstructions, deliveryDate, orderDate, requestedShipDate, shippingMethod, customerAccountNumber, shipToCode), shippingAddress.<line1|line2|city|state|zip|country> or lineItems[<line id or zero-based index>].<sku|description|quantity|unitPrice|uom|discount>. Nothing is changed, the other corrections in the request included; before, the field was dropped and the order approved and exported.
  • POST /orders refuses an unknown top-level property with 400 VALIDATION_ERROR (details[].path such as body.idempotency_key). Before, it was ignored, so a misspelt idempotencyKey lost its idempotency.
  • Status filters are validated. GET /orders?status= (comma-separated) and GET /invoices?status= answer 400 VALIDATION_ERROR for a value that is not an envelope status; before, they answered an empty page. GET /orders?status=failed lists orders that were read, so a document that failed before an order was extracted is not in it; follow such a document with GET /envelopes/{envelopeId}.
  • Only the current plans can be bought. POST /provision/signup, POST /provision/signup/session, POST /billing/checkout and POST /billing/change-plan accept only starter-2026, core-2026, growth-2026, scale-2026; the retired core, growth and scale are 400. Existing subscriptions on a retired plan are unchanged.
  • Webhook payloads. actorType is api_key when an API key made the decision (it said user); a person or a connected app acting for one is user. Invoice events add invoiceNumber, vendorName and totalAmount; on invoice events poNumber, customerName and orderValue still carry those values for one more release and are deprecated there. envelope.exported no longer carries storagePath.
  • Public GET /api/v1/health/status now answers only { status, timestamp, components: [{ key, label, status }] } with the components order-processing and deliveries (ok, degraded, outage). status keeps its roll-up (ok, degraded, unavailable; 503 when unavailable), so a keyword check on "status":"ok" alerts on the same conditions as before.
  • New: GET /api/v1/me and the whoami MCP tool: the caller's tenantId, principalType (api_key, user, oauth_app), and apiKey (id, name, permissions), user (id, live role) or connectedApp (client id, name, scopes). Any valid credential; no scope needed.
  • API keys. The create response's details adds tenantId, permissions (what was granted, the integration default when none were sent) and expiresAt. An expiresAt in the past is 400 VALIDATION_ERROR. A revoked key answers 401 API_KEY_REVOKED (a wrong or unknown key is still 401 UNAUTHORIZED). Settings › API keys shows a Permissions column.
  • Intake 202s add statusUrl (/api/v1/tenants/{tenantId}/envelopes/{envelopeId}): POST /orders, POST /invoices, POST /upload and POST /upload/:envelopeId/reprocess, replays included. GET /orders/{id} and GET /invoices/{id} with an envelope id answer 404 NOT_FOUND whose message says it is an envelope id, with details.envelopeId, details.statusUrl and, once read, details.orderId / details.invoiceId.
  • Signup. POST /provision/signup sends no email itself (the web page asks for the sign-in link). Its message now says so, and the 201 adds next: { action: "sign_in", signInUrl, message }. Creating an intake channel without a plan is still 402 SUBSCRIPTION_REQUIRED, now worded "Start a trial or subscription before adding inboxes."
  • Error envelope. VALIDATION_ERROR.details is the documented [{ path, message, code }]; path reads like body.corrections[0].field, and message names the first offending field. correlationId is always the request id and is on every error body. A wrong content type is 415 UNSUPPORTED_MEDIA_TYPE and an oversize body 413 PAYLOAD_TOO_LARGE; a malformed URL is 400 BAD_REQUEST in the same envelope.
  • Empty bodies. A DELETE, or a POST whose body is optional (autonomy grant and revoke, webhook test and the like), accepts Content-Type: application/json with an empty body, and a missing body, as {}.
  • Webhooks on a development server. On a local development API only, a webhook subscription may point at a loopback or private host on any port. URL refusals are worded for the feature that checks them. A webhook.test delivery that fails is recorded and returned, never retried and not counted toward the subscription's failure streak.
  • Order timeline. An approval by API key reads "Approved via API key <name>"; "Validation complete" is listed before the routing step it led to.

Order totals, PO search and one match score

  • GET /orders and GET /orders/export take poNumber (PO number only) and q (PO number or customer name). Both are case-insensitive and match any part of the value; % and _ are matched literally. GET /review takes the same two parameters. The old customer parameter still works.
  • GET /orders/:orderId adds totals: orderValue, linesTotal, charges[], chargesTotal, orderTotal, statedTotal (the total printed on the PO) and customerNumber, and each line adds discount and lineTotal. orderTotal is null when a line has no price; it is never estimated.
  • One match score. GET /orders, GET /orders/:orderId and GET /review add matchScore (4 decimal places) and matchScorePercent (a whole percent, cut down, never rounded up: 0.949 is 94). It is the score routing decided on. confidenceScore keeps its meaning. GET /envelopes/:envelopeId rounds decision.adjustedScore to 4 decimal places.
  • GET /orders rows and the dashboard recent activity add exportFormat, exportDeliveredTo (for an emailed export) and destinations.
  • The order timeline adds actorName: the name (or email) of the person who acted, only for a user of your account.
  • Orders CSV export (GET /orders/export): the first seven columns keep their names and places. orderDate is now the PO date as YYYY-MM-DD, falling back to the day it was received, and totalAmount is to the cent. New columns are appended after the existing ones: poNumber, statusLabel, orderDateSource (po or received) and matchScorePercent. status keeps the status code.
  • Exported order files (CSV and Excel default layout): Ship By now holds the requested ship date. Appended columns: Charges, Charges Total, Order Total, Delivery Date, Customer Number, and the ship-to and bill-to address. Your own custom layouts are unchanged.
  • GET /metrics: accuracy.approvedUnchangedRate, approvedUnchangedOrders, correctedOrders and rejectedOrders are added, and the four rates add up to 1. Received counts leave out documents that could not be read, which are reported as volume.failedDocuments.

Claiming an order that already left review: NOT_REVIEWABLE

  • POST /review/:envelopeId/claim on an order that is no longer in review answers 409 NOT_REVIEWABLE, with error.details.status (for example approved). Do not retry it: the order was already decided. A live lock held by someone else stays 409 CONFLICT. Before this change both were CONFLICT, so a client that treated every 409 as a lock should now handle NOT_REVIEWABLE too.
  • POST /onboarding/guided with step: "verify" accepts data.skippedTest (boolean) to record that the test step was skipped.

Review lock refusals name who holds the order

  • POST /review/:envelopeId/claim answers 409 CONFLICT with error.details { lockedBy, lockedByName, lockedSince, lockedUntil } when another reviewer holds the order. lockedByName is the holder’s name or email (null when it cannot be read), and lockedUntil is when the lock frees on its own. All times are ISO 8601. Every field is null when there is no live lock.

ISO 8601 timestamps everywhere

  • Every JSON response sends timestamps as ISO 8601 (RFC 3339), for example 2026-11-19T05:15:27.169797Z. Some fields used to arrive as database text such as 2026-11-19 05:15:27.169797+00. The instant is unchanged and the fraction digits are kept, so a timestamp you send back as a cursor selects the same rows. Date-only fields stay YYYY-MM-DD.
  • The webhook.disabled payload (firstFailureAt, disabledAt) and the orders CSV export (orderDate, createdAt) use the same format.
  • The order and invoice detail responses declare format: date-time on their timestamp fields in the OpenAPI document.

MCP: connected apps and scoped tool sets

  • MCP tools list-connected-apps and revoke-connected-app, over GET /oauth/grants (all, includeRevoked) and DELETE /oauth/grants/:grantId. An API key needs api-keys:read or api-keys:write. Revoking an already revoked grant succeeds; another account’s grant id is 404 OAUTH_GRANT_NOT_FOUND.
  • Scoped tool sets (X-OrderFlow-MCP-Scopes): eight reads that a connected app may not make are no longer in the orderflow:read set: get-partner-check, get-onboarding-status, get-order-acknowledgement-settings, get-queue-health, get-integration-status, get-netsuite-connector, get-custom-rest-connector, get-quickbooks-posting-options. They stay available to an unscoped API-key connection.
  • Signing in to a hosted MCP endpoint with your Poppelo account is not available yet. Contact support for MCP access.

Microsoft 365 admin approval and consent errors

  • POST /channels/microsoft365/admin-consent (admin, channels:write) and the get-microsoft365-admin-consent-link MCP tool. Body { returnTo?, directory? }; directory is the organization’s Microsoft tenant id or a domain, default organizations. A browser session gets { adminConsentUrl, directory, scopes }; an API key gets { connectUrl, expiresAt, requiresSignedInAdmin: true, directory, scopes }, a one-time link a signed-in owner or admin opens. It connects nothing: connect the mailbox afterwards as usual. Errors: 400 VALIDATION_ERROR, 503 PROVIDER_NOT_CONFIGURED.
  • Microsoft 365 connect scopes add https://graph.microsoft.com/User.Read, used only to read the mailbox’s own address. An existing connection keeps working; reconnect it once to pick the scope up.
  • Microsoft refusals redirect with connect_error=admin_approval_required, app_not_in_directory, wrong_account or consent_cancelled instead of denied. The matching error codes are MICROSOFT_ADMIN_APPROVAL_REQUIRED, MICROSOFT_APP_NOT_IN_DIRECTORY, MICROSOFT_ACCOUNT_NOT_SUPPORTED and OAUTH_CONSENT_CANCELLED, or OAUTH_DENIED.

Home’s figures in GET /metrics

  • GET /metrics adds volume.sent30d (purchase orders sent on in the last 30 days), volume.linesRead30d, accuracy.autoApprovedOrders, processing.medianEndToEndMs and recentActivity (the 5 most recent purchase orders, each with envelopeId, orderId, poNumber, customerName, status, state, destinations and receivedAt). Supplier invoices are never counted. GET /dashboard carries them too.
  • GET /metrics/timeseries: each day adds sent; a day with something sent and nothing received appears with orders: 0.

Download an exported invoice’s file

  • GET /invoices/:invoiceId/export-file and the get-invoice-export-file MCP tool: a 15-minute signed URL for the CSV file an invoice was exported to, with filename, format, deliveredVia and exportedAt. 404 NOT_FOUND when the invoice has not been exported as a file.
  • GET /invoices/:invoiceId adds exportFile ({ filename, format, deliveredVia, exportedAt }, or null).
  • Intake metadata on POST /orders, /orders/bulk, /orders/manual and /invoices: a top-level export key is reserved and dropped from what is stored. The request is not refused.

Move a "Handle myself" order back to review

  • POST /review/:envelopeId/return-to-review and the return-to-review MCP tool. Body { reason?: string }. Moves an order a person put in manual_handling from review back to in_review, when nothing was ever sent to a destination. Refusals are 409 NOT_IN_MANUAL_HANDLING, NOT_AN_ORDER, MANUAL_HANDLING_SYSTEM_HOLD or DESTINATION_ALREADY_ATTEMPTED, and 409 CONFLICT while the order is busy. Operator role, review:write.
  • On success the order is checked again and envelope.in_review fires with previousStatus: "manual_handling" and reason: "returned_to_review".
  • GET /orders/:orderId adds returnToReview ({ eligible, refusalCode, destinationNames }) for an order in manual_handling.

Re-check an order in review against the current catalog

  • POST /review/:envelopeId/rematch and the rematch-review-order MCP tool. Re-runs part matching on unmatched or uncertain lines, and customer matching when the customer is unresolved, then checks the order again. A line or customer a person decided is never changed. It never approves or routes. Refusals: 409 INVALID_STATE, NOT_AN_ORDER, LOCKED; 404 NOT_FOUND.
  • GET /review/:envelopeId adds referenceData.changedSinceExtraction.

Edit a customer’s sender domains and aliases

  • PATCH /reference-data/customers/:customerId and the update-reference-customer MCP tool. Body { senderDomains?: string[], aliases?: string[] }; each list given replaces the stored one. Domains are reduced to the bare host and lower-cased; a value that is not a domain, or a public mailbox provider such as gmail.com, is 400 VALIDATION_ERROR with details: { field, reason, value }. Needs an admin session or reference-data:write.

Approval refuses an order whose own data cannot post

  • POST /review/:envelopeId/approve answers 409 POSTING_BLOCKED when the order’s own data cannot post to a QuickBooks or Shopify destination it is about to be sent to, for example a printed line total that is not quantity × price less discount. Nothing is approved. error.details.blockers[] says which destination and line. Correcting the line in the same approve clears it.
  • The approve response adds postingCheck: passed, unavailable or not_applicable.

The trial report

  • GET /metrics/trial-report and the get-trial-report MCP tool: timeSavedOnReviewed, errorsCaught, goLive (progress toward automatic approval) and lines, the same content as sentences.

Pilot accuracy and measured review time

  • GET /metrics/pilot adds anomalyImpact: how many orders would have been approved automatically with and without the per-customer anomaly rules. Routing is unchanged.
  • Review time is measured from the first claim to the decision. An approval by API key, without opening the order, or after more than 30 minutes is recorded as unmeasured, not 0.
  • POST /onboarding/guided with step: "basics" requires data.minutesPerOrder (0 to 120) and data.laborRatePerHour (0 to 1000) unless your account already set them; otherwise 400 VALIDATION_ERROR.
  • No default baseline in time saved: GET /metrics/trust and GET /summary report time saved as null until your account sets its baseline.

Processed-order billing and the 2026 plans

  • Plans say what they bill in billingUnit: processed (every purchase order approved) or auto_approved (only orders approved without a person, on retired plans). Rejected orders, manual handling and supplier invoices are free on both.
  • Plan slugs are starter-2026, core-2026, growth-2026 and scale-2026. A request naming a retired slug (core, growth, scale) gets the plan that replaced it.
  • GET /billing, GET /billing/plans and GET /public/plans add billingUnit and includedOrders; GET /billing/usage adds billable-order counts. Old fields are kept.

Validation error detail wording

  • Unchanged: the status (400), error.code (VALIDATION_ERROR), the response shape and every error code.
  • Changed: the text inside error.details[]. For example invalid_string is now invalid_format. Branch on error.code, never on details[] text.
  • Stricter input: uuid fields require a valid version and variant, integers must be safe integers, numbers refuse Infinity, and date-times need seconds.

Webhook headers carry the Poppelo name

  • Every delivery is signed with X-Poppelo-Signature (hex HMAC-SHA256 of {timestamp}.{raw body} with your subscription secret) and carries X-Poppelo-Timestamp (Unix seconds), X-Poppelo-Event and X-Poppelo-Delivery-Id (stable across retries: dedupe on it).
  • Deprecated: X-OrderFlow-Signature, X-OrderFlow-Timestamp, X-OrderFlow-Event and X-OrderFlow-Delivery-Id are still sent alongside with the same values for one more release, then no longer sent. Switch your verifier to the X-Poppelo-* names.
  • Human decisions fire webhooks: envelope.approved, envelope.rejected and envelope.manual_handling, with every envelope event built from one payload shape.

Back to the developers page