Skip to content

Remove an invoice copy address

DELETE /api/v2/billing/payment-methods/contacts

Stop sending invoice copies to one address. Send the address’s id from GET /api/v2/billing/payment-methods/contacts in the body. An unknown id returns 404 not_found. The response confirms the removal with the id.

Authentication: An API key with the scope write:billing. About keys and scopes

Request

Body

idstringrequired
ID of the address, from GET /api/v2/billing/payment-methods/contacts.

Example

DELETE /api/v2/billing/payment-methods/contacts
curl -X DELETE "https://cloud.hostup.se/api/v2/billing/payment-methods/contacts" \
-H "Authorization: Bearer $HOSTUP_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "42"
}'

Responses

200 The address is removed.

Response 200
{
"deleted": true,
"id": "42"
}
Response fields
deletedboolean
idstring

Errors

Errors are Problem Details with a stable code. Branch on the code, not on the text.

400Invalid request. The response body is an RFC 7807 Problem Details document.
401Unauthorized. Authentication is required.
403Forbidden. The caller lacks a required scope or does not own the resource.
404Not found. The resource does not exist or is not owned by the caller.
429Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers.
500Internal error. Retry later or contact support if the issue persists.