A missing key and a null value look the same in a CRM table. One means "the field was never sent", the other means "it was sent as empty on purpose". When a handover check treats them as one thing, the record that should have failed quietly passes, and three weeks later a renewal reminder goes to nobody.
Here is the failure we keep seeing in acceptance week. The form posts {"request_id": "...", "email": "...", "amount": 29000, "memo": null} and the receiver maps every value into a string column. memo lands as the text None. The CRM then shows a memo field that is not empty — it contains four characters — so the "memo required" rule passes for a record where the sender deliberately sent nothing.
The fix is one validation block at the top of the receiver, before any mapping:
REQUIRED = ("request_id", "email", "amount") OPTIONAL_NULLABLE = ("memo",) def validate(body: dict) -> dict: for key in REQUIRED: if key not in body: # missing key -> reject raise ValueError(f"missing required field: {key}") if body[key] is None: # present but null -> reject raise ValueError(f"required field is null: {key}") for key in OPTIONAL_NULLABLE: if key in body and body[key] is not None and not isinstance(body[key], str): raise ValueError(f"{key} must be a string or null") if not isinstance(body["amount"], int) or body["amount"] < 0: raise ValueError("amount must be a non-negative integer") return body Three rules follow from that block, and each one is a verdict you can write into the acceptance sheet:
- Missing is not null. A required field that is absent fails; a required field that is present as
nullalso fails, but with a different message. Both get logged with the key name so the sender can tell which mistake they made. - Amounts stay integers.
"29000"from a form is converted once, at the boundary, and rejected if it is not a number. Concatenating strings is how"29000" + "5000"becomes"290005000"in a spreadsheet export nobody checks. - Nullable means exactly null. If
memomay be empty, the contract says "string or null" and the database column is nullable. An empty string and a null then cannot drift apart silently.
Ten checks we set up with the build
- surface (UI) and wiring (form to CRM) built by one team — it does not stop at the form
- the four-field form posts to a server function, not a mail app; no account or password
- a resent request_id is deduplicated, so one opportunity stays one record
- a CRM 503 write is queued instead of lost, with a written manual re-processing step
- the four-row acceptance sheet (input, expected, actual, verdict) is agreed before work starts
- delivery is re-checked on that same sheet, with the run id tying evidence card, recording and raw log
- failed rows are fixed at no cost and re-checked once within the agreed scope
- acceptance baseline: full Korean/English switch, 0px horizontal overflow 320–1920px, zero console errors
- domain, DNS, HTTPS, cache and security headers set, with a deploy you can roll back
- a handover document so your staff can run the same checks without us
You can copy the validation block and the four-row sheet as they are. We also run a free check where you paste a real webhook payload and see the field types, empty values, duplicates and replay behaviour before you accept anything.
Which part breaks most often in your integration: the payment callback, the webhook, or the cron? One word is enough, and I will write the check order for that part.


