After getting a prescription from your health care provider, you may purchase a CPAP machine online or at a brick and mortar store. If Medicare is fully or partially covering the cost of your CPAP treatment, you must buy your machine from a supplier who is enrolled in Medicare.  Your doctor or insurance plan may help you find a company that provides different types of CPAP machines and accessories. CPAP machines are not available for purchase without a prescription.