Direct Debit
Create a new mandate
Create a new mandate for the account associated to the Authorisation token. The Authorisation token needs to be specified in the 'Authorization' header as 'Authorization: Bearer YOUR_API_KEY_HERE'
post/v1/directdebit/mandates
Request body
Example request
{
"return_url": "https://service-name.gov.uk/transactions/12345",
"reference": "test_service_reference"
}Response
Created
Example response
{
"mandate_id": "jhjcvaiqlediuhh23d89hd3",
"provider_id": "jhjcvaiqlediuhh23d89hd3",
"reference": "jhjcvaiqlediuhh23d89hd3",
"return_url": "https://service-name.gov.uk/transactions/12345",
"_links": {
"self": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"next_url": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
},
"next_url_post": {
"type": "application/x-www-form-urlencoded",
"href": "https://an.example.link/from/payment/platform",
"method": "POST"
},
"payments": {
"href": "https://an.example.link/from/payment/platform",
"method": "GET"
}
}
}