The carrier records the hold and its cause. If customs stopped the goods because of what they are or how your side documented them, the delivery deadline is extended by the hold. If it was the carrier’s filing or a document it was to provide, the deadline is not extended, and you may claim if the goods are refused.
If you think the stated cause is wrong, contest it on the shipment page within the window shown there; a reviewer decides.