0

Hello,

I developing web application by using clover API. In API doc I found one method i.e "BulkLineItems". I want to know what is the use of this method. There is no any description given in API doc.

And secondly I want to know how to post service charge in order via API because its give me the error -"Service charge in body is missing an ID". So, where to find this service charge id. I run this method "DefaultServiceCharge" but except service charge id I got all response.

So, please response ASAP.

Thank You

asked 2017-03-25 03:24:54 -0500

namrata gravatar image

2 answers

Sort by  
0

Hi @namrata,

Welcome to DevAsk. To get the most out of the forum, please read: https://devask.clover.com/question/6855/how-do-i-ask-a-good-question/

You say that you're developing a web app, but also make reference to methods; are you using the REST API or the Android SDK?

The endpoint POST /v3/merchants/{mId}/orders/{orderId}/bulklineitems is documented at https://sandbox.dev.clover.com/apidocs/#ordersBulkLineItems. It is used to add an array of line items to an order in a single API call.

See this post for more about service charges: https://devask.clover.com/question/6683/post-service-charge-to-order/

answered 2017-03-27 11:32:47 -0500

rachel gravatar image
Comments

Thanks for your response. I am using REST API. "https://sandbox.dev.clover.com/apidocs/#ordersBulkLineItems" I use this method but when I pass item id of the inventory it did not include. So, I want to know "BulkLineItems" only create those line item which are not available in our inventory.

And secondly, I enable service charge from "Setup" option of account. And I get service charge detail from this endpoint "https://www.clover.com/apidocs/#merchantsDefaultServiceCharge" but in did not get service charge id. So, where from I will get so that I can use it.

namrata gravatar image
namrata 2017-03-28 01:15:03 -0500
0

Thanks for your response. I am using REST API. "https://sandbox.dev.clover.com/apidocs/#ordersBulkLineItems" I use this method but when I pass item id of the inventory it did not include. So, I want to know "BulkLineItems" only create those line item which are not available in our inventory.

And secondly, I enable service charge from "Setup" option of account. And I get service charge detail from this endpoint "https://www.clover.com/apidocs/#merchantsDefaultServiceCharge" but in did not get service charge id. So, where from I will get so that I can pass it in "POST /v3/merchants/{mId}/orders/{orderId}/service_charge/" this endpoint.

answered 2017-03-28 01:13:58 -0500

namrata gravatar image
Comments

Per the above link, web apps cannot use service charges at this time.

rachel gravatar image
rachel 2017-03-28 19:18:49 -0500

The bulklineitem endpoint requires that items have a price. It's up to you to ensure that this price matches the price of the inventory item you're referencing. Here's a sample payload: https://pastebin.com/kiRALXXx

rachel gravatar image
rachel 2017-03-28 19:20:23 -0500