You must make sure your dog is microchipped.
The rules for cats depend on where you live.
Check the rules about microchipping dogs and cats.