---
title: "Export bill invoice documents"
method: POST
path: "/v1/web/bill/invoice-export"
tags: ["Bill"]
---

# Export bill invoice documents

`POST /v1/web/bill/invoice-export`

Asynchronously archives the invoice documents of the matching bills into a zip and notifies the user with a download link when ready. Returns an `id` to correlate the notification.

## Request body

- object
  - `ids` string[]
  - `externalIds` string[]
  - `statuses` union[]
    - union
      - 'draft'
      - 'submitted'
      - 'returned'
      - 'paymentPending'
      - 'paymentInProgress'
      - 'paid'
      - 'paymentFailed'
      - 'manuallyCompleted'
      - 'deleted'
  - `vendorIds` string[]
  - `creatorUserIds` string[]
  - `invoiceIds` string[]
  - `partialText` string
  - `rutterIds` string[]
  - `accountingPlatformIds` string[]
  - `invoiceDate` object[]
    - `op` union, required
      - 'lt'
      - 'lte'
      - 'eq'
      - 'ne'
      - 'gte'
      - 'gt'
    - `value` string, date, required
  - `paymentDueDate` object[]
    - `op` union, required
      - 'lt'
      - 'lte'
      - 'eq'
      - 'ne'
      - 'gte'
      - 'gt'
    - `value` string, date, required
  - `paymentScheduledDate` object[]
    - `op` union, required
      - 'lt'
      - 'lte'
      - 'eq'
      - 'ne'
      - 'gte'
      - 'gt'
    - `value` string, date, required
  - `createdAt` object[]
    - `op` union, required
      - 'lt'
      - 'lte'
      - 'eq'
      - 'ne'
      - 'gte'
      - 'gt'
    - `value` string, date-time, required
  - `updatedAt` object[]
    - `op` union, required
      - 'lt'
      - 'lte'
      - 'eq'
      - 'ne'
      - 'gte'
      - 'gt'
    - `value` string, date-time, required
  - `submittedAt` object[]
    - `op` union, required
      - 'lt'
      - 'lte'
      - 'eq'
      - 'ne'
      - 'gte'
      - 'gt'
    - `value` string, date-time, required
  - `completedAt` object[]
    - `op` union, required
      - 'lt'
      - 'lte'
      - 'eq'
      - 'ne'
      - 'gte'
      - 'gt'
    - `value` string, date-time, required

## Response `202`

Default Response

- object
  - `id` string, required

## Other responses

- `400` — Default Response
- `401` — The access to this resource has been denied
- `403` — The access to this resource is forbidden
- `default` — Catch-all error response for any unexpected internal errors

---

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