Awaken the pumpkin first
As the other answers have correctly stated, the true polymorph spell does not permit object-to-object transformations.
However, you can achieve what you want through the addition of one more spell, which is much lower level than true polymorph and which is fortunately for you on the druid spell list. It is a fifth level spell, so you will need to be level 9 in druid to cast it, but if you cannot, and you have the funds to pay for true polymorph, I assume you could pay for this as well.
Find the best pumpkin in your local pumpkin patch and cast Awaken:
...you touch a Huge or smaller beast or plant. The target must have either no Intelligence score or an Intelligence of 3 or less. The target gains an Intelligence of 10...If the target is a plant, it gains the ability to move its limbs, roots, vines, creepers, and so forth, and it gains senses similar to a human's. Your GM chooses statistics appropriate for the awakened plant...The awakened beast or plant is charmed by you for 30 days or until you or your companions do anything harmful to it.
The Awaken spell will let you transform a normal pumpkin plant object into a sentient pumpkin plant creature. Once it is a creature, you can then use true polymorph to turn it into a carriage (object).
However, note that true polymorph permits a Wisdom save for unwilling creatures, and you surely do not want to blow a 9th level cast on a lucky Wis save. When you have awakened the pumpkin, spend some time talking to it in your shared language. Explain to it how important its role of carriage is to the happiness of the couple, and how you just need it to be an object for one hour before it reverts to being a sentient pumpkin again. Hopefully you can convince it to allow you to make it into a carriage through role-play, but if your DM insists that some sort of Cha check is required to move it to 'willing', remember that it is charmed by you and you have advantage on the check.