Skip to content

Fix records that failed to import

PUT
/imports/{id}/fix
curl --request PUT \
--url http://localhost:8000/api/v1/imports/1/fix \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[ { "id": 1, "amount": 1, "type": "example", "party": "example", "wallet": "example", "category": "example", "description": "example", "date": "2026-04-15", "reason": "example" } ]'
id
required
integer

Id of the import instance

Media type application/json
Array<object>
object
id

ID of the failed import

integer
amount

The amount of the transaction

number format: float
type

The type of the transaction

string
party

The party of the transaction

string
wallet

The wallet of the transaction

string
category

The category of the transaction

string
description

The description of the transaction

string
date

The date of the transaction

string format: date
reason

The reason why the transaction failed

string
Example generated
[
{
"id": 1,
"amount": 1,
"type": "example",
"party": "example",
"wallet": "example",
"category": "example",
"description": "example",
"date": "2026-04-15",
"reason": "example"
}
]

Successful response

Some imports could not be fixed

Media type application/json
Array<object>
object
id

ID of the failed import

integer
amount

The amount of the transaction

number format: float
type

The type of the transaction

string
party

The party of the transaction

string
wallet

The wallet of the transaction

string
category

The category of the transaction

string
description

The description of the transaction

string
date

The date of the transaction

string format: date
reason

The reason why the transaction failed

string
Example generated
[
{
"id": 1,
"amount": 1,
"type": "example",
"party": "example",
"wallet": "example",
"category": "example",
"description": "example",
"date": "2026-04-15",
"reason": "example"
}
]

Unauthorized

Server error