As I recall, AT&T let’s you exchange phones... might be 30 days... or it might only by 14 days. Go to the AT&T store and ask.
You have 30 days to take it back.