GRENKE Message
Free-text messages to GRENKE on a financing case.
GET/api/financing-cases/{financingCaseId}/grenke-messages
List the messages to GRENKE of a financing case
Lists the messages to GRENKE of a financing case, oldest first, with their transmission status. Messages written in the partner portal, by the hub or by Miete24 are included. Internal notes are never returned, and GRENKE replies are not available through this API. This is not the message field of the financing case, which returns the free text of the quote request. On a case that ended, messages keep their status and nothing is sent unless the case is taken up again. Responds 200, 401 without a valid API key, 403 for a case owned by another partner and 404 if the case does not exist.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| financingCaseId | path | string | yes | GrenkeMessage identifier |
Code samples
curl -X GET 'https://sandbox.partner.miete24.com/api/financing-cases/{financingCaseId}/grenke-messages' \
-H 'X-Api-Key: YOUR_API_KEY'
const response = await fetch('https://sandbox.partner.miete24.com/api/financing-cases/{financingCaseId}/grenke-messages', {
method: 'GET',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
},
});
const data = await response.json();
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | GrenkeMessage collection | array<GrenkeMessage.GrenkeMessageResponse-grenke_message.read> |
| 403 | Forbidden | — |
| 404 | The financing case does not exist. | — |
POST/api/financing-cases/{financingCaseId}/grenke-messages
Write a message to GRENKE on a financing case
Adds a free-text message to GRENKE to a financing case, the same message the partner portal writes to the case history. The message is held on the case and goes out by e-mail in the daily bundled run once the case has a financing number, so transmittedAt stays null until then. GRENKE replies are not available through this API. This is not the message field of the financing case, which returns the free text of the quote request. On a case that ended (customer rejection, financier rejection, cancellation) the message is stored but nothing is sent unless the case is taken up again. On a case without a quote the message is stored as well; it goes out once the case has a financing number. Responds 201 with the stored message, 401 without a valid API key, 403 for a case owned by another partner, 404 if the case does not exist, 422 if the text is empty or longer than 5000 characters after trimming, and 429 above the rate limit of 60 messages per minute.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| financingCaseId | path | string | yes | GrenkeMessage identifier |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| text | string|null | yes | The message text; 1 to 5000 characters after trimming. |
Example request
{
"text": "Delivery is planned for the first week of December."
}
Code samples
curl -X POST 'https://sandbox.partner.miete24.com/api/financing-cases/{financingCaseId}/grenke-messages' \
-H 'X-Api-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"text":"Delivery is planned for the first week of December."}'
const response = await fetch('https://sandbox.partner.miete24.com/api/financing-cases/{financingCaseId}/grenke-messages', {
method: 'POST',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({"text":"Delivery is planned for the first week of December."}),
});
const data = await response.json();
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | GrenkeMessage resource created | GrenkeMessage.GrenkeMessageResponse-grenke_message.read |
| 400 | Invalid input | — |
| 403 | Forbidden | — |
| 404 | The financing case does not exist. | — |
| 422 | The text is empty or longer than 5000 characters after trimming. | — |
| 429 | Rate limit exceeded; see the Retry-After header. | — |