Go-live checklist
What to have in place before your software sends commands for the live company.
On this page
Moving from the test company to the live company changes the credentials and the company, not the calls. Work through the list on the test company first.
Commands
- Every command has an
operationIdthat you create and store before the request is sent. See Idempotent commands. - A timeout, a 429
rate_limitedand a 503unavailableare answered by sending the same command again, unchanged. After a 429, wait the seconds inRetry-After. - A 409
revision_conflictis answered by reading the balance again, deciding, and sending a new command with a newoperationId. See Revisions and concurrency. - Quantities are decimal strings with at most six digits after the point. See Limits.
- A command holds at most one line per item and location, and at most the number of lines in Limits.
Refusals
- Your software reads the
codeof an error, not itsmessage. On a 400invalid_request,fieldsnames each field that is wrong. Keep therequestIdof an error to quote it when you ask us about a request. See Errors. - A refused command leaves nothing behind: no movement, no record of the operation. The same
operationIdmay be used again. - A shortage (a 422
insufficient_available_stock) refuses the whole command, not one line. Decide in your software what to do with the other lines.
Events
- Your 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. See Verify signatures.
- Your endpoint answers with a 2xx status within 10 seconds, before it does any work, and skips an event whose
idit already handled. - 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 and waits for a replay, so a night or a deployment loses nothing. See Delivery and retries and Replay.
- Your stock view skips an event whose
aggregateRevisionis not newer than the one it holds. See Rebuild your stock view from movements.
Access
- The live credentials are kept apart from the test ones, in different secrets, and the client secret stays on a server you control.
- The locations your client may read and change are agreed when the account is set up. A location outside them answers 403 with
forbidden.