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
idstringrequiredID of the address, from
GET /api/v2/billing/payment-methods/contacts.Example
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.
{ "deleted": true, "id": "42"}Response fields
deletedbooleanidstringErrors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | Invalid request. The response body is an RFC 7807 Problem Details document. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | Not found. The resource does not exist or is not owned by the caller. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |