Saves the lines (new lines are marked as added by hand, lines left out are removed) and the statement total, then rebuilds the scan's amounts and allocation from the lines.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PUT
/api-v1/card-statements/scan/{scanId}
curl \
--request PUT 'https://wyzio.app/api-v1/card-statements/scan/{scanId}' \
--header "Content-Type: application/json" \
--data '{
"statementTotal": 42.0,
"lines": [
{
"id": 42,
"position": 42,
"transactionDate": "2026-05-04T09:42:00Z",
"bookingDate": "2026-05-04T09:42:00Z",
"merchant": "string",
"description": "string",
"amount": 42.0,
"originalCurrency": "string",
"originalAmount": 42.0,
"cardLastDigits": "string",
"companyCardId": 42,
"lineType": "PURCHASE",
"status": "AWAITING_EXPENSE",
"chartOfAccountsId": 42,
"departmentId": 42,
"vatType": "NO_VAT",
"vatTypeCodeId": 42,
"vatRateId": 42
}
]
}'
Request examples
# Headers
# Payload
{
"statementTotal": 42.0,
"lines": [
{
"id": 42,
"position": 42,
"transactionDate": "2026-05-04T09:42:00Z",
"bookingDate": "2026-05-04T09:42:00Z",
"merchant": "string",
"description": "string",
"amount": 42.0,
"originalCurrency": "string",
"originalAmount": 42.0,
"cardLastDigits": "string",
"companyCardId": 42,
"lineType": "PURCHASE",
"status": "AWAITING_EXPENSE",
"chartOfAccountsId": 42,
"departmentId": 42,
"vatType": "NO_VAT",
"vatTypeCodeId": 42,
"vatRateId": 42
}
]
}
Response examples (200)
{
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}