PATCH
/
organizations
/
{organization_id}
/
sepa-mandates
/
{mandate_id}
Update Sepa Mandate
curl --request PATCH \
  --url https://dev.intermezzo.ai/organizations/{organization_id}/sepa-mandates/{mandate_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "valid_from": "2023-12-25",
  "valid_to": "2023-12-25",
  "mandate_reference": "<string>",
  "creditor_id": "<string>",
  "bank_account_id": "<string>",
  "is_recurring": true
}
'
import requests

url = "https://dev.intermezzo.ai/organizations/{organization_id}/sepa-mandates/{mandate_id}"

payload = {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"mandate_reference": "<string>",
"creditor_id": "<string>",
"bank_account_id": "<string>",
"is_recurring": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
valid_from: '2023-12-25',
valid_to: '2023-12-25',
mandate_reference: '<string>',
creditor_id: '<string>',
bank_account_id: '<string>',
is_recurring: true
})
};

fetch('https://dev.intermezzo.ai/organizations/{organization_id}/sepa-mandates/{mandate_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.intermezzo.ai/organizations/{organization_id}/sepa-mandates/{mandate_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'mandate_reference' => '<string>',
'creditor_id' => '<string>',
'bank_account_id' => '<string>',
'is_recurring' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://dev.intermezzo.ai/organizations/{organization_id}/sepa-mandates/{mandate_id}"

payload := strings.NewReader("{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"is_recurring\": true\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.patch("https://dev.intermezzo.ai/organizations/{organization_id}/sepa-mandates/{mandate_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"is_recurring\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://dev.intermezzo.ai/organizations/{organization_id}/sepa-mandates/{mandate_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"is_recurring\": true\n}"

response = http.request(request)
puts response.read_body
{
  "creditor_id": "<string>",
  "bank_account_id": "<string>",
  "is_recurring": true,
  "id": "<string>",
  "created_by": "<string>",
  "valid_from": "2023-12-25",
  "valid_to": "2023-12-25",
  "mandate_reference": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Get token from Auth0 and paste it here

Path Parameters

organization_id
required
mandate_id
required

Body

application/json
valid_from
string<date> | null
valid_to
string<date> | null
mandate_reference
string | null
creditor_id
string | null
bank_account_id
is_recurring
boolean | null

Response

Successful Response

creditor_id
string
required
bank_account_id
string
required
is_recurring
boolean
required
id
string
required
created_by
string
required
valid_from
string<date> | null
valid_to
string<date> | null
mandate_reference
string | null