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

# Invoice

> An invoice represents an itemized bill sent by a company to a customer for a specific product and plan, tracking the amount owed, due date, and payment status.

<ResponseExample>
  ```json Example theme={null}
  {
  	"created_at": "2023-12-01T05:00:00.401Z",
  	"current_plan": {
  		"currency": "usd",
  		"formatted_price": "$10.00",
  		"id": "plan_xxxxxxxxxxxxx"
  	},
  	"due_date": "2023-12-01T05:00:00.401Z",
  	"email_address": "customer@example.com",
  	"fetch_invoice_token": "eyJhbGciOiJIUzI1NiJ9...",
  	"id": "inv_xxxxxxxxxxxxxx",
  	"number": "#0001",
  	"status": "draft",
  	"user": {
  		"id": "user_xxxxxxxxxxxxx",
  		"name": "John Doe",
  		"username": "johndoe42"
  	}
  }
  ```
</ResponseExample>

<ResponseField name="created_at" type="string<date-time>" required>
  The datetime the invoice was created.

  Example: `2023-12-01T05:00:00.401Z`
</ResponseField>

<ResponseField name="current_plan" type="object" required>
  The plan that this invoice charges for.

  <Expandable title="child attributes">
    <ResponseField name="currency" type="Currencies" required>
      The currency used for all prices on this plan (e.g., 'usd', 'eur'). All monetary amounts on the plan are denominated in this currency.

      Available options: `usd`, `sgd`, `inr`, `aud`, `brl`, `cad`, `dkk`, `eur`, `nok`, `gbp`, `sek`, `chf`, `hkd`, `huf`, `jpy`, `mxn`, `myr`, `pln`, `czk`, `nzd`, `aed`, `eth`, `ape`, `cop`, `ron`, `thb`, `bgn`, `idr`, `dop`, `php`, `try`, `krw`, `twd`, `vnd`, `pkr`, `clp`, `uyu`, `ars`, `zar`, `dzd`, `tnd`, `mad`, `kes`, `kwd`, `jod`, `all`, `xcd`, `amd`, `bsd`, `bhd`, `bob`, `bam`, `khr`, `crc`, `xof`, `egp`, `etb`, `gmd`, `ghs`, `gtq`, `gyd`, `ils`, `jmd`, `mop`, `mga`, `mur`, `mdl`, `mnt`, `nad`, `ngn`, `mkd`, `omr`, `pyg`, `pen`, `qar`, `rwf`, `sar`, `rsd`, `lkr`, `tzs`, `ttd`, `uzs`, `rub`, `btc`, `cny`, `usdt`, `kzt`, `awg`, `whop_usd`, `xau`
    </ResponseField>

    <ResponseField name="formatted_price" type="string" required>
      The formatted price (including currency) for the plan.

      Example: `$10.00`
    </ResponseField>

    <ResponseField name="id" type="string" required>
      The unique identifier for the plan.

      Example: `plan_xxxxxxxxxxxxx`
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="due_date" type="string<date-time> | null" required>
  The deadline by which payment is expected. Null if the invoice is collected automatically.

  Example: `2023-12-01T05:00:00.401Z`
</ResponseField>

<ResponseField name="email_address" type="string | null" required>
  The email address of the customer this invoice is addressed to. Null if no email is on file.

  Example: `customer@example.com`
</ResponseField>

<ResponseField name="fetch_invoice_token" type="string" required>
  A signed token that allows fetching invoice data publicly without authentication.

  Example: `eyJhbGciOiJIUzI1NiJ9...`
</ResponseField>

<ResponseField name="id" type="string" required>
  The unique identifier for the invoice.

  Example: `inv_xxxxxxxxxxxxxx`
</ResponseField>

<ResponseField name="number" type="string" required>
  The sequential invoice number for display purposes.

  Example: `#0001`
</ResponseField>

<ResponseField name="status" type="InvoiceStatuses" required>
  The current payment status of the invoice, such as draft, open, paid, or void.

  Available options: `draft`, `open`, `paid`, `past_due`, `uncollectible`, `void`
</ResponseField>

<ResponseField name="user" type="object | null" required>
  The user this invoice is addressed to. Null if the user account has been removed.

  <Expandable title="child attributes">
    <ResponseField name="id" type="string" required>
      The unique identifier for the user.

      Example: `user_xxxxxxxxxxxxx`
    </ResponseField>

    <ResponseField name="name" type="string | null" required>
      The user's display name shown on their public profile.

      Example: `John Doe`
    </ResponseField>

    <ResponseField name="username" type="string" required>
      The user's unique username shown on their public profile.

      Example: `johndoe42`
    </ResponseField>
  </Expandable>
</ResponseField>
