Hi @CraigB
While there isn’t a boolean flag for whether or not there is a direct debit in place, but there is a way of checking.
For example, a Client_Get
call, similar to the following, will return one of two results.
Request
"Body": {
"ClientID": 123456,
"ReturnData": {
"GoCardlessDetails": true
}
}
Responses
"Body": {
"ClientDetails": {
"ClientID": 123456,
"CompanyName": "My Client (no DD)",
...
},
"GoCardlessDetails": {
"NewSignUpUrl": "https://www.quickfile.co.uk/gocardless?q=abc......."
}
}
OR
"Body": {
"ClientDetails": {
"ClientID": 123456,
"CompanyName": "My Client (with DD)",
...
},
"GoCardlessDetails": {
"PreAuthId": "MD..."
}
}
}
}
So with the GoCardlessDetails
section, you will either have a NewSignUpUrl
(no mandate) or PreAuthId
(there is a mandate)
Hope that helps!