Go-Live Checklist
Prove your NRS Invoice Gateway integration in test state, test how it handles failures, and move to live with Duplo.
Use test state to prove your whole integration, including how it handles failures, then move to live as a separate, planned step with Duplo. Signing one invoice successfully in test isn't enough on its own. You also need represented-business mappings in durable storage, recovery from billing failures, handling for every transmission outcome, and security controls.
This checklist follows that order: prove your integration in test, test how it handles failures, move to live, then monitor it after launch.
Prove your integration in test
Work through each group in test state.
Account and credentials
These checks confirm that your business can pay signing fees, and that only your servers, using the right API key, can call your Gateway domain.
Represented businesses
These checks confirm that every business you sign invoices for is onboarded in the current state, and that you store its IDs correctly.
cryptoVersion: 0 is a valid production state. It means no QR material is stored, so Duplo skips QR generation. Validation, signing, and transmission still work.
Invoice data
These checks confirm that the invoices you build pass NRS validation, including credit notes, debit notes, and edge cases in totals and taxes.
Validate a set of representative invoices before your first sign test:
- The smallest and largest invoices you expect, with multiple lines and tax subtotals.
- A commercial invoice plus every note type your product supports.
- A recipient that recipient lookup reports as online, and one it reports as offline.
- An invalid TIN, an outdated resource code, a bad total, a duplicate IRN, and a malformed body.
- Unexpected NRS responses, simulated in your own tests: new fields, changed types, malformed success JSON,
202,204,401,403,429, a redirect, a timeout, and an oversized body. - A payload near your size limit. The Gateway's default limit is 10 MiB.
Your mode
Your deployment should record the approved mode and its version. When a request returns 409 GW_DOMAIN_APPROVAL_STATE_CHANGED or 409 GW_OPERATION_MODE_CONFLICT, alert instead of retrying. Then check the list for your mode.
Pass-through
In Pass-through mode, Duplo doesn't keep a copy of your invoices, so these checks cover the records and retries your system owns.
Stored
In Stored mode, Duplo keeps the invoice and signs it in the background, so these checks cover submitting once, polling until it's signed, and then transmitting it.
Webhooks
These checks confirm that your webhook URL receives inbound invoice events reliably and handles duplicates safely. Skip this group if you aren't launching with inbound receipt. Duplo must confirm that inbound receipt is enabled for each state, test and live, so read the webhooks guide before you include it.
Security
These checks confirm that secrets and personal data stay out of requests, logs, and support messages, and that your team can respond if something leaks.
Test failure handling
Prove these behaviors in test state:
| Scenario | Expected system behavior |
|---|---|
| Insufficient wallet balance | NRS is not called. Your system keeps the invoice so it can be signed once the wallet is funded, and alerts your team with 402 GW_BILLING_WALLET_DECLINED |
| Invalid NRS document | Your system records the rejection and doesn't resend the same document |
| Pass-through success | One charge and one stored sign result are linked to the IRN, idempotency key, and request ID |
| Duplicate Pass-through attempt | 409 starts recovery of the original response; no new key is generated |
GW_SIGN_OUTCOME_UNCONFIRMED | Your system stops retrying that IRN and starts reconciling it, keeping the requestId |
| Stored intake response lost | The exact request is resent with the same key and resolves to one invoice |
| Stored invoice stays pending | The poller backs off, stops at its own deadline, and alerts without resubmitting |
| Transmission timeout | The system reads the current state and retries delivery only; it never signs again |
| Rate limit | The caller backs off with jitter, caps concurrency, and honors Retry-After when present |
GW_REQUEST_BODY_TIMEOUT | The caller sends the complete body promptly and keeps the same idempotency key |
GW_GATEWAY_CAPACITY_EXCEEDED | The caller honors Retry-After and doesn't retry through another hostname or API key |
Finance and engineering should also be able to trace any sign in a chosen period through each of these records:
- Your sign command.
- The Gateway request ID, idempotency key, and IRN.
- The NRS result or, if the result was unconfirmed, how you reconciled it.
- The signing fee charge, or its reversal, in Duplo.
Move to live
You move to live together with Duplo. It isn't a switch in the dashboard:
- Stop sending test invoices, and reconcile every sign, Stored invoice, and transmission that hasn't finished.
- Ask Duplo to pause new requests to your domain (they return
409 GW_DOMAIN_DRAINING), then change your business's state to live in Duplo Dashboard. Your test API key, test represented-business mappings, and test domain approval then stop working. - Sign in again, confirm that Duplo Dashboard shows
live, and generate a live API key. - Configure the live webhook and caller IPs on that key. If you rely on IP restriction, confirm that Duplo has enabled enforcement in live.
- Wait until the domain status is
approvedin live with the expected mode and version. - Onboard each represented business in live and save the new mappings.
- Run the connection check, NRS resource reads, a recipient lookup, and a validation before you sign your first live invoice, which is billed. These checks don't prove that the wallet is funded or that a mapping is correct.
- Sign one real invoice, keep its request and response records, transmit it, and reconcile its signing fee.
- Increase volume gradually while you watch billing, NRS latency and errors, how long Stored invoices stay pending if you use Stored mode, and webhook delivery.
Don't work around domain approval
A state or mode mismatch returns 409 by design. Don't change the hostname,
send your own state or mode values, reuse a revoked key, or call NRS directly to work
around it. Finish the steps above, and finish reconciling any open signs or
transmissions.
After launch
Once you're live, watch for the errors and events below. Agree on who handles each one before you launch.
| What you see | Who responds | What to do first | What to send Duplo |
|---|---|---|---|
Spike in 401 responses | Security/integration | Check that the current API key is deployed and active; stop any automated key rotation that keeps repeating | Host, state, timestamps, key prefix/last four only |
409 state or mode conflict | Integration owner | Stop sending invoices and ask Duplo to confirm your domain's state and mode | Domain status, mode, request ID |
GW_BILLING_WALLET_DECLINED | Finance + operations | Stop sending invoices for signing; check the wallet balance and that the business is active | Request ID, IRN, represented-business ID, UTC time, sanitized error |
GW_SIGN_OUTCOME_UNCONFIRMED | Reconciliation team | Stop retrying the IRN and keep its request and response records; don't sign again | Request ID, operation ID when present, idempotency key, NRS lookup |
GW_TRANSMIT_ATTEMPT_ALREADY_PROCESSED | Reconciliation team | Use the returned operation ID to check the original transmission; don't transmit again | Request ID, operation ID, IRN, idempotency key |
GW_TRANSMIT_OUTCOME_UNCONFIRMED | Reconciliation team | Stop transmitting that IRN and reconcile it; don't resend | Request ID, operation ID, IRN, idempotency key, NRS lookup |
| Stored pending beyond your polling deadline | Operations | Keep polling within your deadline and investigate | Invoice ID, IRN, represented-business ID, timestamps |
| Webhook outage | Application owner | Get your webhook URL returning 2xx again, then list and read invoices to catch up | Delivery and invoice IDs, outage window |
| NRS resource rejection | Tax/integration | Fetch the current NRS resource codes and review your payload mapping | NRS status, resource version and time |
For escalation, send Duplo the billing support packet. Never include full credentials or private cryptographic material.
How is this guide?
Last updated on