The courier company were working on Amazon's behalf - as a subcontractor, it is Amazon's issue, they need to do the legwork to get their money back after funding remedial works. You paid Amazon, your contract is with them.
If you got your bathroom done out by a building firm and their contracted tiler made a sh!tty job of the tiling, you would be chasing the building firm, not the tiler.