question

ahsan avatar image
ahsan asked David Marginian Deactivated edited

How to close an order if I take cash payment or take payment at my end? (Using API calls)

I created an order using API calls and added the items according to our requirement and we take payments on our end. Now we want to notify clover about the payment that we have received the cash or online payment. We want to close it using API call.


OrdersPayments
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

zgreathouse avatar image
zgreathouse Deactivated answered Guille Bauza commented
You can create a payment record and set the tender to cash using the following endpoints:

Endpoint:
POST {baseUrl}/v3/merchants/{merchantId}/orders/{orderId}/payments

Example of a Cash Payment Request body:
{
     "tender": {
          "id": "*************" //id of your cash tender
     },
     "amount": 2179
}
Endpoint in docs: https://docs.clover.com/clover-platform/reference#createpaymentfororder-1
1 comment
10 |2000

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

Guille Bauza avatar image Guille Bauza commented ·

Omg, been looking for this for like 2 months now, there's no documentation on this...

0 Likes 0 ·

Welcome to the
Clover Developer Community