Skip to content

Instantly share code, notes, and snippets.

@lucasdellasala
Created June 9, 2021 14:00
Show Gist options
  • Select an option

  • Save lucasdellasala/aa27c16f9e06331e741193397637327f to your computer and use it in GitHub Desktop.

Select an option

Save lucasdellasala/aa27c16f9e06331e741193397637327f to your computer and use it in GitHub Desktop.

Proxy Mailing Flow

This service allows you to handling the mailing to be able to cancel and generate orders without repeating notifications to the user.

Steps by step:

  1. First you have to disable transactional emails.
  2. You need to install this app running vtex install [email protected] command on the vtex toolbelt.
  3. Then you must hook the order status changes to this service. You can see how to do this here.

Body example step 2

{
  "filter": {
    "type": "FromWorkflow",
    "status": ["order-created","order-completed", "handling", "ready-for-handling", "waiting-ffmt-authorization", "cancel"],
    "disableSingleFire": false
  },
  "hook": {
    "url": "https://{{accountName}}.myvtex.com/_v/status/"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment