---
title: "Create an export job"
method: POST
path: "/data_exports"
tags: ["Data export"]
---

# Create an export job

`POST /data_exports`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/data_exports`
- Auth: HTTP bearer

Request the export of payable and receivable documents with the specified statuses.

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Request body

- object
  - `date_from` string, date, required
  - `date_to` string, date, required
  - `format` 'csv' | 'pdf' | 'csv_xero', required
  - `objects` ExportObjectSchema[], required
    - union
      - object
        - `name` 'payable', required: Discriminator value: payable
        - `statuses` PayableStateEnum[], required
      - object
        - `name` 'receivable', required: Discriminator value: receivable
        - `statuses` ReceivablesStatusEnum[], required

## Response `200`

Successful Response

- CreateExportTaskResponseSchema
  - `id` string, uuid, required

## Other responses

- `400`: Bad Request
- `401`: The `Authorization` header is missing or contains an invalid or expired access token. See [Authentication](https://docs.monite.com/api/concepts/authentication) to learn how to authenticate API calls.
- `403`: The specified access token does not have permissions to perform this operation.
- `404`: Not Found
- `409`: Possible responses: `Not all statuses are available: {missed_statuses}. Available ones: {object_statuses},`{missed_objects} are not allowed. Available only {objects}`
- `422`: Validation Error
- `429`: API rate limit has been exceeded. Check the response headers for the rate limit information.

---

[API](https://skmtc.dev/monite/apis/monite-2.md) - [All operations](https://skmtc.dev/monite/apis/monite-2/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-2/revisions/4299ccf95edb?raw)
