Matt Bradley Posted March 24, 2022 Share Posted March 24, 2022 (edited) I have a customer with a balance on account from previous overpayments using CUSTOMER_PAYMENT payments via the API. When I attempt to issue a partial return of money using a CUSTOMER_REFUND, the payment fails with the error "There must be at least one item allocated." I have also tried allocating the CUSTOMER_REFUND against the previous CUSTOMER_PAYMENT as follows: ( [transaction_type_id] => CUSTOMER_REFUND [contact_id] => 6dfe12a7f87142819ec192df13e8b834 [bank_account_id] => 82c245dbfef049229734f5aeb289cd3e [date] => 2022-03-22T00:00:00+00:00 [total_amount] => 500 [reference] => DA29460 [paymentmethod_id] => CASH [allocated_artifacts] => Array (  => Array ( [artefact_id] => 9f211ddf8b4e409dacaa3a7b2b85560c <-- ID of the previous CUSTOMER_PAYMENT [amount] => 500.00 ) ) ) This also fails with the error "There must be at least one item allocated." Is there something wrong with the "allocated_artifacts" node on the API? Whatever I try, this data appears to be ignored! All suggestions welcome! Edited March 24, 2022 by Matt Bradley Link to comment Share on other sites More sharing options...
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now