Go-live checklist
What to have in place before your software declares transports for a live company.
On this page
Moving to a live company is described in 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. - You know the
idof each company and send it ascompanyId; you do not read it from the name. - Every company you declare for has the authorisation status
active. A declaration for a company whose authorisation islapsedis refused withauthorisation_not_in_force, and the company’s representative restores the access before you try again.
Declarations
- 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 declaration again, not repeat the request. - Your code reads the checks before it sends and shows the errors to the person who can fix them. See Errors and warnings.
- Your code writes the declared start date, the operation type and the purpose of each line from your own data, not from a default. See Operation types and required fields.
- Every declaration carries your own
reference, so a UIT code can be matched to your operation. See Your own reference.
Statuses
- Your code handles every status of Statuses, and treats a status it does not know as not final.
rejectedleads to a new draft withreopenDeclaration, never to a change of the rejected declaration. See Send and follow.manual_reviewleads to a person who checks, and only then toresendDeclaration. See When the authority is unavailable.- Your code stores the
uitof every accepted declaration and does not match on themessageof a check or of the authority.
After the UIT code
- Your code gives the driver the UIT code before the vehicle leaves and records the departure with
markDeparted. See The driver sheet. - Your code reads
lastValidDayand does not let a vehicle leave after it. See UIT validity and timing. - A change of vehicle on the road calls
changeVehicle, and a change before departure callscorrectDeclaration. See Change the vehicle. - Only one message to the authority is on its way per declaration: your code waits for the answer before it sends the next change, and handles
notification_pending. - Someone confirms receipt, or the code does it, when the goods arrive. See Confirm receipt.
Events and reconciliation
- Each company has a subscription, and its endpoint answers with a
2xxstatus. See Subscriptions. - The endpoint checks the signature of every delivery on the raw body, skips an
idit has already handled and skips anaggregateRevisionolder than the state it holds. See Verify signatures and Delivery and retries. - Someone watches for deliveries in the state
parkedand knows how to replay them. See Replay. - Your code compares your records with the authority’s list on a schedule you choose, and decides for each
differs,missingandunknownentry. See List and reconcile.