question

thedangler avatar image
thedangler asked David Marginian Deactivated edited

Orders Invoices Returns Oh My!

Hello,

Working with the ecommerce API and I'm wondering how order relate to invoices in the API.

There are two API endpoints for Orders, how are they different?

Can I create an invoice with multiple orders or one order with multiple items?

Also , I do not see any docs on how to void a transaction. I see a refund endpoint. But it doesn't say if it also does a void if its same day.

Please help.


clover developer community
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 edited

When you create an invoice via https://docs.clover.com/reference/createforneworder a new order is created behind the scenes. We do not currently have an API to associate an existing order with an invoice.

I am not sure what "endpoints for Orders" you are referring to. If you are talking about order creation, there are, unfortunately 3 APIs for doing that, the recommendations are outlined here -https://docs.clover.com/docs/working-with-orders..

There is no void API. You will call the refund API which will internally void if the transaction is within the void window (which is not always the same day, ~25 minutes for a sale/final payment). This article (https://medium.com/clover-platform-blog/working-with-voids-and-refunds-fe4a7aeed8fa) is for semi integrations but the same thing applies with the ecomm refund endpoint.


10 |2000

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