Send Order Details To Carrier

We need to add a custom carrier, but we need when the vendor maybe chooses the carrier, it sends the order to the carrier, and when the order is canceled or updated, the carrier should know about it. We already have the carrier API, but any hints on how to apply that on cscart?

Use hooks in the fn_change_order_status (app/functions/fn.cart.php) function to call API