Hi there,
I am looking to develop an app for a b2b store that gets the last 4 digits of payment method selected when a draft order is created and then attaches it via a note or tag to the order using the API.
I’ve been looking at our Flow app and noticed you can create apps that use a flow trigger to run the app action. I see the draft order created as a potential trigger. Then I saw that you can use Shopify Webhooks where I could run the app on the draft order created webhook.
I am just a little confused and wondering if anyone can explain to me what the difference between these approaches is? Which route is better? I originally tried to create a flow based on the draft order created trigger that got the last 4 cc digits and applied a note to the order but it did not work.
I contacted support about this and received the following:
|
The API team provided the following insight about this: If you create a custom app with a partner account and grant the correct permissions then this app would be able to access the vaultCreditCard.LastDigits. |