Yes, in most cases you can cancel a hotel booking straight from your own booking screen, and the cancellation is sent back to the supplier through the same connection the booking went out on.
What happens after that depends on the rate your customer booked rather than on the portal itself. If the room was sold on a refundable rate and you are still inside the free cancellation window, the supplier normally confirms the cancellation right away and nothing is charged. If you are past that deadline, or the room was a non refundable rate, the cancellation will usually still be accepted but the supplier will keep part or all of the money, and that is their rule, not something we can override for you. Some suppliers also will not cancel just one room out of a booking that holds several, so you may need to cancel the whole thing and book again.
There are suppliers who do not accept cancellations through their API at all, and with those the request has to go to their own support team. Where that applies, the booking is marked as a pending cancellation so you can see it is being dealt with instead of wondering whether it reached anyone.
The refund to your customer is a separate step. If you took the payment through your own payment provider, you refund it there, and the supplier credits you back on their own timetable. Before you promise a customer anything, open the booking, read the cancellation terms saved against it, and tell them exactly what that rate allows.