singer-io / tap-shopify

Singer.io tap for extracting Shopify data
GNU Affero General Public License v3.0
57 stars 89 forks source link

tap-shopify does not support the gift card endpoint #47

Open colin-roy-ehri opened 5 years ago

colin-roy-ehri commented 5 years ago

https://help.shopify.com/en/api/reference/plus/giftcard

"A gift card is an alternative payment method. Each gift card has a unique code that is entered during checkout. GET /admin/api/2019-10/gift_cards.json Retrieves a list of gift cards. "

This endpoint can be used to pull information about gift cards, including balances available and status. This information is not available through other shopify tap endpoints already implemented. Knowing how much value remains on gift cards is vital for calculating total liabilities.

dougb commented 5 years ago

The GiftCard api is only available via a private application, and private applications authenticate with Shopify through basic HTTP authentication. This form of authentication is not currently supported in the tap. There have been multiple attempts, #16 #43 to support private apps. This must be done first before the gift card endpoint can be supported. (I'm new to this tap, and this is my understanding after spending a few hours looking around.)

dougb commented 5 years ago

I have some code based on #43 that adds support for GiftCards and kinda works. I have a schema issue that is keeping the stream from being selected. I hope to have a pr as soon as #43 is resolved.