question

jds avatar image
jds asked Jeffrey Blattman answered

Can you get Receipt data from the REST API?

I would like to know if it is possible to get individual transaction receipt information from the REST API so that the receipt information is sent to our app and then the receipt print is disabled for that transaction.


Alternatively, is it possible to get a URL for the web receipt as part of closing the transaction?

OrdersPrint
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

· Write an Answer
Jeffrey Blattman avatar image
Jeffrey Blattman answered

There is no "get receipt" API nor is the URL for fetching web receipts a public SDK. You can however get the order and payment from their respective endpoints, and reconstruct the receipt.

so that the receipt information is sent to our app and then the receipt print is disabled for that transaction

Are you trying to understand if a receipt has been printed previously or if the transaction is paid? 100% knowing if the transaction is paid is rather painful since it involves totalling the order and comparing that to the total.

https://docs.clover.com/docs/calculating-order-totals

There is no way to know if a payment receipt has been previously printed.

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