We are currently encountering an issue with the Square Payment API in Australia.
[
{
"code": "BAD_REQUEST",
"detail": "total_money amount of 2468 is not divisible by AUD currency base cash unit.",
"category": "INVALID_REQUEST_ERROR"
}
]
Could you please investigate this and advise us on how we can resolve the issue?
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
The error message you’re encountering indicates that the total_money amount specified in your request is not divisible by the base cash unit for the Australian Dollar (AUD). In Australia, cash payments must be specified in increments of $0.05. This means that the amount you are trying to process, 2468 (which represents $24.68 AUD), is not valid for a cash payment because it is not a multiple of 5 cents.
To resolve this issue, ensure that the total_money amount in your request is divisible by 5 when dealing with cash payments in AUD. For example, you could adjust the amount to 2470 (representing $24.70 AUD) or 2465 (representing $24.65 AUD), both of which are valid increments for cash payments in Australia.
The customer placed the order for $24.68, but we can’t complete the payment using $24.65 or $24.70—it throws an error saying the total amount doesn’t match.
Can you please suggest any workaround for this issue?
Hey @Mahesh! This should only apply to payments of type CASH. Is the error you’re getting for a mismatch between the order object and the amount in the CreatePayment? Do you mind sharing your order ID?