curl --request POST \
--url https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file": "<string>"
}
'import requests
url = "https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/"
payload = { "file": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({file: '<string>'})
};
fetch('https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/', 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://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file' => '<string>'
]),
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://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/"
payload := strings.NewReader("{\n \"file\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "b2c3d4e5-f6a7-5e44-9f0a-d8e9f0a1b2c3",
"href": "https://api.paywise.de/v1/mandates/5600672e-2bfa-488c-b23a-460c1dd1f833/requests-to-client/b2c3d4e5-f6a7-5e44-9f0a-d8e9f0a1b2c3/",
"mandate": {
"id": "5600672e-2bfa-488c-b23a-460c1dd1f833",
"href": "https://api.paywise.de/v1/mandates/5600672e-2bfa-488c-b23a-460c1dd1f833/",
"reference_number": "K25-8Q114"
},
"title": "Dokumente angefordert",
"description": "Wir benötigen eine Kopie der Originalrechnung zur Prüfung.",
"allowed_answer_types": "fileupload",
"file_attachments": [],
"answered": true,
"answer": {
"id": "c3d4e5f6-a7b8-6f55-0a1b-e9f0a1b2c3d4",
"text": "Anbei die angeforderten Dokumente.",
"additional_comment": null,
"files": [
{
"id": "d4e5f6a7-b8c9-0123-4567-890abcdef012",
"filename": "rechnung_RE2023001.pdf",
"mime_type": "application/pdf",
"file_size": 234567
}
],
"created": "2025-11-16T14:22:00Z"
},
"created": "2025-11-15T08:00:00Z",
"answered_at": "2025-11-16T14:22:00Z"
}Upload document to request to client answer
Upload a document file for your answer. Use this for fileupload type requests.
IMPORTANT: For fileupload type requests, upload all documents FIRST, then submit the answer.
Once the answer is submitted, no more documents can be uploaded.
Allowed file types: PDF, JPEG, PNG
Maximum file size: 10 MB
curl --request POST \
--url https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file": "<string>"
}
'import requests
url = "https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/"
payload = { "file": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({file: '<string>'})
};
fetch('https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/', 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://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file' => '<string>'
]),
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://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/"
payload := strings.NewReader("{\n \"file\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.paywise.de/v1/mandates/{mandate_id}/requests-to-client/{request_id}/answer/documents/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "b2c3d4e5-f6a7-5e44-9f0a-d8e9f0a1b2c3",
"href": "https://api.paywise.de/v1/mandates/5600672e-2bfa-488c-b23a-460c1dd1f833/requests-to-client/b2c3d4e5-f6a7-5e44-9f0a-d8e9f0a1b2c3/",
"mandate": {
"id": "5600672e-2bfa-488c-b23a-460c1dd1f833",
"href": "https://api.paywise.de/v1/mandates/5600672e-2bfa-488c-b23a-460c1dd1f833/",
"reference_number": "K25-8Q114"
},
"title": "Dokumente angefordert",
"description": "Wir benötigen eine Kopie der Originalrechnung zur Prüfung.",
"allowed_answer_types": "fileupload",
"file_attachments": [],
"answered": true,
"answer": {
"id": "c3d4e5f6-a7b8-6f55-0a1b-e9f0a1b2c3d4",
"text": "Anbei die angeforderten Dokumente.",
"additional_comment": null,
"files": [
{
"id": "d4e5f6a7-b8c9-0123-4567-890abcdef012",
"filename": "rechnung_RE2023001.pdf",
"mime_type": "application/pdf",
"file_size": 234567
}
],
"created": "2025-11-16T14:22:00Z"
},
"created": "2025-11-15T08:00:00Z",
"answered_at": "2025-11-16T14:22:00Z"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Serializer for uploading documents to an answer. Used for the separate document upload endpoint.
Document file to upload. Allowed formats: PDF, JPEG, PNG.
Response
Main serializer for RequestToClient in the Public API. Provides full detail view for GET requests.
Minimal mandate info for RequestToClient responses.
Show child attributes
Show child attributes
None- ---------yes-no- Ja/Neinyes-no-dontknow- Ja/Nein/Weiß nichtfileupload- Freitext + Dateiuploadyes-no-freetext-on-no- Ja/Nein + Freitext bei Neinyes-with-date-no-freetext-on-no- Ja + Datum / Nein + Freitextdynamic-form- Dynamisches Formular
yes-no, yes-no-dontknow, fileupload, yes-no-freetext-on-no, yes-with-date-no-freetext-on-no, dynamic-form Show child attributes
Show child attributes
Read-only serializer for displaying answers. Shows text, additional comment, and uploaded files.
Show child attributes
Show child attributes
