Articles on: Store Credit Programs & Use Cases

How customers can proactively buy more store credit (Top Up)

While Koin does not currently offer a dedicated store credit top-up feature, you can still configure your store to allow customers to purchase additional credits. This setup uses a digital product to represent store credit, Koin's Credit Adjustment tool, and Shopify Flow automations to handle fulfillment, credit issuance, and refunds.


For example, customers will purchase a digital product with a price of $50. After the order is placed, they will automatically receive $50 on their store credit account.


You will need to configure the following flows:

  • Automatically fulfill digital products once payment is completed.
  • Issue store credit when a customer successfully purchases the digital product.
  • Automatically deduct the credited amount if the digital product order is refunded.


A. Create digital product


Create a digital product priced according to the top-up amount and set the product type as 'topup'. Make sure to mark it as a non-physical product.



B. Add flow to auto fulfillment for digital products only


For this step, we will use Shopify Flow.


Flow logic

  • Trigger: Order is ready to be fulfilled
  • Condition: The order has no delivery method (digital product)
  • Action: Mark the order as Fulfilled


This ensures that digital “store credit” products are fulfilled immediately after purchase. You can click here to download a sample flow, or refer to the screenshot below.


C. Add flow to top-up credit


Flow logic

  • Trigger: Order is fulfilled
  • Condition: The order is identified as a top-up order
  • Actions:

Calculate the store credit amount

Issue the calculated amount to the customer’s account immediately


This is the sample flow. Below is the screenshot and some important notes:


The “Run code” step contains Koin-provided logic and must not be removed or modified. Changing this step may cause incorrect credit issuance.


D. Add flow to automatically debit the top-up amount after an order has been refunded.


There will be some additional cases, such as if you refund the order. This extra flow makes sure the credit will be taken back automatically on that case.


Flow logic

  • Trigger: Order is refunded
  • Condition: The productType is 'topup' (means that it's the store credit digital product)
  • Action: Calculate and deduct the previously issued store credit from the customer’s account


Here is the sample flow.



The “Run code” step contains Koin-provided logic and must not be removed or modified. Changing this step may cause incorrect credit issuance.


Testing your setup


Once all flows are in place, we recommend running a few test scenarios:

  • Place a test top-up order
  • Verify the order is fulfilled automatically
  • Confirm store credit is issued correctly
  • Cancel or refund the order and ensure the credit is deducted

This helps confirm that all flows are working as expected.

Updated on: 28/01/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!