# When a negative Payment is attached to an Invoice, trigger Process Automation.

When the payment being attached to an Invoice is negative, you can optionally call this trigger to see if any process automation is configured to notify internal team members.

Endpoint: POST /billing-negative-payment-process-automation/{invoiceKey}
Version: v1
Security: apiKeyAuth, bearerAuth

## Security:

  - `apiKeyAuth` (unknown)
    apiKey in header x-api-key

  - `bearerAuth` (unknown)
    http bearer JWT

## Path parameters:

  - `invoiceKey` (integer, required)
    Invoice Key

## Header parameters:

  - `vbasoftware-database` (string, required)
    Target database

## Response 202:

  - `202` (unknown)
    Accepted for processing

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 403:

  - `403` (unknown)
    Forbidden. The x-api-key header is missing or not valid. The API gateway sends this response, not VBAPI, so the body is not the VBAPI envelope; see Errors and troubleshooting.

## Response 429:

  - `429` (unknown)
    Too many requests. The limit is 25 requests per second sustained, with bursts up to 50, per API key. Wait and retry with exponential backoff and jitter.

