> ## Documentation Index
> Fetch the complete documentation index at: https://docs.outseta.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Charge an unpaid invoice now.

> Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected.
            
Charges the outstanding amount of the invoice to the payment method on file for the
account. Without this call, the scheduled payment job charges an unpaid invoice no
sooner than 6 hours after its invoice date.
            
When the payment succeeds, the invoice status changes to Paid. For a payment method
that settles later, such as a bank debit, the status changes to Processing.
            
The request is rejected when the invoice is not unpaid, has no outstanding amount,
is already being processed, or the account has no payment method or is Expired.
            
When the payment is declined, the request returns a validation error. The decline
counts as a failed payment attempt for the account, the same as a failed renewal.
After the third failed attempt, the account moves to Past Due.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/billing/payments/{invoiceUid}/processpayment
openapi: 3.0.0
info:
  title: Outseta API
  description: >-
    Outseta REST API. See the [API
    overview](https://docs.outseta.com/api-reference/overview) for
    authentication, field selection, pagination, filtering, errors, rate limits
    and webhooks.
  version: v1
servers:
  - url: https://{subdomain}.outseta.com
    description: Your Outseta account
    variables:
      subdomain:
        default: your-subdomain
        description: >-
          Your Outseta account subdomain — the part before ".outseta.com" in
          your admin URL.
security: []
paths:
  /api/v1/billing/payments/{invoiceUid}/processpayment:
    post:
      tags:
        - Billing (v2)
      summary: Charge an unpaid invoice now.
      description: >-
        Applies to Outseta billing (v2) only. With Stripe Billing (v3) the
        request is rejected.
                    
        Charges the outstanding amount of the invoice to the payment method on
        file for the

        account. Without this call, the scheduled payment job charges an unpaid
        invoice no

        sooner than 6 hours after its invoice date.
                    
        When the payment succeeds, the invoice status changes to Paid. For a
        payment method

        that settles later, such as a bank debit, the status changes to
        Processing.
                    
        The request is rejected when the invoice is not unpaid, has no
        outstanding amount,

        is already being processed, or the account has no payment method or is
        Expired.
                    
        When the payment is declined, the request returns a validation error.
        The decline

        counts as a failed payment attempt for the account, the same as a failed
        renewal.

        After the third failed attempt, the account moves to Past Due.
      operationId: Payment_ProcessOutstandingInvoice
      parameters:
        - name: invoiceUid
          in: path
          required: true
          description: The invoice's unique identifier
          schema:
            type: string
            nullable: true
          x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
                example: string
        '400':
          description: Invalid Uid format
        '401':
          description: Unauthorized
        '404':
          description: Entity not found
      security:
        - Bearer: []
        - ApiKey: []
components:
  securitySchemes:
    Bearer:
      type: http
      description: Enter your access token (OAuth / JWT).
      scheme: bearer
      bearerFormat: JWT
    ApiKey:
      type: apiKey
      description: 'Enter: Outseta {api_key}:{api_secret}'
      name: Authorization
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.