In order to create a mandate through the intent flow, the merchant server initiates a Register Mandate API (similar to Register Intent API in transaction flow). Through the Register mandate API, the merchant passes the OrderId (MerchantRequestId) with the Juspay PSP. On successful registration, the merchant server gets a response immediately with the API status along with orderid and upirequestid.
Merchant should use this orderid to construct the Intent URI which is passed to the payer app during UPI Intent invocation. Once the customer approves the mandate, UPI calls the Juspay PSP with the mandate details.
Juspay PSP Validates all incoming mandate requests and allows only mandates with registered orderid to pass through while rejecting other mandates. (This flow allows the merchants to block unintended mandates created by customer directly on their UPI app rather than at the merchant application)
After orderid validation, Juspay PSP notifies the merchant through the Merchant Incoming Create Mandate API. The Merchant can also call Mandate Status regular intervals to get the real time status of the transaction.