Hi guys, I am new to clover and I need your support to progress. I have a doubt that "how to fetch the tip details? can any one help me to form a request parameter for fetch the details" or send me some sample.
Hi guys, I am new to clover and I need your support to progress. I have a doubt that "how to fetch the tip details? can any one help me to form a request parameter for fetch the details" or send me some sample.
Are you asking how to obtain the tip amount for a payment?
I'm not sure which details you are looking or whether you are trying to do this using the http REST api or from an Android app, can you please specify?
This may be what you are looking for: GET /v3/merchants/{mId}/properties
and GET /v3/merchants/{mId}/tip_suggestions
. Both are documented at https://www.clover.com/api_docs#!/mer...
Please use the V3 payments API, https://www.clover.com/api_docs#!/pay...
As you can see, tip amount is one of the fields on the payment. Here's an example of how we construct the URI from within our tips app. This may point you towards some useful query parameters for that endpoint,
Uri.Builder uriBuilder = Uri.parse(mBaseUrl).buildUpon()
.appendEncodedPath("v3/merchants/").appendEncodedPath(mMerchantId).appendEncodedPath("payments")
.appendQueryParameter("expand", "cardTransaction,order,employee,refunds")
// NOTE: Server accepts any operator and treats it as equals
.appendQueryParameter("filter", "cardTransaction.state=PENDING")
.appendQueryParameter("filter", "result=success")
.appendQueryParameter("orderBy", "createdTime DESC");
2 People are following this question.