Fix records that failed to import
PUT
/imports/{id}/fix
const url = 'http://localhost:8000/api/v1/imports/1/fix';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"id":1,"amount":1,"type":"example","party":"example","wallet":"example","category":"example","description":"example","date":"2026-04-15","reason":"example"}]'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" } ]'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
integer
Id of the import instance
Request Body required
Section titled “Request Body required ” 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" }]Responses
Section titled “ Responses ”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