/api/v2/account/invoice-lead How many days before the due date the account's renewal invoices are created and sent.
The value applies to every service and domain renewal on the account and takes effect from the next renewal; the due date itself does not change.
Standard (null) means each product's own lead: 30 days for web hosting and domains, 14 for VPS.
Monthly-only hosting customers without domains get 14 days by default; a customer's own choice is never changed by that default.
Read actions.canChange before offering a change.
Changing it requires account-owner access or an explicitly scoped API key.
After a 503, reload before retrying.
read:billing
Authenticate with an API key in the Authorization: Bearer <token> header.
Authorization Bearer <token> Accept application/json days integer · nullable · enum required Days before the due date renewal invoices are created, or null when each product's own lead applies (30 for web hosting and domains, 14 for VPS).
7 14 30 source string · nullable · enum required Who set the current value.
default customer staff available boolean required actions object required actions.canChange object required actions.canChange.allowed boolean required actions.canChange.reason string · nullable required Nullable: may be null when not applicable.
type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object No response body
type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object Retry-After seconds plus X-RateLimit-* headers. 10 fields type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object No response body
https://cloud.hostup.se/api/v2/account/invoice-lead curl -X GET "https://cloud.hostup.se/api/v2/account/invoice-lead" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" // Customer chose 30 days
{
"days": 30,
"source": "customer",
"available": true,
"actions": {
"canChange": {
"allowed": true,
"reason": null
}
}
}
// Standard product lead
{
"days": null,
"source": null,
"available": true,
"actions": {
"canChange": {
"allowed": true,
"reason": null
}
}
}
// Read by a non-owner user
{
"days": 14,
"source": "default",
"available": true,
"actions": {
"canChange": {
"allowed": false,
"reason": "Account-owner access is required to change invoice timing."
}
}
}