---
title: "Fix one import row inline"
method: PATCH
path: "/v1/invoices/imports/{id}/rows/{row_id}"
tags: ["Invoice Imports"]
---

# Fix one import row inline

`PATCH /v1/invoices/imports/{id}/rows/{row_id}`

Merges the sent canonical fields onto the row's mapped data, re-validates it, and returns the updated row plus the new batch tally. 409 once the import has left review (the worker is already creating invoices).

## Path parameters

- `id` string, required
- `row_id` string, required

## Request body

- EditRowRequestDTO
  - `fields` object, required

## Response `200`

OK

- object — Standard response containing data and its metadata if any
  - `data` RowEditResponseDTO
    - `error_rows` integer
    - `ready_rows` integer
    - `row` ImportRowResponseDTO
      - `error_reason` string
      - `id` string
      - `mapped_data` object
      - `raw_data` object
      - `row_number` integer
      - `status` 'pending' | 'valid' | 'error'
    - `status` 'pending' | 'validating' | 'ready' | 'creating' | 'completed' | 'failed'
    - `total_rows` integer
  - `has_more` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

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