How to generate HPRID with role facility manager

Desctibe the API flow which api to call after another for creating HPR-ID in sandbox Env as facility manager role?