Go-live checklist
What to have in place before your software posts documents 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 company
- 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 body carries the
customerOrgIdandlegalCompanyIdthat were issued with the live company, never the ones of the test company. mappingPolicyVersionis the version issued with your account. A request with another value is apolicy_conflict.
Posting requests
postingRequestIdandoperationIdare stored before the request is sent, and a request that timed out is repeated with the same ones. See Idempotency and concurrency.- A changed document gets a new request: the new
sourceRevisionwith a newpostingRequestId. Apayload_conflictis never answered by changing the content of the old request. - Amounts are decimal strings with at most 2 decimals, never JSON numbers, and
effectiveDateis the date of the document. - A
period_closedis shown to a person who decides the date of the correction; your code does not choose a date by itself. See Period locks.
Statuses
- Your code handles
accepted,postedandrejected, and treats a status it does not know as not final. See Operational facts and postings. rejectedleads to a correction of the source document and a new request, never to a change of the rejected one. Therejection.codesays why. See Error codes.- A request that stays
acceptedis not an error: the invoice may wait for an approver. A person looks at requests that stayacceptedfor longer than your own rule allows.
Events
- The company has a subscription, and its endpoint answers with a
2xxstatus within 10 seconds, before it does any work. See Subscriptions. - The endpoint verifies the signature of every delivery over the raw body before it trusts the event, skips an
idit has already handled and skips anaggregateRevisionolder than the state it holds. See Verify signatures and Delivery and retries. - The code that reads a
429waits forRetry-Afterand sends the same request again with the sameoperationId. See Errors. - Someone watches for deliveries in the state
parkedand knows how to replay them. See Replay.