Most newspapers and magazines will want you to sign a contract to confirm you are selling your story to them. It will set out your fee, but usually the most important part of a contract involves you agreeing 'exclusivity' – ie, to not sell your story to rival publications until your story has been published.