question

webforte avatar image
webforte asked David Marginian Deactivated commented

Order Create Api Issue

Hi

1. 1642506965144.png

2.1642506998074.png
In first screenshot we sent 945 amount and when order was created showing 944 in response.
can you please check why its not showing correct amount.

Thanks

ecommerce
1642506965144.png (45.9 KiB)
1642506998074.png (63.9 KiB)
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

I checked our logs and when you create the order you are passing in an amount of 944.9999999999999 (not 945 as you have posted above) which doesn't make any sense, amounts in Clover are cents, you can't have a part of a cent.

These are production orders, you shouldn't be experimenting with the API in production. If you need to test things you need to test in sandbox.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

webforte avatar image webforte commented ·
But In screenshot you can check i have sent 945 mannually. but in response its revert me 944
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ webforte commented ·

I am not sure what that screenshot is from. The order id from the second screenshot exists in production and the request that you passed when you created that order has amount set to 944.9999999999999.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community