List invoice copy addresses
GET /api/v2/billing/payment-methods/contacts
List the extra e-mail addresses that get copies of the account’s invoice e-mails. They only receive e-mail. They get no access to the account. When billing notifications are turned off for the account, invoice e-mails go to these addresses only.
Authentication: An API key with the scope read:billing. About keys and scopes
Example
curl "https://cloud.hostup.se/api/v2/billing/payment-methods/contacts" \ -H "Authorization: Bearer $HOSTUP_API_KEY"Responses
200 The invoice copy addresses, oldest first.
{ "contacts": [ { "id": "42", "email": "invoices@example.com", "description": "Accounts payable" } ]}Response fields
contactsarray of objectidstringThe billing contact ID.
emailstringdescriptionstring or nullErrors
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. |