Shopify connector · Signed webhooks · CSV backfill

Connect Shopify to Net Amount

Sync paid Shopify orders and refunds into Net Amount's committed transaction ledger in real time. Every synced USD order flows directly into live economic nexus monitoring, jurisdiction filing reports, and locked return periods.

1. Create a Shopify connection

Open /dashboard/integrations or call POST /integrations/connections with provider: "shopify" to get your unique webhook URL (https://netamount.com/api/integrations/webhook/{connectionId}). Copy the signing secret from Shopify Settings > Notifications > Webhooks (or your Shopify app's client secret) and save it in Net Amount via webhookSecret on create or PATCH /integrations/connections/{connectionId}.

Use syncMode: "dry_run" while testing webhook deliveries, then switch to "commit" to record orders in your ledger.

curl -X POST https://api.netamount.com/integrations/connections \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "shopify",
    "label": "Shopify US Storefront",
    "syncMode": "commit",
    "webhookSecret": "your_shopify_webhook_signing_secret"
  }'

Connection response (201 Created)

Net Amount stores your signing secret server-side to verify inbound X-Shopify-Hmac-Sha256 headers and displays only the last 4 characters (webhookSecretLast4) in API and dashboard reads.

{
  "connection": {
    "connectionId": "conn_3b4c5d6e7f8a9b0c1d2e3f4a",
    "entityId": null,
    "provider": "shopify",
    "label": "Shopify US Storefront",
    "status": "active",
    "syncMode": "commit",
    "webhookSecretLast4": "cret",
    "ingestPath": "/api/integrations/webhook/conn_3b4c5d6e7f8a9b0c1d2e3f4a",
    "syncedCount": 0,
    "lastSyncedAt": null
  }
}

2. Subscribe Shopify webhooks or sync JSON

In Shopify Settings > Notifications > Webhooks, subscribe your Net Amount URL (https://netamount.com/api/integrations/webhook/{connectionId}) to orders/paid and refunds/create using JSON format, then paste Shopify's signing secret into Net Amount. Net Amount verifies X-Shopify-Hmac-Sha256 in constant time before mapping each order.

To replay or test Shopify order payloads manually (up to 100 events per call), post them to POST /integrations/connections/{connectionId}/sync:

curl -X POST https://api.netamount.com/integrations/connections/conn_3b4c5d6e7f8a9b0c1d2e3f4a/sync \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dryRun": true,
    "events": [
      {
        "id": 5810294412345,
        "name": "#1042",
        "currency": "USD",
        "created_at": "2026-11-29T15:30:00Z",
        "subtotal_price": "100.00",
        "total_tax": "7.50",
        "total_shipping_price_set": { "shop_money": { "amount": "10.00" } },
        "shipping_address": { "province_code": "FL", "country_code": "US" }
      }
    ]
  }'

3. Backfill historical Shopify Orders CSV

Export your Orders CSV from Shopify Admin and upload it in /dashboard/transactions or call POST /transactions/import with preset: "shopify". Run with dryRun: true first to validate up to 200 rows per batch before writing.

curl -X POST https://api.netamount.com/transactions/import \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "format": "csv",
    "preset": "shopify",
    "dryRun": true,
    "csv": "Name,Created at,Currency,Subtotal,Shipping,Taxes,Total,Shipping Province\n#1042,2026-10-15 14:22:00 +0000,USD,100.00,10.00,7.50,117.50,FL"
  }'

Supported Shopify topics and deduplication

Only USD orders and refunds with a valid US shipping or billing state are committed; international or non-USD orders are cleanly skipped.

Shopify topicLedger typeIdempotent external IDMapping behavior
orders/paidsaleshopify:<order_id>Maps USD order subtotal_price, shipping lines, and total_tax using shipping_address or billing_address US state.
refunds/createrefundshopify_refund:<refund_id>Sums refund_line_items and order_adjustments into a negative integer-cent refund entry.

Idempotent deduplication

Every Shopify order and refund maps to a deterministic externalId (shopify:<id> or shopify_refund:<id>) scoped to your workspace or entity. Duplicate webhook deliveries and overlapping CSV imports are skipped cleanly.

Filing-period lock protection

When a connection is scoped to a legal entity and a return period is marked filed, events whose transactionDate lands inside that locked period are reported as filing_period_locked instead of changing submitted return numbers.

Shopify integration questions

How does Net Amount verify Shopify webhooks?
Every webhook delivered to https://netamount.com/api/integrations/webhook/{connectionId} must include a valid X-Shopify-Hmac-Sha256 header. Copy your Shopify webhook signing secret from Shopify Settings > Notifications > Webhooks into Net Amount via webhookSecret (or Update provider secret in the dashboard). Net Amount stores the secret server-side to verify base64 HMAC-SHA256 signatures in constant time and displays only the last 4 characters in API and UI reads.
What happens if Shopify retries an order or refund webhook?
Net Amount assigns deterministic external IDs (shopify:<order_id> for orders and shopify_refund:<refund_id> for refunds). Duplicate webhook deliveries return skipped_duplicate without creating duplicate ledger entries.
How does filing-period lock protection work for Shopify orders?
When a legal entity marks a state filing period as filed, Net Amount locks that date range. Any Shopify order or refund whose transactionDate falls inside a locked period is reported as filing_period_locked and does not alter closed filing snapshots.
How do I backfill historical Shopify orders before enabling webhooks?
Export your Orders CSV from Shopify Admin and upload it in /dashboard/transactions, or send it to POST https://api.netamount.com/transactions/import with format: "csv" and preset: "shopify". Test with dryRun: true first to validate up to 200 rows per request before committing.

Ship exact US sales tax.Without the guesswork.

Create an account to run exact rate lookups, order tax calculations, and economic nexus checks from the dashboard or REST API.