Restore Purchases Flow

I’m working out the details of getting my app published to the app store. ChatGPT believes I need to have a Restore Purchases flow. It also believes I can just call the “Initiate subscription purchase” action but that doesn’t seem right. Does anyone know the correct way to do this?