A bill of lading is a document that serves both as a receipt for goods being shipped and a contract defining the extent of the transporter's liability.