Go-live checklist
What to have in place before your software sends invoices for a live company.
On this page
Moving to a live company is a setup step that we do with you (see Sandbox and live). Go through this list on the test company first; every item is a behaviour of your code, not a setting.
Credentials and companies
- The client secret lives on a server you control and is read from a secret store, not from the code. Test and live credentials are kept apart.
- Your code asks for a new token before the old one ends (
expires_in) and after a401. - Every company you send for has the status
activein its authorisation. See Expiry and renewal. - You know the
idof each company and send it ascompanyId; you do not read it from the name.
Changes
- Every change carries an
operationIdthat you stored before you sent the request, and a request that timed out is repeated with the same one. See Idempotency and concurrency. - A
409withrevision_conflictmakes your code read the invoice again, not repeat the request. - A
429or a503makes your code wait, the seconds ofRetry-Afterfor a429, and send the same request again with the sameoperationId. See Error codes. - Your code reads
canSendbefore it sends and shows the failing checks to the person who can fix them. See Validate before sending.
Statuses
- Your code handles every status of Lifecycle and statuses, and treats a status it does not know as not final.
rejectedleads to a correction, a new invoice withcorrectionOf, never to a change of the rejected one. See Corrections.manual_reviewleads to a person who checks, and only then to a new send. See When the authority is unavailable.- Your code stores the
uploadIndexof every sent invoice, and does not match on themessageof a check or of the authority.
Events
- Each company has a subscription, and its endpoint answers with a
2xxstatus before it does any work. See Subscriptions. - The secret of the subscription is stored where only the endpoint reads it, and the endpoint checks the signature of every delivery on the raw body before it trusts it. See Subscriptions.
- The endpoint skips an
idit has already handled and skips anaggregateRevisionolder than the state it holds. See Delivery and retries. - Someone watches for deliveries in the state
parkedand knows how to replay them. See Replay.