curl --request POST \
--url https://sandbox.cashfree.com/api/v2/subscriptions/mandate/port \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: <x-client-id>' \
--header 'X-Client-Secret: <x-client-secret>' \
--data '{
"customerDetails": {
"customerEmail": "john.doe@gmail.com",
"customerPhone": "9999999999",
"debitAccountNumber": "1234567890",
"debitAccountHolderName": "John Doe",
"debitBankId": "SBIN",
"debitAccountType": "SAVINGS"
},
"subscriptionDetails": {
"umrn": "SBIN0000000000000000",
"paymentType": "E_MANDATE",
"fixedAmount": 10,
"maxAmount": 100,
"portingFrequency": "MNTH",
"startDate": "2025-03-28",
"endDate": "2025-08-04",
"maxCycles": 10,
"subscriptionId": "subs-import-mandate",
"firstChargeDate": "2025-04-03"
}
}'