question

Danielle Cox avatar image
Danielle Cox asked sam Deactivated answered

ServiceCharge from the API

I see this https://clover.cloud.answerhub.com/questions/2038/... ... Is there any way to do this from the SDK? I tried creating a ServiceCharge object with the ID of the default service charge. This will not allow the orderconnector31 to create the order. Using orderconnector to add a ServiceCharge only takes the service charge id.

Please help :-) (and Happy Thanksgiving!)

ps) How do I add an appropriate topic?
Sale
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

sam avatar image
sam Deactivated answered
At first glance, OrderConnector seem to only accept existing default ServiceCharge using the service charge id, so you won't be able to customize the percentage or name. If necessary, you could work-around by grabbing the device token `token = CloverAuth.authenticate(MainActivity.this, mAccount).authToken;` then use the REST API to add custom service charge.

You'll find this reiterated by Mark here: https://community.clover.com/questions/441/service-charge-and-discount-through-clover-sdk.html
10 |2000

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