For importing/migrating mandates, this option allows you to do it in bulk and if you are to import more than 50k mandates, we recommend doing it in batch.
Example request
JSON
{
"method":"DirectMandateBatch",
"params":{
"Signature":"f4ThjuMqbsdG6u ... S16VbzD4h==",
"UUID":"258a2184-2842-b485-25ca-293525152425",
"Data":{
"Username":"merchant_username",
"Password":"merchant_password",
"MessageID":"your_unique_order_id",
"NotificationURL":"https://URL_to_your_notification_service",
"Currency":"SEK",
"Country":"SE",
"BatchFile":"batch-20241115.csv",
"Checksum":"0cdf0945096283b9ba94e42150ba84d8",
"Attributes":{
}
}
},
"version":"1.1"
}
Example response
JSON
{
"result": {
"method":"DirectMandateBatch",
"uuid":"258a2184-2842-b485-25ca-293525152425",
"data":{
"result":"1",
"rejected":"",
"orderid":"1234512345"
},
"signature":"QBuLx ... JDGM/GVq5EBaPnGmvxA=="
},
"version":"1.1"
}