question

shehryar-hashmi avatar image
shehryar-hashmi asked shehryar-hashmi commented

Mark order status as paid and order type online

Hello Clover We have already built an application for a restaurant in Chicago. We have tested one order but some information is missing i.e Order status is open which must be paid because when someone orders from our application customer will pay first and payment is received through Stripe, and the second thing order type must be online but in our app it says nothing. I have attached a screenshot below. Please connect me with your API developers so we can fix this issue. We just need an API document to resolve this issue. I have attached a screenshot of the order received on the Clover tab using our application.

PHOTO-2022-05-21-00-05-15.jpg

REST API
10 |2000

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 Deactivated answered shehryar-hashmi commented

We have an EComm API, is there a reason why you aren't using it?

https://docs.clover.com/docs/ecommerce-api-tutorials

If you want to continue to use an external payment source you need to create a payment record for the order via https://docs.clover.com/reference/ordercreatepaymentfororder.


2 comments
10 |2000

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

shehryar-hashmi avatar image shehryar-hashmi commented ·

I've used this API.

Body Parameters

{

"offline": "false",

"transactionSettings": {

"disableCashBack": "false",

"cloverShouldHandleReceipts": "true",

"forcePinEntryOnSwipe": "false",

"disableRestartTransactionOnFailure": "false",

"allowOfflinePayment": "false",

"approveOfflinePaymentWithoutPrompt": "false",

"forceOfflinePayment": "false",

"disableReceiptSelection": "false",

"disableDuplicateCheck": "false",

"autoAcceptPaymentConfirmations": "false",

"autoAcceptSignature": "false",

"returnResultOnTransactionComplete": "false",

"disableCreditSurcharge": "false"

},

"transactionInfo": {

"isTokenBasedTx": "false",

"emergencyFlag": "false"

}

}

Token : 811aebde-2801-550b-a266-3ad843bbc21f
API : https://api.clover.com/v3/merchants/NV290EP3YR5J1/orders/7YE7DJQE25RNY/payments

Response :

{ "elements" : [], "href" : "http://api.clover.com/v3/merchants/NV290EP3YR5J1/orders/7YE7DJQE25RNY/payments?limit=100" }

Pleae guide what we missed and what should be the exact API call.

Please share postman collection for this one, we need it.
our order could not changed to PAID.
Please help as soon as possible
0 Likes 0 ·
shehryar-hashmi avatar image shehryar-hashmi shehryar-hashmi commented ·
@ please review above code and guide me accordingly.


0 Likes 0 ·
shehryar-hashmi avatar image
shehryar-hashmi answered

@ please guide me on above code

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