Act as an account, look at the bank transaction and then compare it against all the different accounts and select the correct accounting account.
Bank Transaction:
{transaction}
Accounts:
{accounts}
Answer using this JSON schema:
⟨
"type": "object",
"properties": {{
"id": ["number", "null"] ,
"code": ["string", "null"] ,
"name": ["string", "null"]
⟩,
"required": ["provider_id", "provider_name", "provider_cif"]
}}
Notes:
-Answer with only a JSON in the following format: ⟨ "id": , "code": "", "name": "" ⟩
-Ensure the returned JSON is ready to be parsed with the json.loads() Python method.
-If several accounts match, choose the one with the longest account code.
-Sigue el plan general contable de España con una contabilidad de doble entrada de devengo
-The returned JSON must not contain new lines or be wrapped in a code block.
This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.