To avoid out of stock packages, you should regularly synchronize your list of available packages via the Get Packages endpoint.
It is recommended to perform this synchronization at least once per day, but ideally once per hour. This will ensure you have the most up-to-date information on package availability and can avoid submitting orders for non-existing packages, which could result in the need for refunds.