Cancel accepts cleared instruction fields
A cancel through PATCH /dd/v1/deliveries/{external_delivery_id} no longer
fails when the body also carries an instruction field set to null or an
empty string.
What changed
PATCH /dd/v1/deliveries/{external_delivery_id}cancels the delivery whenstatusisCANCELLEDand anypickup_instructionsordropoff_instructionskey present isnullor an empty string. Those keys are ignored; a cancel never edits instructions.- An instruction field with any value other than
nullor an empty string next tostatusis still refused with400, andstatusstill accepts onlyCANCELLED.
Migration
No action is required. Clients that send null for every empty note can
cancel without stripping those keys first.