Some deliveries are confirmed with a code: the recipient receives it in advance and gives it to the courier at the door. When that code can only travel by SMS, every coded delivery costs a text message.
The channel is a company setting: SMS, email, or both. Each client can have its own setting, which overrides the company’s. SMS stays the default, so nothing changes until you choose otherwise.
If no message with the code went out for a shipment, the shipment’s history says so. That answers the question of why a recipient never received a code, without anyone digging through logs.
The code itself is masked in the SMS and email logs, so the people who read those logs do not see it.