The capture if it works, because there should appear a carrier and nothing appears, but I have solved it first with this link
and second, reversing the steps, that is, first the order status was changed to preparation in progress and later the tracking number was put, because the solution is to do it the other way around, first the tracking number and then change of status (something crazy but it works So)