Hi,
Has anyone else found that sometimes the API response with a random category for some bank_transaction_explanations
?
I’ve just added a Billing for Legal and Professional Fees but the API somehow think it should be a Trade Creditors instead.
curl --location --request GET 'https://api.sandbox.freeagent.com/v2/bank_transaction_explanations?bank_account=https://api.sandbox.freeagent.com/v2/bank_accounts/5925&from_date=2022-01-01&to_date=2022-12-31' --header 'Authorization: Bearer XXXXXX'
{
"bank_transaction_explanations": [
...,
{
"bank_account": "https://api.sandbox.freeagent.com/v2/bank_accounts/5925",
"category": "https://api.sandbox.freeagent.com/v2/categories/796",
"dated_on": "2022-03-16",
"description": "Bill payment against 01123 (Thomson Ltd)",
"transaction_description": "///£356.00",
"gross_value": "-356.0",
"foreign_currency_value": "0.0",
"transfer_value": "356.0",
"type": "Bill Payment",
"is_money_in": false,
"is_money_out": true,
"is_money_paid_to_user": false,
"paid_bill": "https://api.sandbox.freeagent.com/v2/bills/104670",
"url": "https://api.sandbox.freeagent.com/v2/bank_transaction_explanations/583610",
"bank_transaction": "https://api.sandbox.freeagent.com/v2/bank_transactions/712085",
"updated_at": "2022-03-16T17:25:04.000Z",
"detail": "Legal and Professional Fees ",
"is_deletable": true,
"is_locked": false,
"marked_for_review": false,
"has_pending_operation": false
}
]
}
curl --location --request GET 'https://api.sandbox.freeagent.com/v2/categories/796' --header 'Authorization: Bearer XXXX'
{
"general_categories": {
"url": "https://api.sandbox.freeagent.com/v2/categories/796",
"description": "Trade Creditors",
"nominal_code": "796",
"tax_reporting_name": "Creditors"
}
}
Am I missing something here? I can’t find any reason why FreeAgent itself report the correct category but the API have decided to change the category.
Any help is appreciated.