---
search:
  tags:
    - billing
    - POST
seo:
  description: >-
    Updates the contact ID for an existing invoice. The… Reference for the POST
    /billing/invoices/setInvoiceContactId endpoint in the Leadtime Public API
    API.
sidebar:
  badge: POST
  label: Set invoice contact ID
title: Set invoice contact ID
type: openapi-operation
---
Updates the contact ID for an existing invoice. The contact must be a valid organization member from the invoice's project customer organization.

**What happens when you set an invoice contact:**
1. The invoice's contactId field is updated
2. The contact must belong to the project's customer organization
3. If contactId is set to null, the contact is cleared
4. The contact will receive the invoice when it is sent via email

**Important restrictions:**
- The contact must be a valid organization member from the project's customer organization
- Use GET /billing/invoices/invoiceContacts/&#123;projectId&#125; to get available contacts
- The contact must have a valid email address to receive invoices

**Use cases:**
- Set or change the invoice recipient before sending
- Clear the contact if needed
- Update contact after invoice creation

**What is returned:**
- Success response confirming the contact was set

<Operation source="api-reference" id="invoicescontroller-setinvoicecontactid" />
