to return something as part of a payment for something similar
I traded in my wonderful little sports car for a much more practical van. The store wouldn't give me a refund on the camera, but they offered to let me trade it in. Usage notes: usually said about a device, a piece of equipment, or a vehicle