Create Mandate (Intent Flow)

In order to create a mandate through 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, UPI responds to the Juspay PSP with the final status of the mandate and the Juspay PSP notifies the merchant through the Create Mandate Callback(type: MERCHANT_INCOMING_CREATE_MANDATE). The Merchant can also call Mandate Status API at regular intervals to get the real time status of the mandate creation.

#