Go-live checklist
What to check in your integration before it works on your live company.
On this page
Run the same calls against the test company until every line below is true. Moving to the live company changes the credentials and the company, and nothing else: see Sandbox and live.
Sign-in
- The client secret is on a server you control, not in a web page or an app.
- The token is requested again before it ends, and a
401makes the client ask for a new one once. - The test credentials and the live credentials are in different secrets.
Changes
- Every change has an
operationIdthat is created and stored before the request is sent, and a request that timed out is sent again with the same one. - A change to an existing document sends the
revisionthat was read asexpectedRevision, and a409withrevision_conflictreads the document again. Values of an extraction use the revision of the extraction. - The result is read by
statusand by thecodeof an error, never by themessage. See Errors. - The identifier of a document comes from the answer that created it, or from the operation that is read afterwards; the code keeps it with the file it sent.
Documents
- An invoice is submitted only when every extracted value is accepted. A
422withextraction_unresolvedlists the values that are not, and the code shows them to a person instead of accepting them. - A value that differs from the record of the partner is corrected to the value of the record, never accepted as it is. See Extract data.
- A document that an approver returned is revised before it is submitted again:
revision_requiredsays so. See Approvals. - A request for signature that ended with a decline is replaced by a new request, and the code reads each recipient by
state. See Signature. - Nothing is deleted through the API: an archived document stays until its keep-until date. See Retention.
Reading
- Every list is read to the end: the walk stops when
nextCursorisnull. See Pagination. - Fields and statuses that the code does not know are ignored, and a status it does not know is shown as it is. See Versioning.
Events
- The endpoint is on HTTPS, keeps the signing secret that the answer creating the subscription returned, and checks the signature of every delivery against it before it believes the body.
- The endpoint answers with a 2xx status within 10 seconds, before it does the work.
- An endpoint that is down is tried six times: at once, then after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. After the sixth failure the event is parked, so a night or a deployment loses nothing.
- An event whose
idwas already handled is skipped, and so is an event whoseaggregateRevisionis older than the state you hold. See Delivery and retries. - A parked event is found with
listEventsand sent again withreplayEvent. See Replay.