A commercial invoice is used for clearance purposes in customs offices and assists the official in determining and assessing the customs duties and taxes payable by the receiver. It serves as a legal document used for international shipping where customs clearance is required.