Invechar

API Keys and Webhooks

Connect your ERP, 3PL, storefront or BI tool. The public API reads your catalog, live stock and orders and writes orders and stock changes through the same engine the app uses. Signed webhooks push changes the moment they happen.

Updated

What it does

The Invechar public API lets your other systems work with your stock and orders safely. Writes go through the same inventory engine as the app, so an order created by the API reserves stock and nothing can oversell. Webhooks send your systems a signed message when an order is created, updated or shipped, stock changes, a PO is received or a product is updated.

When to use it

  • Your 3PL or ERP needs your orders and should send back stock changes.
  • A custom storefront should create orders in Invechar.
  • Your BI tool should read products, stock and orders.

Step by step

Create an API key

  1. Open Integrations, tab Developers (the same panel is in Settings, Developers).
  2. Under API Keys, press Create Key.
  3. Key name: name it after the app that will use it, for example "NetSuite sync".
  4. Permissions: tick only what that app needs.
  5. Press create. Your new API key shows once. Copy it into your app now.
  6. Send it on every request as Authorization: Bearer ss_live_....

Create one key per app, so you can revoke them separately. Revoke stops a key at once.

Add a webhook endpoint

  1. Under Webhook Endpoints, press Add Endpoint.
  2. Enter the Endpoint URL (https), an optional Description, and the Events to send.
  3. Save. Press Reveal signing secret and store it in your app.
  4. Press Send test to check your endpoint answers.

Every setting explained

Permissions (scopes)

PermissionAllows
read:productsList and read products
read:inventoryStock levels and locations
write:inventoryStock adjustments (an Idempotency-Key header is required)
read:ordersList and read orders
write:ordersCreate orders (Idempotency-Key supported)
workspace:readList projects and tasks
workspace:writeCreate and update tasks
mcp:read, mcp:proposeFor AI assistants. See MCP server

Endpoints

Method and pathPermission
GET /api/v1/products, /api/v1/products/:idread:products
GET /api/v1/stock-levels, /api/v1/locationsread:inventory
POST /api/v1/inventory/adjustmentswrite:inventory
GET /api/v1/orders, /api/v1/orders/:idread:orders
POST /api/v1/orderswrite:orders
GET /api/v1/projects, GET /api/v1/tasksworkspace:read
POST /api/v1/tasks, PATCH /api/v1/tasks/:idworkspace:write

Workspace keys act as the team member who created the key: they see and change only the projects and tasks that person can, and private projects stay private. If that person leaves the team, the key stops working.

Every key and webhook endpoint acts as the person who set it up. It can only carry what that person may see or change in Invechar: you can't give a key or an endpoint a permission or event outside your own access, and if an owner later narrows that person's access, the key narrows too. Products, stock, orders and AI assistant permissions need that person to still be an owner or admin. If they are suspended, their keys and endpoints pause until they are reactivated. If they are removed from the team, their keys are revoked and their endpoints paused; turning an endpoint back on makes it yours.

The Base URL and the OpenAPI 3 spec (openapi.json) are shown at the top of the Developers tab, with an API Reference listing parameters and body for each endpoint.

Limits

Each key may make 120 requests a minute (you can set up to 2,000), and all of your organization's keys together up to 3,000 a minute. Responses carry X-RateLimit headers, and Retry-After when you are over. Repeated failed sign ins from one address are limited too.

Webhooks

  • Events: order.created, order.updated, order.shipped, inventory.changed, po.received, product.updated, task.created, task.completed, task.status_changed, form.submitted. Task events come only from projects your whole team can see; private projects never leave Invechar.
  • Signature: every request carries SuiteSeller-Signature: t=<unix time>,v1=<hex HMAC SHA256 of "t.body"> using your signing secret. Verify it, and reject old timestamps. A Node.js example is under Verifying a webhook.
  • Retries: failed deliveries retry after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours, then show as failed.
  • Deliveries: each endpoint lists its deliveries with event, status (Delivered, Retrying, Failed, Cancelled), response code, tries and time. Press Retry on a failed one. Click a delivery to see what was sent; an event about data your own access doesn't include (for example orders, when you have no access to Orders) shows as hidden.
  • Rotate secret issues a new signing secret. Delete endpoint stops deliveries.

FAQ

Can the API oversell? No. Orders reserve stock through the engine, exactly like orders from a channel.

Why is Idempotency-Key required for stock adjustments? So a retried request never adjusts stock twice.

Who can use the Developers tab? Owners and admins.

Troubleshooting

  • 401 Unauthorized: the key is missing, wrong or revoked, or the person who created it was suspended or removed (code key_owner_inactive). The header must start with Bearer.
  • 403: the key lacks the permission for that endpoint.
  • 403 owner_access_narrowed: the person who created the key no longer has access to that data. Ask an owner to widen their access, or create a new key.
  • 429: over the key's limit (120 requests a minute by default) or your organization's 3,000 a minute. Wait for Retry-After seconds.
  • Webhook test failed: your endpoint must answer with a 2xx status within a few seconds. Check the response code in the deliveries list.
  • Signature does not match: verify against the raw request body, not parsed JSON, and use the current secret after a rotation.