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 when status is CANCELLED and any pickup_instructions or dropoff_instructions key present is null or an empty string. Those keys are ignored; a cancel never edits instructions.
  • An instruction field with any value other than null or an empty string next to status is still refused with 400, and status still accepts only CANCELLED.

Migration

No action is required. Clients that send null for every empty note can cancel without stripping those keys first.