import requests
url = "https://api.paywise.de/v2/orders/{order_id}/messages/{id}/"
payload = {
"body": "Correction: the new invoice address applies from 1 August 2026.",
"title": "Updated invoice address (corrected)"
}
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({
body: JSON.stringify('Correction: the new invoice address applies from 1 August 2026.'),
title: 'Updated invoice address (corrected)'
})
};
fetch('https://api.paywise.de/v2/orders/{order_id}/messages/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.paywise.de/v2/orders/{order_id}/messages/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body\": \"Correction: the new invoice address applies from 1 August 2026.\",\n \"title\": \"Updated invoice address (corrected)\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.paywise.de/v2/orders/{order_id}/messages/{id}/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"body\": \"Correction: the new invoice address applies from 1 August 2026.\",\n \"title\": \"Updated invoice address (corrected)\"\n}", false);
var response = await client.PatchAsync(request);
Console.WriteLine("{0}", response.Content);
curl --request PATCH \
--url https://api.paywise.de/v2/orders/{order_id}/messages/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Correction: the new invoice address applies from 1 August 2026.",
"title": "Updated invoice address (corrected)"
}
'{
"author": {
"type": "api"
},
"body": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"documents": [
{
"created_at": "2023-11-07T05:31:56Z",
"download_url": "<string>",
"failure_reason": "page_limit_exceeded",
"filename": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mime_type": "<string>",
"parent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "claim"
},
"status": "pending",
"type": "bank_statement",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"editable": true,
"href": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "order"
},
"response_to": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sender": "client",
"state": "under_review",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}Update order message
Messages exchanged with paywise about one order or one case.
import requests
url = "https://api.paywise.de/v2/orders/{order_id}/messages/{id}/"
payload = {
"body": "Correction: the new invoice address applies from 1 August 2026.",
"title": "Updated invoice address (corrected)"
}
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({
body: JSON.stringify('Correction: the new invoice address applies from 1 August 2026.'),
title: 'Updated invoice address (corrected)'
})
};
fetch('https://api.paywise.de/v2/orders/{order_id}/messages/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.patch("https://api.paywise.de/v2/orders/{order_id}/messages/{id}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body\": \"Correction: the new invoice address applies from 1 August 2026.\",\n \"title\": \"Updated invoice address (corrected)\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.paywise.de/v2/orders/{order_id}/messages/{id}/");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"body\": \"Correction: the new invoice address applies from 1 August 2026.\",\n \"title\": \"Updated invoice address (corrected)\"\n}", false);
var response = await client.PatchAsync(request);
Console.WriteLine("{0}", response.Content);
curl --request PATCH \
--url https://api.paywise.de/v2/orders/{order_id}/messages/{id}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Correction: the new invoice address applies from 1 August 2026.",
"title": "Updated invoice address (corrected)"
}
'{
"author": {
"type": "api"
},
"body": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"documents": [
{
"created_at": "2023-11-07T05:31:56Z",
"download_url": "<string>",
"failure_reason": "page_limit_exceeded",
"filename": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mime_type": "<string>",
"parent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "claim"
},
"status": "pending",
"type": "bank_statement",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"editable": true,
"href": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"parent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "order"
},
"response_to": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sender": "client",
"state": "under_review",
"title": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
Company-bound Case Management API key — the standard credential for this API.
Headers
Required when a Partner key calls the Case Management API; rejected for direct Case keys. Contains the entitled paywise company UUID.
Apply the change only while the current ETag matches one of the supplied validators (or *); otherwise the request fails with 412 precondition_failed and nothing is written.
Path Parameters
UUID of the message in this request.
UUID of the parent order in this request.
Body
- Title
- Body
Update the message title, body, or both. Supply at least one field; omitted fields retain their values. Unknown fields are rejected.
Response
Resource representation with a native UUID id.
Channel through which the message was authored.
Show child attributes
Show child attributes
Message content exchanged with paywise.
Time at which the message was created.
Documents attached to the message.
Show child attributes
Show child attributes
Whether this message can be edited through the API. True only for a client message created through current Case Management API for the calling company while it is under review and no review task has started.
API URL of this message.
Stable identifier for this resource.
Order or accepted case to which the message belongs.
Show child attributes
Show child attributes
Message to which this message responds, when applicable.
Party that sent the message.
client, paywise Review/publication state: under_review for a client message awaiting review, handled after handling, or published for a published message. Check editable before offering edits.
under_review, handled, published Short subject of the message.
Time at which the message was last updated.
