---
title: "Create a draft invoice"
method: POST
path: "/v1/invoices"
tags: ["Invoices"]
---

# Create a draft invoice

`POST /v1/invoices`

Creates a new sales invoice in `draft` for the caller's organization. Line items and payment methods are optional at create (a partial draft is valid); the at-least-one-line-item rule is enforced at send time.

## Request body

- CreateInvoiceRequestDTO
  - `customer_email` string, required
  - `customer_id` string
  - `customer_name` string, required
  - `customer_phone` string
  - `customer_tin` string
  - `discount` integer
  - `due_at` string, required
  - `footer_bg_color` string
  - `footer_image_url` string
  - `header_bg_color` string
  - `header_image_url` string
  - `internal_notes` string
  - `issue_at` string, required
  - `line_items` LineItemRequestDTO[] — line_items / payment_methods are optional at create so a draft can be saved with partial data (e.g. from step 1 of the create wizard, before line items are added). The "must have at least one line item" rule is enforced at send time instead (see usecase.Send).
    - `amount` integer, required
    - `description` string, required
    - `quantity` integer, required
  - `notes` string
  - `number` string
  - `pass_on_fees` boolean
  - `payment_methods` string[]
  - `reminders_enabled` boolean — Whether the automated payment-reminder scheduler may email the customer about this invoice. Defaults to true when omitted.

## Response `201`

Created

- object — Standard response containing data and its metadata if any
  - `data` InvoiceResponseDTO
    - `accent_color` string
    - `amount_due` integer
    - `amount_paid` integer
    - `checkout_session_id` string
    - `created_at` string
    - `currency` string
    - `customer_email` string
    - `customer_id` string
    - `customer_name` string
    - `customer_phone` string
    - `customer_tin` string
    - `discount` integer
    - `due_at` string
    - `footer_bg_color` string
    - `footer_image_url` string
    - `header_bg_color` string
    - `header_image_url` string
    - `hosted_slug` string
    - `hosted_url` string
    - `id` string
    - `internal_notes` string
    - `issue_at` string
    - `line_items` LineItemResponseDTO[]
      - `amount` integer
      - `description` string
      - `id` string
      - `line_total` integer
      - `quantity` integer
      - `sort_order` integer
    - `logo_url` string
    - `notes` string
    - `number` string
    - `organization_id` string
    - `paid_at` string
    - `pass_on_fees` boolean
    - `payment_methods` string[]
    - `reminders_enabled` boolean — Whether the automated payment-reminder scheduler may email the customer about this invoice. Merchant-only; redacted (null) on the public by-slug payload.
    - `sent_at` string
    - `status` 'draft' | 'open' | 'paid' | 'uncollectible' | 'void'
    - `subtotal` integer
    - `total` integer
    - `type` 'sales_invoice' | 'purchase_invoice' | 'official_receipt'
    - `updated_at` string
    - `voided_at` string
  - `has_more` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/paymongo/apis/paymongo-api.md) · [All operations](https://skmtc.net/paymongo/apis/paymongo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymongo/paymongo-api/versions/c18f9a027b2c/schema)
