Post request to 2 endpoints from same request

Hello, in the Mongoose- Modeling Relationships between Connected Data module, we cover how to create a Customer and then link a Rental to a Customer through the ID. I was wondering if there is a way to create a Customer on the fly when creating a new Rental. For example when making a POST request to the rentals endpoint, you include a req body for a new Customer and have that forwarded to the customers endpoint from the Rentals endpoint? Here is an example of what I am trying to do; I’m getting: “customer” is not allowed because I’m not handling a post request to the customers endpoint? Or is there a better approach to doing this? Many thanks in advance.

router.post("/", async (req, res) => {
const { error } = validate(req.body);
if (error) return res.status(400).send(error.details[0].message);

const hut = await Hut.findById(req.body.hutId);
if (error) return res.status(400).send(error.details[0].message);

let booking = new Booking({
customer: new Customer({
name: req.body.name,
lastName: req.body.lastName,
emailAddress: req.body.emailAddress,
phoneNumber: req.body.phoneNumber,
country: req.body.country,
}),
hut: {
_id: hut._id,
name: hut.name,
dailyRentalRate: hut.dailyRentalRate,
},
arrivalDate: req.body.arrivalDate,
departureDate: req.body.departureDate,
numberOfAdults: req.body.numberOfAdults,
daysBooked: req.body.daysBooked,
totalRate: req.body.totalRate,
dateCreated: req.body.dateCreated,
});

try {
new Fawn.Task().save(“bookings”, booking).run();
} catch (error) {
res.status(500).send(“Something went wrong in the server.”);
}
});