Open /dashboard/integrations or call POST /integrations/connections with provider: "stripe" to get your unique webhook URL (https://netamount.com/api/integrations/webhook/{connectionId}). Register that URL in Stripe Webhooks, copy Stripe's signing secret (whsec_...), and save it in Net Amount using webhookSecret on create or PATCH /integrations/connections/{connectionId}.
Set syncMode: "dry_run" to verify test-mode or live payloads without writing to your ledger, then switch to "commit" for live production events (test-mode events are automatically skipped on live commit connections).
Net Amount stores your signing secret server-side to verify inbound Stripe-Signature headers and displays only the last 4 characters (webhookSecretLast4) in API and dashboard reads.
In Stripe Developers > Webhooks, add your Net Amount URL (https://netamount.com/api/integrations/webhook/{connectionId}), subscribe to invoice.paid, checkout.session.completed, credit_note.created, and charge.refunded, then copy the resulting whsec_... signing secret into Net Amount. Invoice-backed checkouts deduplicate automatically, each refund ID on charge.refunded is tracked individually, and test-mode events are skipped on live commit connections.
To test or replay Stripe events directly over the REST API (up to 100 events per call), post them to POST /integrations/connections/{connectionId}/sync:
Upload historical Stripe CSV exports in /dashboard/transactions or call POST /transactions/import with preset: "stripe". Run with dryRun: true first to check every row before committing (up to 200 rows per batch).
Only USD events with a valid US shipping or billing state are committed; non-USD or non-US events are cleanly skipped.
Stripe event
Ledger type
Idempotent external ID
Mapping behavior
invoice.paid
sale
stripe:<invoice_id>
Maps USD invoice subtotal, shipping cost, and tax cents using shipping or customer address US state.
checkout.session.completed
sale
stripe:<session_id>
Maps USD Checkout Session amount_subtotal, total_details.amount_shipping, and amount_tax. Invoice-backed checkouts automatically deduplicate against invoice.paid using the invoice ID.
credit_note.created
refund
stripe_refund:<credit_note_id>
Records a negative refund entry in exact integer cents for US credit notes.
charge.refunded
refund
stripe_refund:<refund_id>
Tracks each individual refund ID (re_...) from the charge's refunds list as a separate negative ledger entry so partial and multiple refunds never collide.
Idempotent deduplication
Every Stripe object maps to a deterministic externalId (stripe:<id> or stripe_refund:<id>) scoped to your workspace or entity. Replaying webhooks or overlapping a CSV backfill skips already-committed transactions automatically.
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 altering submitted return numbers.
Stripe integration questions
How does Net Amount verify Stripe webhooks?
Every webhook delivered to https://netamount.com/api/integrations/webhook/{connectionId} must include a valid Stripe-Signature header. Copy Stripe's endpoint signing secret (whsec_...) into Net Amount via webhookSecret (or Update provider secret in the dashboard). Net Amount stores the secret server-side for constant-time HMAC-SHA256 verification over the timestamp and raw request body with a 5-minute (300-second) replay window, and exposes only the last 4 characters in API and dashboard reads.
What happens if Stripe retries a webhook delivery or fires both Checkout and Invoice events?
Net Amount assigns deterministic external IDs (stripe:<id> for sales and stripe_refund:<id> for refunds). Invoice-backed Checkout Sessions automatically deduplicate against invoice.paid, and each refund inside charge.refunded is tracked by its individual refund ID. Duplicate deliveries return skipped_duplicate without double-counting sales or tax. Test-mode events (livemode: false) are skipped on live commit connections; use dry_run mode to validate test events.
How does filing-period lock protection work for Stripe events?
When a legal entity has marked a state return period as filed, Net Amount locks that date range. Any incoming Stripe webhook or manual sync whose transactionDate falls inside a locked period is reported as filing_period_locked and is not written to the closed period, keeping filed return totals intact.
How do I backfill historical Stripe orders before enabling webhooks?
Export your historical transactions from the Stripe Dashboard as CSV and upload the file in /dashboard/transactions, or submit it to POST https://api.netamount.com/transactions/import with format: "csv" and preset: "stripe". Run with dryRun: true first to validate up to 200 rows per batch 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.