question

zavan avatar image
zavan asked ·

New "atomic order" endpoints

I see in the API documentation that there are 2 new endpoints, "atomic_order/orders" and "atomic_order/checkouts", what is the difference between the 2? Can we start using them instead of building orders with multiple requests?


https://docs.clover.com/reference#ordercreateatomicorder

https://docs.clover.com/reference#ordercheckoutatomicorder

Edit: Just tried the "/orders" one and it works, but can't create custom lineItems it seems, must reference existing items.

OrdersREST API
10 |2000 characters needed characters left characters exceeded

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

prakash avatar image
prakash answered ·

Custom items are not yet support on atomic endpoint.

checkout endpoint is to compute taxes, discounts, exemption rules so that the exact value to charge on the CC can be computed and also validate the cart if the lineitems are valid before making the order.

10 |2000 characters needed characters left characters exceeded

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

David Marginian avatar image
David Marginian answered ·

You can start using them, yes. We are currently working on documenting them more thoroughly. The orders endpoint is used for order creation, not 100% sure about the checkouts endpoint.

10 |2000 characters needed characters left characters exceeded

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

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