• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • Semi-Integration
This question was closed Apr 02 at 09:48 PM by Clover_Community_Bot for the following reason: automated

question

saad_bin_iqbal avatar image
saad_bin_iqbal asked · Nov 01, 2018 at 10:39 AM

Is there any api or method to sell a item entirely in the background ?

I want to sell an item(from Inventory) just by clicking on a button, means after selecting the item I will click a button and after that, all the process(like creating order and doing payment) should be done in the background without any interaction with User Interface.
Clover MiniClover FlexClover Station
Comment
0
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

1 Answer

brokenOval avatar image
brokenOval answered · Nov 02, 2018 at 09:53 AM Locked
You can certainly do this using the Restful APIs documented here.

Firstly you will create the order in the background using the Create Order API
POST /v3/merchants/{mId}/orders

Depending on your use case, you may have to update the order too, this can also be done in the background using
POST /v3/merchants/{mId}/orders/{orderId}

However, at some point you will need to take payment for the order and at that point you will need user interaction because you will need to take payment (unless the order value is Zero or you don't care about accepting money). If that's not relevant to you, you will have to do the following:

You will need to first create a Custom Tender, this is the equivalent of "Credit Card" or "Cash" - most use cases involve own store Loyalty or Gift Cards, but using your own tender will allow you to close out the order. You have to do this only once per merchant using:
POST /v3/merchants/{mId}/tenders
After you have a custom Tender ID for that merchant and an Order ID you can create a payment using:
POST /v3/merchants/{mId}/orders/{orderId}/payments
· 1 comment · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

saad_bin_iqbal avatar image saad_bin_iqbal · Nov 02, 2018 at 10:58 AM

Thanks a lot, Mr. @brokenOval,

Now I'm gonna implement it. I'll come back here if I stuck.

0 · ·

Welcome to the
Clover Developer Community

question details

2 People are following this question.

saad_bin_iqbal follows this question rachel follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

Application stuck when receiving data from InputStream of TCP Socket after TLSv1.2 integration in Clover Mini 2nd generation. 0 Answers

Connect Clover Flex with .NET application using Ethernet or Wifi 1 Answer

What integrations are possible (Woocommerce, Zoom, Mailchimp, Acuity)? 1 Answer

Can Clover sell downloadable products? 1 Answer

Getting Receipt Text as printed on terminal 1 Answer

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.