Sample Use Cases and Flows

This article shares some possible use cases you could support, as well as a sample flow that could support each use case. This can be a helpful jumping off point as you plan your implementation.

Set up automatic receipt generation

You can generate a receipt for an existing Wix eCommerce order or Wix Payments transaction automatically using Wix Automations.

  1. Define an automations trigger. More about Automations can be found: The trigger payload output schema must contain a property of wixCustomType with a RECEIPT field.
  2. Define an automation with the trigger from the previous step and set Issue a receipt as it's action. This triggers a call to Create Receipt under the hood.

    Note: Wix apps can create a pre-installed automation with the defined automation from the previous step, that will be installed automatically with the app.

  3. When a Wix user, or your app, triggers the automation trigger defined above, a new receipt is generated.

Manually trigger receipt creation

You can provide the ability to manually generate a receipt for an existing Wix eCommerce or Wix Payments transaction.

  1. Retrieve the relevant Wix eCommerce or Wix Payments transactions and display them to the Wix user with a call to action to create a receipt.
  2. When a Wix user chooses to create a receipt for a specific transaction, call Create Receipt with the specified receipt data collected from the transaction, along with any user data.

Resend receipts

You can enable Wix users to resend receipts to customers as necessary within a dashboard page.

  1. In your dashboard page, display customer data, including their purchases, with a call to action to resend a receipt.
  2. When the Wix user selects a specific customer, call Query Receipts and filter by customer contactId. Display the returned data to the Wix user with a call to action to resend a receipt.
  3. When the Wix user selects a receipt, call Send Receipt Email to send the receipt to the customer.
Did this help?