Self-Service / Donations
Own donations, recurring donations and the years with a Sammelbestätigung
GET/api/cp/self_service/donations
Responses
200Donations of the logged-in donorobject
Show fields (5)
donationsarray<object>recurring_donationsarray<object>collective_receipt_yearsarray<object>receipts_availablebooleanrecurring_optionsobject
curl --request GET \
--url https://your-instance.iw-erp.de/api/cp/self_service/donations \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/cp/self_service/donations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/cp/self_service/donations"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/cp/self_service/donations', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/cp/self_service/donations"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/cp/self_service/donations")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/cp/self_service/donations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/donation_self_service_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await DonationSelfServiceController.getOverview();
if (result.success) {
print(result.data);
}{
"donations": [
{}
],
"recurring_donations": [
{}
],
"collective_receipt_years": [
{}
],
"receipts_available": true
}Zuwendungsbestätigung of an own donation as PDF
GET/api/cp/self_service/donations/{id}/pdf
Path parameters
idrequiredstring |
Responses
200The receipt as PDF
curl --request GET \
--url https://your-instance.iw-erp.de/api/cp/self_service/donations/42/pdf \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/cp/self_service/donations/42/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/cp/self_service/donations/42/pdf"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/cp/self_service/donations/42/pdf', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/cp/self_service/donations/42/pdf"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/cp/self_service/donations/42/pdf")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/cp/self_service/donations/42/pdf"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'package:http/http.dart' as http;
final response = await http.get(
Uri.parse('https://your-instance.iw-erp.de/api/cp/self_service/donations/42/pdf'),
headers: {'x-iw-jwt-token': '<TOKEN>'},
);
print(response.body);Sammelbestätigung of the logged-in person for a year as PDF
GET/api/cp/self_service/donations/collective_receipt/{year}/pdf
Path parameters
yearrequiredstring |
Responses
200The Sammelbestätigung as PDF
curl --request GET \
--url https://your-instance.iw-erp.de/api/cp/self_service/donations/collective_receipt/42/pdf \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'GET', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/cp/self_service/donations/collective_receipt/42/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/cp/self_service/donations/collective_receipt/42/pdf"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://your-instance.iw-erp.de/api/cp/self_service/donations/collective_receipt/42/pdf', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/cp/self_service/donations/collective_receipt/42/pdf"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/cp/self_service/donations/collective_receipt/42/pdf")
.get()
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/cp/self_service/donations/collective_receipt/42/pdf"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'package:http/http.dart' as http;
final response = await http.get(
Uri.parse('https://your-instance.iw-erp.de/api/cp/self_service/donations/collective_receipt/42/pdf'),
headers: {'x-iw-jwt-token': '<TOKEN>'},
);
print(response.body);Change amount, interval or bank account of an own recurring donation
PUT/api/cp/self_service/recurring_donations/{id}
A new bank account needs a new SEPA mandate: the donor agrees again, the mandate gets a new reference and the next collection is a first collection.
Path parameters
idrequiredstring |
Request body application/json
amountnumberintervalstringmonthly, quarterly, half_yearly or yearly
accountHolderstringibanstringbicstringmandateConsentbooleanrequired with a new IBAN
Responses
200The changed recurring donation
curl --request PUT \
--url https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42 \
--header 'content-type: application/json' \
--header 'x-iw-jwt-token: <TOKEN>' \
--data '
{
"iban": "DE02120300000000202051",
"bic": "BYLADEM1001",
"amount": 49.9,
"interval": "string",
"accountHolder": "string",
"mandateConsent": true
}
'const options = {
method: 'PUT',
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: JSON.stringify({
iban: 'DE02120300000000202051',
bic: 'BYLADEM1001',
amount: 49.9,
interval: 'string',
accountHolder: 'string',
mandateConsent: true
})
};
fetch('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42"
payload = {
"iban": "DE02120300000000202051",
"bic": "BYLADEM1001",
"amount": 49.9,
"interval": "string",
"accountHolder": "string",
"mandateConsent": True
}
headers = {
"x-iw-jwt-token": "<TOKEN>",
"content-type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('PUT', 'https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42', [
'body' => '{"iban":"DE02120300000000202051","bic":"BYLADEM1001","amount":49.9,"interval":"string","accountHolder":"string","mandateConsent":true}',
'headers' => [
'content-type' => 'application/json',
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Put,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
Content = new StringContent("{\"iban\":\"DE02120300000000202051\",\"bic\":\"BYLADEM1001\",\"amount\":49.9,\"interval\":\"string\",\"accountHolder\":\"string\",\"mandateConsent\":true}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"iban\":\"DE02120300000000202051\",\"bic\":\"BYLADEM1001\",\"amount\":49.9,\"interval\":\"string\",\"accountHolder\":\"string\",\"mandateConsent\":true}");
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42")
.put(body)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42"
payload := strings.NewReader("{\"iban\":\"DE02120300000000202051\",\"bic\":\"BYLADEM1001\",\"amount\":49.9,\"interval\":\"string\",\"accountHolder\":\"string\",\"mandateConsent\":true}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-iw-jwt-token", "<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))
}Dart with the iw_erp_api package
import 'package:iw_erp_api/clients/donation_self_service_controller.dart';
import 'package:iw_erp_api/logic/iw_api_state.dart';
import 'package:iw_erp_api/model/donation_self_service_recurring_change.dart';
IwApiState().host = 'your-instance.iw-erp.de';
IwApiState().currentJwtApiToken = '<TOKEN>';
final result = await DonationSelfServiceController.changeRecurring(42, DonationSelfServiceRecurringChange.fromJson({
"iban": "DE02120300000000202051",
"bic": "BYLADEM1001",
"amount": 49.9,
"interval": "string",
"accountHolder": "string",
"mandateConsent": true
}));
if (result.success) {
print(result.data);
}Change amount, interval or bank account of an own recurring donation
PATCH/api/cp/self_service/recurring_donations/{id}
A new bank account needs a new SEPA mandate: the donor agrees again, the mandate gets a new reference and the next collection is a first collection.
Path parameters
idrequiredstring |
Request body application/json
amountnumberintervalstringmonthly, quarterly, half_yearly or yearly
accountHolderstringibanstringbicstringmandateConsentbooleanrequired with a new IBAN
Responses
200The changed recurring donation
curl --request PATCH \
--url https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42 \
--header 'content-type: application/json' \
--header 'x-iw-jwt-token: <TOKEN>' \
--data '
{
"iban": "DE02120300000000202051",
"bic": "BYLADEM1001",
"amount": 49.9,
"interval": "string",
"accountHolder": "string",
"mandateConsent": true
}
'const options = {
method: 'PATCH',
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: JSON.stringify({
iban: 'DE02120300000000202051',
bic: 'BYLADEM1001',
amount: 49.9,
interval: 'string',
accountHolder: 'string',
mandateConsent: true
})
};
fetch('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42"
payload = {
"iban": "DE02120300000000202051",
"bic": "BYLADEM1001",
"amount": 49.9,
"interval": "string",
"accountHolder": "string",
"mandateConsent": True
}
headers = {
"x-iw-jwt-token": "<TOKEN>",
"content-type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('PATCH', 'https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42', [
'body' => '{"iban":"DE02120300000000202051","bic":"BYLADEM1001","amount":49.9,"interval":"string","accountHolder":"string","mandateConsent":true}',
'headers' => [
'content-type' => 'application/json',
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Patch,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
Content = new StringContent("{\"iban\":\"DE02120300000000202051\",\"bic\":\"BYLADEM1001\",\"amount\":49.9,\"interval\":\"string\",\"accountHolder\":\"string\",\"mandateConsent\":true}")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("application/json")
}
}
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"iban\":\"DE02120300000000202051\",\"bic\":\"BYLADEM1001\",\"amount\":49.9,\"interval\":\"string\",\"accountHolder\":\"string\",\"mandateConsent\":true}");
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42")
.patch(body)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42"
payload := strings.NewReader("{\"iban\":\"DE02120300000000202051\",\"bic\":\"BYLADEM1001\",\"amount\":49.9,\"interval\":\"string\",\"accountHolder\":\"string\",\"mandateConsent\":true}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("x-iw-jwt-token", "<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))
}Dart with package:http (no controller in the iw_erp_api package)
import 'dart:convert';
import 'package:http/http.dart' as http;
final response = await http.patch(
Uri.parse('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42'),
headers: {'x-iw-jwt-token': '<TOKEN>', 'content-type': 'application/json'},
body: jsonEncode({
"iban": "DE02120300000000202051",
"bic": "BYLADEM1001",
"amount": 49.9,
"interval": "string",
"accountHolder": "string",
"mandateConsent": true
}),
);
print(response.body);Pause an own recurring donation; collections not yet handed to the bank are stopped
POST/api/cp/self_service/recurring_donations/{id}/pause
Path parameters
idrequiredstring |
Responses
200The paused recurring donation
curl --request POST \
--url https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/pause \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/pause"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/pause', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/pause"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/pause")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/pause"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'package:http/http.dart' as http;
final response = await http.post(
Uri.parse('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/pause'),
headers: {'x-iw-jwt-token': '<TOKEN>'},
);
print(response.body);Resume an own paused recurring donation; the next collection is never in the past
POST/api/cp/self_service/recurring_donations/{id}/resume
Path parameters
idrequiredstring |
Responses
200The running recurring donation
curl --request POST \
--url https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/resume \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/resume', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/resume"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/resume', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/resume"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/resume")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/resume"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'package:http/http.dart' as http;
final response = await http.post(
Uri.parse('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/resume'),
headers: {'x-iw-jwt-token': '<TOKEN>'},
);
print(response.body);Cancel an own recurring donation
POST/api/cp/self_service/recurring_donations/{id}/cancel
Path parameters
idrequiredstring |
Responses
200The canceled recurring donation
curl --request POST \
--url https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/cancel \
--header 'x-iw-jwt-token: <TOKEN>'const options = {method: 'POST', headers: {'x-iw-jwt-token': '<TOKEN>'}};
fetch('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/cancel"
headers = {"x-iw-jwt-token": "<TOKEN>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/cancel', [
'headers' => [
'x-iw-jwt-token' => '<TOKEN>',
],
]);
echo $response->getBody();using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/cancel"),
Headers =
{
{ "x-iw-jwt-token", "<TOKEN>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/cancel")
.post(null)
.addHeader("x-iw-jwt-token", "<TOKEN>")
.build();
Response response = client.newCall(request).execute();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-iw-jwt-token", "<TOKEN>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Dart with package:http (no controller in the iw_erp_api package)
import 'package:http/http.dart' as http;
final response = await http.post(
Uri.parse('https://your-instance.iw-erp.de/api/cp/self_service/recurring_donations/42/cancel'),
headers: {'x-iw-jwt-token': '<TOKEN>'},
);
print(response.body);