question

Austin Reynolds avatar image
Austin Reynolds asked Austin Reynolds commented

GET on line item modifiers via API?

Hello,

I'm trying to do a little analytics work for a coffee shop that's recently converted to Clover devices. Stuff like clustering around products and some temporal analysis. I've written a little Python loader to form the REST URLs and pull the data into a postgres db. Simple token since I'm not writing an interactive app. But there's just one thing I can't seem to pull down.

Upsells are a big thing to analyze. Their frequency, pairings, seasonality, etc. In Clover these seem to go into the modifier field. The API docs show POST and DELETE options for modifiers, but no GET.

Is this a brick wall? Or is there some other way of getting ahold of modifiers for line items?

Thanks, -Austin

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

jim-patel avatar image
jim-patel answered Austin Reynolds commented

You should use

GET /v3/merchants/{mId}/orders/{orderId}/line_items/{lineItemId}

and use the expand as described in the REST API page here to expand the modifications.

1 comment
10 |2000

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

Austin Reynolds avatar image Austin Reynolds commented ·

There it is! Thanks a bunch, Jim. Not sure how I missed that.

0 Likes 0 ·

Welcome to the
Clover Developer Community