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

# Create Invoice



## OpenAPI

````yaml POST /projects/{project_id}/invoices
openapi: 3.0.0
info:
  title: Queue REST API
  description: >-
    # 🚀 Get started here


    This template guides you through CRUD operations (GET, POST, PUT, DELETE),
    variables, and tests.


    ## 🔖 **How to use this template**


    #### **Step 1: Send requests**


    RESTful APIs allow you to perform CRUD operations using the POST, GET, PUT,
    and DELETE HTTP methods.


    This collection contains each of these
    [request](https://learning.postman.com/docs/sending-requests/requests/)
    types. Open each request and click "Send" to see what happens.


    #### **Step 2: View responses**


    Observe the response tab for status code (200 OK), response time, and size.


    #### **Step 3: Send new Body data**


    Update or add new data in "Body" in the POST request. Typically, Body data
    is also used in PUT request.


    ```

    {
        "name": "Add your name in the body"
    }

     ```

    #### **Step 4: Update the variable**


    Variables enable you to store and reuse values in Postman. We have created a
    [variable](https://learning.postman.com/docs/sending-requests/variables/)
    called `base_url` with the sample request
    [https://postman-api-learner.glitch.me](https://postman-api-learner.glitch.me).
    Replace it with your API endpoint to customize this collection.


    #### **Step 5: Add tests in the "Scripts" tab**


    Adding tests to your requests can help you confirm that your API is working
    as expected. You can write test scripts in JavaScript and view the output in
    the "Test Results" tab.


    <img
    src="https://content.pstmn.io/fa30ea0a-373d-4545-a668-e7b283cca343/aW1hZ2UucG5n"
    alt="" height="1530" width="2162">


    ## 💪 Pro tips


    - Use folders to group related requests and organize the collection.
        
    - Add more
    [scripts](https://learning.postman.com/docs/writing-scripts/intro-to-scripts/)
    to verify if the API works as expected and execute workflows.
        

    ## 💡Related templates


    [API testing
    basics](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=e9a37a28-055b-49cd-8c7e-97494a21eb54&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719)  

    [API
    documentation](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=e9c28f47-1253-44af-a2f3-20dce4da1f18&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719)  

    [Authorization
    methods](https://go.postman.co/redirect/workspace?type=personal&collectionTemplateId=31a9a6ed-4cdf-4ced-984c-d12c9aec1c27&sourceTemplateId=ddb19591-3097-41cf-82af-c84273e56719)
  version: 1.0.0
servers:
  - url: https://app.usequeue.com/api/v1
security: []
tags:
  - name: Projects
  - name: Tasks
  - name: Columns
  - name: Task Comments
  - name: Invoices
  - name: Task Credits
paths:
  /projects/{project_id}/invoices:
    post:
      tags:
        - Invoices
      summary: New Invoice
      parameters:
        - name: bill_to
          in: query
          schema:
            type: string
          example: masud@yopmail.com
        - name: address
          in: query
          schema:
            type: string
          example: '123 fake st. blvd '
        - name: tax
          in: query
          schema:
            type: number
          example: '7.5'
        - name: payment_terms
          in: query
          schema:
            type: string
          example: test 123
        - name: due
          in: query
          schema:
            type: string
          example: '2025-07-23'
        - name: payment_method
          in: query
          schema:
            type: string
          example: wire
        - name: invoice_number
          in: query
          schema:
            type: integer
          example: '1234'
        - name: currency
          in: query
          schema:
            type: string
          example: usd
        - name: credit_type
          in: query
          schema:
            type: boolean
          example: 'false'
        - name: project_id
          in: path
          schema:
            type: string
          required: true
          example: 026da5d1
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                invoice_items:
                  - token: b4bf704d-ef6e-4c40-856b-d5ace731698bxx
                    amount: 100
                    interval: null
                    quantity: 1
                    frequency: null
                    description: Item 1
                  - token: f9fef62c-0fe9-4117-a96a-96502f71c4f1xx
                    amount: 200
                    interval: month
                    quantity: 1
                    frequency: null
                    description: Item 2
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  invoice:
                    $ref: '#/components/schemas/Invoice'
                    type: object
      security:
        - bearerAuth: []
components:
  schemas:
    Invoice:
      type: object
      properties:
        id:
          type: string
          example: abc123
        name:
          type: string
          example: Invoice May 2025
        amount:
          type: number
          example: 1500
        bill_to:
          type: string
          example: masud@yopmail.com
        bill_from:
          type: string
          example: admin@queue.com
        address:
          type: string
          example: 123 fake st. blvd
        tax:
          type: number
          example: 7.5
        payment_terms:
          type: string
          example: Net 30
        due:
          type: string
          format: date
          example: '2025-08-15'
        issued:
          type: string
          format: date
          example: '2025-07-25'
        payment_method:
          type: string
          example: wire
        invoice_number:
          type: string
          example: INV-1234
        credit_type:
          type: string
          example: none
        recurring_invoice_items:
          type: array
          items:
            type: object
        invoice_items:
          type: array
          items:
            type: object
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        user:
          type: object
          properties:
            username:
              type: string
              example: Masud
            email:
              type: string
              example: masud@yopmail.com
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````