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:

ScenarioExpected system behavior
Insufficient wallet balanceNRS 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 documentYour system records the rejection and doesn't resend the same document
Pass-through successOne charge and one stored sign result are linked to the IRN, idempotency key, and request ID
Duplicate Pass-through attempt409 starts recovery of the original response; no new key is generated
GW_SIGN_OUTCOME_UNCONFIRMEDYour system stops retrying that IRN and starts reconciling it, keeping the requestId
Stored intake response lostThe exact request is resent with the same key and resolves to one invoice
Stored invoice stays pendingThe poller backs off, stops at its own deadline, and alerts without resubmitting
Transmission timeoutThe system reads the current state and retries delivery only; it never signs again
Rate limitThe caller backs off with jitter, caps concurrency, and honors Retry-After when present
GW_REQUEST_BODY_TIMEOUTThe caller sends the complete body promptly and keeps the same idempotency key
GW_GATEWAY_CAPACITY_EXCEEDEDThe 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:

  1. Your sign command.
  2. The Gateway request ID, idempotency key, and IRN.
  3. The NRS result or, if the result was unconfirmed, how you reconciled it.
  4. 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:

  1. Stop sending test invoices, and reconcile every sign, Stored invoice, and transmission that hasn't finished.
  2. 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.
  3. Sign in again, confirm that Duplo Dashboard shows live, and generate a live API key.
  4. Configure the live webhook and caller IPs on that key. If you rely on IP restriction, confirm that Duplo has enabled enforcement in live.
  5. Wait until the domain status is approved in live with the expected mode and version.
  6. Onboard each represented business in live and save the new mappings.
  7. 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.
  8. Sign one real invoice, keep its request and response records, transmit it, and reconcile its signing fee.
  9. 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 seeWho respondsWhat to do firstWhat to send Duplo
Spike in 401 responsesSecurity/integrationCheck that the current API key is deployed and active; stop any automated key rotation that keeps repeatingHost, state, timestamps, key prefix/last four only
409 state or mode conflictIntegration ownerStop sending invoices and ask Duplo to confirm your domain's state and modeDomain status, mode, request ID
GW_BILLING_WALLET_DECLINEDFinance + operationsStop sending invoices for signing; check the wallet balance and that the business is activeRequest ID, IRN, represented-business ID, UTC time, sanitized error
GW_SIGN_OUTCOME_UNCONFIRMEDReconciliation teamStop retrying the IRN and keep its request and response records; don't sign againRequest ID, operation ID when present, idempotency key, NRS lookup
GW_TRANSMIT_ATTEMPT_ALREADY_PROCESSEDReconciliation teamUse the returned operation ID to check the original transmission; don't transmit againRequest ID, operation ID, IRN, idempotency key
GW_TRANSMIT_OUTCOME_UNCONFIRMEDReconciliation teamStop transmitting that IRN and reconcile it; don't resendRequest ID, operation ID, IRN, idempotency key, NRS lookup
Stored pending beyond your polling deadlineOperationsKeep polling within your deadline and investigateInvoice ID, IRN, represented-business ID, timestamps
Webhook outageApplication ownerGet your webhook URL returning 2xx again, then list and read invoices to catch upDelivery and invoice IDs, outage window
NRS resource rejectionTax/integrationFetch the current NRS resource codes and review your payload mappingNRS 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

On this page

Need help? Visit our help center