novinzodevelopers
API reference

API reference

HTTP schemas for platform requests to plugins and plugin requests to core for plugins.

These references describe both directions of the plugin HTTP interface. They define paths, JSON payloads, success responses, and expected errors.

No private contract package or generated SDK is required. Use a standard Worker handler or a service-binding fetch call.

ReferenceDirectionCaller connection
Plugin contractPlatform to plugin WorkerPrivate plugin dispatch.
Core for pluginsPlugin Worker to platformThe CORE_FOR_PLUGINS service binding.

The example hosts http://cloudflare.local and https://core-for-plugins.internal are placeholder origins, not public internet addresses.

A service binding routes a request to another Worker. Novinzo coordinates these bindings and the registered plugin connection.

Use the RPC reference for backend operations at /rpc.

Plugin contract

Your Worker implements selected webhooks under /webhooks/* and functions under /functions/*. Novinzo registers the subscriptions and capabilities that your plugin supports.

Requests use POST with a JSON body. All calls carry x-novinzo-plugin-invocation, which your handler forwards when it calls the platform.

Functions also carry x-novinzo-store-id from the same invocation. Use that header as the tenant and reject a conflicting payload storeId.

Webhooks carry the same header. Use it as the tenant; only a delivery without it, from an older sender, falls back to the documented storeId field.

Checkout outcome payloads can omit storeId for compatibility with older senders. Follow Webhooks before you perform store-scoped work on those events.

A webhook succeeds with any 2xx response, and the platform discards its body. The webhook guide explains retries and terminal responses.

Functions return the JSON shape and status that their reference defines. The function guide explains their call conditions and tenant rules.

The hosted-payment functions serve plugins that run a store's payment method. See Payments.

QuoteShipping and QuoteTax price the shipping and tax lines that checkout charges for a cart; the function guide describes when Novinzo calls them.

The contract also declares TestWebhook and TestFunction. They are not supported production subscription choices.

Implement the registered endpoints for your plugin, not every operation listed in the reference.

Core for plugins

Your Worker calls these endpoints through env.CORE_FOR_PLUGINS.fetch. The core API guide includes standalone JavaScript requests and response handling.

Every authenticated call requires the current invocation token. The token identifies the plugin and store without binding props or caller-supplied plugin names.

The platform requires a current installation and any permission that the endpoint needs. CompletedByVisitorIds and OrderById require orders:read, the orders List requires orders:list, AddNote requires orders:annotate, CustomerById, CustomerByEmail and SignedInCustomer require customers:read, the customers List requires customers:list, the payment connections List requires payments:read, both email endpoints require emails:send, ListVariants requires products:read, CreateProduct and PublishProduct require products:write, the three sales endpoints require sales:write, and both storefront injection endpoints require storefront:inject.

The viewed-order endpoint requires an order-viewer invocation for the current order. Buyer email access requires customers:email, customers:read, customers:list, orders:read or orders:list.

Credential verification also requires the invocation token. The presented credential must match the plugin and store in that invocation.

Read Core API for authentication failures. The reference schemas alone do not describe every invocation requirement.

How the reference is generated

The reference schemas come from the HTTP contracts that the platform serves. Paths and encoded values follow those contracts.

The guides provide authentication rules, operational behavior, and runnable examples. You do not need access to the internal generator to use the reference.

No playground

These endpoints do not have public internet addresses. A browser playground cannot provide the private connection or a valid platform invocation.

Use the local development guide for standalone handler exercises. Coordinate a staging installation with Novinzo for real platform integration.

On this page