question

bob avatar image
bob asked bob commented

Is there a way to detect giftcard sales specifically?

We see the Orders.LineItem.isRevenue, but that doesn't tell us for sure if the item sold was a gift card or just some other non-revenue item. We would like to be able to capture gift card sales specifically without picking up other non-revenue items.

10 |2000

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

alex-tsapaev avatar image
alex-tsapaev answered bob commented

To capture gift card sales you can check if Orders.LineItem.itemCode == FD_VARIABLE_GIFTCARDS

2 comments
10 |2000

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

bob avatar image bob commented ·

Is there an ENUM of the possible values for itemCode somewhere? The swagger just has "itemCode string optional". Briefly searched your github and couldn't find this string value there.

0 Likes 0 ·
bob avatar image bob commented ·

Also, we're not seeing the "itemCode" property coming back at all including when using the swagger site.

0 Likes 0 ·
james-cha avatar image
james-cha Deactivated answered Jeffrey Blattman commented

If you know the ID of the item from the inventory you can go off that.

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.

Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

That is changing James. We are going to be using custom line items for gift cards. I think the moral of the story is that this is not a public exposed interface and it's in flux right now, so use at your own risk.

0 Likes 0 ·

Welcome to the
Clover Developer Community