- Adjust configuration in
config.yaml
- Dump the table and user to local database with
dump.sql
- Run the API with
go run main.go
- Can use
API Postman.json
to import related API to Postman
POST /auth/login
{
"username": "guest",
"password": "123456"
}
{
"token": "<token>"
}
For login can use username guest
and password 123456
after dumping data process done.
POST /reconciliation
Authorization: Bearer <token>
Field | Type |
---|---|
transaction | File (.csv) |
bank_statement | File (.csv) |
start_date | Text (YYYY-mm-dd) |
end_date | Text (YYYY-mm-dd) |
{
"transactions_processed": 10,
"transactions_matched": 9,
"transactions_unmatch": {
"transactions": [
{
"trxId": "BNI009",
"amount": 240000,
"type": "CREDIT",
"transaction_time": "2024-09-02T17:00:00Z"
}
],
"bank_statements": [
{
"unique_identifier": "BNI005",
"amount": 240000,
"transaction_date": "2024-09-02T00:00:00Z"
}
]
},
"total_discrepancies": 1710000
}
For format file transaction and bank_statement can use file transaction.csv
and bank_statement.csv
in this project folder