Skip to content

invalid_charge_consent_request

Invalid request. HTTP status 400.

The body of `POST /api/v2/vps/{id}/mail-relay/charge-consent` was missing or unreadable, or `enabled` was not a boolean.

What to do

Send a JSON body with enabled set to true or false. A string such as “true” is refused.

What the message says

  • The charge consent request must include enabled as true or false.

Example

Response 400
{
"type": "https://developer.hostup.se/errors/invalid_charge_consent_request",
"title": "Invalid request",
"status": 400,
"detail": "The charge consent request must include enabled as true or false.",
"code": "invalid_charge_consent_request",
"requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"
}

Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.

Endpoints that return it