I am having an issue explaining bank transactions through the API. This is what I am sending
array ( 'bank_transaction_explanations' => array ( 'bank_transaction' => 'https://api.sandbox.freeagent.com/v2/bank_transactions/000000', 'dated_on' => '2021-05-09', 'gross_value' => 191.98, 'paid_invoice' => 'https://api.sandbox.freeagent.com/v2/invoices/000000', ), )
And I get a response of
array ( 'errors' => array ( 'error' => array ( 'message' => 'dated_on is not valid', ), ), )
The date format looks correct to me according to the documentation. Is it because I am trying to explain a transaction with todays date? The bank transaction was created manually, also dated today, in a holding bank account.
Any help would be appreciated.