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.
Shopify connector · Signed webhooks · CSV backfill
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.
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"
}'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
}
}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" }
}
]
}'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"
}'Only USD orders and refunds with a valid US shipping or billing state are committed; international or non-USD orders are cleanly skipped.
| Shopify topic | Ledger type | Idempotent external ID | Mapping behavior |
|---|---|---|---|
| orders/paid | sale | shopify:<order_id> | Maps USD order subtotal_price, shipping lines, and total_tax using shipping_address or billing_address US state. |
| refunds/create | refund | shopify_refund:<refund_id> | Sums refund_line_items and order_adjustments into a negative integer-cent refund entry. |
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.
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.
Create an account to run exact rate lookups, order tax calculations, and economic nexus checks from the dashboard or REST API.