Wocart
Wocart API

Wocart API

Complete reference for the Wocart REST API: merchant endpoints under /api, storefront endpoints under /store, plus images and webhooks.

Authentication

Merchant endpoints accept X-API-Key or Authorization: Bearer <JWT>. Public storefront endpoints use X-Store-API-Key. Operations that require a scheme list it.

Read Authentication for keys, scopes and failure modes, and Errors for the error envelope and retry guidance.

Responses

JSON operations wrap their payload as { "success": true, "data": ... }. List endpoints add a count; a few paginated lists use total instead. Image endpoints return binary data and webhook endpoints answer carrier-specific payloads. Each operation's response schema is authoritative.

Security Schemes
ApiKeyAuth
API key for authentication. Get your API key from the Developers section.
apiKey
StoreAuth
Store API key for public storefront endpoints. Different from the dashboard API key.
apiKey
Webhooks
order.created

An order was placed: on the store, in the dashboard, through the API or by an AI agent.

POST
order.updated

An order's customer, destination or notes were edited.

POST
order.confirmed

The customer confirmed the order, usually on the phone.

POST
order.unreachable

The customer could not be reached to confirm the order.

POST
order.preparing

The order is being prepared.

POST
order.ready

The order is packed and ready to hand to delivery.

POST
order.cancelled

The order was cancelled.

POST
order.line_returned

Units of an order line were refused at the door and came back.

POST
order.deleted

The order was deleted; the event carries it as it was.

POST
shipment.handed_off

The order was handed to a carrier or to one of the store's drivers.

POST
shipment.out_for_delivery

The parcel left for the customer.

POST
shipment.delivery_failed

An attempt to deliver the parcel failed.

POST
shipment.delivered

The parcel was delivered and paid for on delivery.

POST
shipment.return_started

The parcel is on its way back to the store.

POST
shipment.returned

The parcel is back with the store.

POST
shipment.cancelled

The shipment was cancelled before it was delivered.

POST
shipment.voided

The handoff was undone: the order is no longer with delivery.

POST