---
title: "Confirm creation of a validated import"
method: POST
path: "/v1/invoices/imports/{id}/create"
tags: ["Invoice Imports"]
---

# Confirm creation of a validated import

`POST /v1/invoices/imports/{id}/create`

Enqueues the async create job for a `ready` batch and returns 202 with the batch now `creating`. `send_mode` defaults to `draft`; `create_and_send` also sends each created invoice. 409 when the batch is not ready.

## Path parameters

- `id` string, required

## Request body

- CreateImportRequestDTO
  - `send_mode` 'draft' | 'create_and_send'

## Response `202`

Accepted

- object — Standard response containing data and its metadata if any
  - `data` ImportResponseDTO
    - `created_at` string
    - `created_by` string
    - `created_rows` integer
    - `error_rows` integer
    - `failed_rows` integer
    - `id` string
    - `organization_id` string
    - `ready_rows` integer
    - `send_mode` 'draft' | 'create_and_send'
    - `source_filename` string
    - `status` 'pending' | 'validating' | 'ready' | 'creating' | 'completed' | 'failed'
    - `total_rows` integer
    - `updated_at` string
  - `has_more` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `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/revisions/c18f9a027b2c/schema)
