Jump to content

ContactPayments API: Erroneous "overpayment" error


 Share

Recommended Posts

Usually, this work fine, but for some reason, the API is refusing to pay one particular invoice, claiming that we are attempting to overpay the invoice.

Request:

[contact_payment] =>
(
	[transaction_type_id] => CUSTOMER_RECEIPT
	[contact_id] => 934b56e8d85e43efbf5815629eaac44f
	[bank_account_id] => 4a7ee3e64df74deab20633d2e4d9af64
	[date] => 2022-10-11T00:00:00+01:00
	[total_amount] => 1497.36
	[reference] => DA60235
	[payment_method_id] => CREDIT_DEBIT
	[allocated_artefacts] =>
		(
			[0] => Array
				(
					[artefact_id] => 23c914ddacc641f4b08d629e623abbab
					[amount] => 1497.36
				)

		)

)

Response:

[$severity] => error
[$dataCode] => RecordInvalid
[$message] => You cannot overpay invoices.
[$source] => base
[friendlyErrorMessage] => You cannot overpay invoices.

Except that the invoice amount is 1497.36, and it is entirely unpaid.

Screenshot 2022-10-27 at 10.18.01.png

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...