An AOC is required for public transport only. For other flights, the requirements are met by;
1. having the aircraft registered
2. using a properly licensed crew
3. meeting airworthiness and maintenance rules
4. having insurance when required by law (or by an interested financier)
5. observing all other relevant rules, e.g. Rules of the Air, MPNS, RVSM, etc etc.
6. there are probably a few other bits too.................
So, for a ferry flight from factory to customer, it's not necessary for the airframe to be listed on the AOC by its new owner or lessor. It can be on a temporary registration for delivery.
AFAIK you don't need a specific clearance from a national Authority for a delivery/ferry flight, provided all the applicable rules are observed.