question

matiasmassaccesi avatar image
matiasmassaccesi asked David Marginian Deactivated answered

Mark order as paid

I'm using Rest API in a website for a client that uses Clover and we have gift cards, so the user can use a gift card to paid for an order, so I'm creating the order, then applying a discount to the order, and if the giftcard amount is greater than the order's total the user shouldn't pay for the order. Everything if fine, but the order remains with state "open". I've tried to set state to "locked" and paymentState to "PAID" but it's not working.


Which is the correct way to achieve this?


Thank you

Payments
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

You can't mark an order as paid. You need to use a custom tender - https://docs.clover.com/docs/custom-tenders. If you are only using the REST API (and don't have a native integration) I believe you will need to create the tender:

https://docs.clover.com/reference#paycreatemerchanttender and then create a payment record that references the tender for the order: https://docs.clover.com/reference#ordercreatepaymentfororder-2

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