PlatformFeaturesPricingVerify Passport
AboutBook a DemoLoginStart Free Trial
PlatformFeaturesPricingVerify PassportAboutBook a DemoLogin
Start Free Trial
NEXPURA

The operating system for modern jewellers.

Product

  • Platform
  • Features
  • Pricing
  • Security

Resources

  • Blog
  • The Problem
  • Help
  • Hardware & Downloads

Company

  • About
  • Contact
  • Book a Guided Demo
  • Start Free Trial

For Customers

  • Verify Passport

Legal

  • Terms
  • Privacy

© 2026 Nexpura. All rights reserved.

Built for jewellers.

Back to Integrations & Data
Docs · Integrations & Data

Data import / export and public API

CSV / JSON export is shipped end to end — every tenant table is exportable through /api/data-export for GDPR portability, backup, and ad-hoc analysis. For programmatic access from your own website or scripts, use the Developer API (/api/v1, API keys, OpenAPI reference) — the app's internal /api/* routes are not a public API.
Some functionality on this page is partial — see the honest disclosure section below for what's shipped today and what's in build.

Quick reference

  • CSV / JSON export — at /settings/security (or via direct call to /api/data-export), an owner / manager can request a full tenant data export. The endpoint walks every tenant-scoped table and returns the rows in JSON for portability under GDPR and similar regulations. Rate-limited to 3 exports per minute (it's a heavy operation).
  • CSV templates for import — see Importing your existing data for the templates, the assisted Migration Hub at /migration, and the field-mapping flow that brings inventory, customers, repairs, and history across from another system.
  • Developer API — the supported way to reach your data from your own website or scripts: /api/v1, authenticated with an API key you create on Website → Connect. See the Developer API. The app's other /api/* routes serve the Nexpura app itself; they need a signed-in session and can change without notice.
  • Audit log on every export — each export-initiate request writes a row to audit_logs with the requesting user, tenant, scope, and timestamp. Useful when ops needs to trace “who pulled this data and when?”
  • Export is owner / manager only — staff roles return 403. Same gate as the rest of the tenant-level admin operations.

Exporting your data

1. Why export

The most common reasons to pull a full data export are standard data-portability ones:

  • Backup — a periodic snapshot of your inventory, customers, sales history, and workshop records, archived outside Nexpura as belt-and-braces insurance.
  • GDPR / privacy compliance — if a customer requests a copy of their data, the export gives you the machine-readable artefact to send back.
  • Ad-hoc analysis — spreadsheet or data-warehouse analysis on the underlying rows for questions the in-product reports don't answer.
  • Migration off Nexpura — if you ever decide to move to a different system, the export is your portable copy of everything that lives in your tenant.

2. Run the export

Go to /settings/security. The Data section carries an Export tenant data action; click it. Nexpura walks every tenant-scoped table (inventory, customers, repairs, bespoke jobs, appointments, sales, invoices, vouchers, memo, audit logs, …) and returns the rows in a JSON envelope.

The export is initiated synchronously — the request fires and the response carries the bundle. For tenants with very large datasets (years of history, tens of thousands of customers and sales), the export can take a few seconds to return; the browser holds the connection during that time. Rate-limiting caps the frequency at three exports per minute — high enough for normal use, low enough to prevent an accidental tight-loop hammering of the endpoint.

3. What's in the bundle

The JSON envelope contains an object per table — keyed by table name — with the row array as the value. Every tenant-scoped table is included; tables outside your tenant (the platform-level integrations table for Twilio, the global feature flags, etc.) are not. Customer PII is included for portability; the export path decrypts the PII columns server-side before including them in the response.

The shape matches the underlying Postgres tables — same column names, same data types, same row counts. There's no schema-translation layer between the database and the bundle, which makes the export useful for backup-and-restore-shaped scenarios. For ingest into a different system, the column names will need mapping; the data is all there.

The /settings/security page showing the Data section with the Export tenant data action. The action surfaces a confirmation modal before firing the request — exports can take time for large tenants.
The /settings/security page showing the Data section with the Export tenant data action. The action surfaces a confirmation modal before firing the request — exports can take time for large tenants.

4. Audit trail

Every export request writes an audit log row capturing the requesting user ID, tenant ID, requested-at timestamp, and the scope (today always full — partial-scope exports aren't differentiated). The audit row is what powers the “who pulled this and when” question for ops or compliance review.

The audit row lands on initiation, not on completion — so a request that times out or errors mid-execution still leaves the audit trail of having been attempted. That's the right shape for compliance (an attempted exfil is interesting even if it failed); for “did the user get their data?” the response status of the request itself is the definitive answer.

Programmatic access

Use the Developer API — catalogue and stock reads, and the online-order lifecycle — with a scoped API key from Website → Connect. Its machine-readable reference is at https://nexpura.com/api/v1/openapi.json.

The app's other /api/* routes are not a public API: they authenticate the signed-in Nexpura user, they are shaped for the app's own screens, and they can change without notice. Don't build against them.

Honest disclosure

Two halves of this page live at different maturity levels.

What's shipped today

The CSV / JSON export side is shipped end to end. The /api/data-export endpoint walks every tenant-scoped table — the actual coverage today is on the order of 89+ tables across the schema — and returns the rows in JSON. Rate-limited, owner / manager-only, audit-logged on every initiation, and exercised by real GDPR data-portability requests in production. The honest framing for the export side is “this works the way you'd expect; there's a settings-screen affordance, an audit trail, and a documented data shape.”

The Developer API is shipped: API keys with scopes and a test mode, catalogue and stock reads, order create / read / cancel / refund-request, and an OpenAPI reference. It has not yet been exercised by a production partner integration.

What's in build

Outbound webhooks from Nexpura to your site (stock changed, order status changed) are not built yet — poll the API for changes in the meantime.

Common questions

How big does a full export tend to be?

Depends entirely on tenant size. A new tenant with a few hundred customers and a couple of months of sales history exports in a few hundred kilobytes. A multi-year tenant with thousands of customers, tens of thousands of inventory and sale rows, and the full audit trail produces tens of megabytes. The export streams as a single JSON response, so your browser handles it like any large download.

For very large tenants where a synchronous request isn't practical, talk to us — we can run the export server-side and deliver the bundle via a signed download URL rather than the live request. The endpoint mechanics are the same; the delivery path is the difference.

Can I export just a subset of tables?

Not through the in-product affordance today — the export is full-tenant scope. The audit log row captures the scope as full explicitly, with the implicit allowance for future partial- scope exports (the scope field would carry something like customers_only or inventory_2026) once that path lands.

For one-off partial-scope needs (a single customer's data for a GDPR request, say, or just the inventory for a stocktake reconciliation), the public API endpoints give you targeted access today — you can call GET /api/customers/:id or query the inventory endpoints with filters, rather than pulling a full dump. Talk to us for the endpoint shapes if the manual approach is load-bearing.

Is the export PII-safe to share?

The export contains all the PII Nexpura stores about your customers — names, emails, phone numbers, addresses, purchase history, communication logs. It's your tenant's data so the export is yours to hold, but it's subject to the same privacy obligations as the data when it's in the live system.

Treat the exported bundle like a database backup — encrypt at rest, share only on a need-to-know basis, dispose of it securely when you're done with the analysis. For GDPR portability responses, the bundle is shared with the requesting customer directly; for compliance review, with the auditor under their data-handling agreement; for backup, into the same place your other production-data backups live.

How do I get a list of every API endpoint?

The supported endpoints are listed in the Developer API and, machine-readably, at /api/v1/openapi.json. Everything else under /api/* is internal to the Nexpura app.

Troubleshooting

Export request returned 403 “Insufficient permissions”

Symptom: the export call returned a 403. Cause:the acting user has a role that's neither owner nor manager nor admin. Tenant data export is restricted by design — the cohort that should be able to pull a full data dump is the small one with full tenant-level admin rights. Fix: have an owner or manager run the export, or have an owner grant the calling user the manager role on /settings/team.

Export request returned 429 “Too many requests”

Symptom: the export call returned a 429 with a Retry-After header. Cause: the endpoint rate limit (3 per minute) was exceeded. Most often: someone retried a slow-running export that was still in flight, or two managers triggered an export within the same minute. Fix:wait the duration in the Retry-After header (typically under a minute) and retry. If you're hitting the limit consistently for legitimate reasons, talk to us and we'll raise the per-tenant cap or move you onto the asynchronous server-side path.

Export timed out before returning

Symptom: the export request hung and eventually timed out browser-side without returning the bundle. Cause:the tenant's dataset is large enough that walking every table and assembling the bundle takes longer than the gateway timeout allows. Fix: contact us. The server-side asynchronous export path handles arbitrarily large datasets by running the work in a background job and delivering the bundle via a signed download URL when it's ready. The synchronous front-door endpoint is the right one for normal-sized tenants; the async path is the escape hatch.

API call returned 401 even though I'm logged in

Symptom: a call to a /api/* endpoint returned 401 Unauthorised; you're definitely signed in to Nexpura in the same browser. Cause:the request didn't carry the session cookie. Most often: a cross-origin call from a different domain (browser blocks the cookie), a script using fetch without credentials: "include", or a third-party tool that needs an explicit Authorization header rather than a cookie. Fix: same-origin calls from within the Nexpura app work out-of-the-box. For programmatic clients, include the Supabase JWT in the request — that's the same path the in-app Supabase JS client uses. Talk to us if you're building something the session-cookie model doesn't accommodate.

I can't find the endpoint I need

Symptom:you're looking for the API path to do X and the integrations docs in this section don't specifically mention it. Cause:the endpoint inventory is undocumented today — the honest disclosure above covers it. The endpoints that the in-product flows use are the same ones you'd be calling, but discoverability is by inspection of those flows or by asking us. Fix: contact us with the operation you're trying to perform. We'll point you at the specific path, the expected request body, and the response shape, with the same accuracy the reference docs will eventually carry.

Related

  • Importing your existing data — the inbound-direction CSV path with templates and the Migration Hub, complementary to this page's outbound focus
  • Integrations & data overview — the broader data-movement model this page sits inside
  • Security & 2FA — the settings surface the export action lives on, with the broader security posture