Provided herein is a copolymer that includes a soft block (A) that contains poly(ester amide) (PEA) and a hard block (B). The copolymer can be any of AB, ABA or BAB type block copolymers. By varying the relative amount of the PEA block and the hard block, one can obtain a copolymer with a Tg for mechanical integrity in drug-delivery stent applications. The copolymer can be used alone or optionally in combination with a biobeneficial material and / or a biocompatible polymer to form an implantable device or a coating on an implantable device. When the copolymer is used in combination with a biobeneficial material, the copolymer and the biobeneficial material can be co-deposited or applied in sequence during the coating process. A coating formed of the copolymer may also include a bioactive agent. The implantable device can be implanted in a patient to treat, prevent, or ameliorate a disorder such as atherosclerosis, thrombosis, restenosis, hemorrhage, vascular dissection or perforation, vascular aneurysm, vulnerable plaque, chronic total occlusion, claudication, anastomotic proliferation for vein and artificial grafts, bile duct obstruction, ureter obstruction, and / or tumor obstruction.