This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Sample Business Scenario for Vend

You can use the Vend connector to manage the following key use cases in a business scenario:

The following diagram illustrates the steps you need to follow in each of these use cases and the external applications (Shopify, MailChimp, Nexmo, Beetrack, Mandrill, Billomat and Formstack) you could integrate with along the way using the relevant ESB connectors.

Assumption

E-mail addresses of customers in APIs such as Vend, Shopify and Billomat are considered as key parameters which will be used to integrate with each other. 

Note

Please note that the cases of Product Marketing, Product Ordering and Sales Fulfillment scenarios should be executed in the same order as they appear in this document due to dependencies between them. However cases of Inventory Management, Customer Loyalty Management and Product Campaigns scenarios can be executed independently.

Prerequisites

Add the following registry entries with valid values to the ESB (on which the scenarios would be executed).

- /_system/governance/connectors/Vend/apiUrl
- /_system/governance/connectors/Vend/clientId
- /_system/governance/connectors/Vend/clientSecret
- /_system/governance/connectors/Vend/redirectUrl
- /_system/governance/connectors/Vend/accessToken
- /_system/governance/connectors/Vend/refreshToken

- /_system/governance/connectors/Beetrack/apiUrl
- /_system/governance/connectors/Beetrack/accessToken

- /_system/governance/connectors/Mailchimp/apiUrl
- /_system/governance/connectors/Mailchimp/apiKey

- /_system/governance/connectors/Mandrill/apiUrl
- /_system/governance/connectors/Mandrill/apiKey

- /_system/governance/connectors/Billomat/apiUrl
- /_system/governance/connectors/Billomat/apiKey

- /_system/governance/connectors/Vend/apiKey
- /_system/governance/connectors/Vend/apiSecret
- /_system/governance/connectors/Vend/apiUrl

- /_system/governance/connectors/Shopify/apiUrl
- /_system/governance/connectors/Shopify/accessToken

- /_system/governance/connectors/Formstack/apiUrl
- /_system/governance/connectors/Formstack/accessToken

Environment Setup to Run the Vend Scenarios

  • Download and initialize ESB 4.9.0-BETA-SNAPSHOT with patches.
  • Follow the instructions given in the developer guide of the above connectors, and enable the ESB axis configurations accordingly.
  • If required, add the corresponding website security certificates to the ESB for these connectors. 
  • Add the following sequences and templates in the common directory (<VEND_CONNECTOR_HOME>/vend-integrated-scenarios/src/common), to the ESB that are listed below:
    • sequences - faultHandlerSeq.xml
      removeResponseHeaders.xml 
        shopify-removeResponseHeaders.xml 

    • templates - responseHandlerTemplate.xml

  • Each scenario folder consists of sub-folders named "Case-xxx". Before executing each case, be sure to read the corresponding use case for that using the links at the top of this page.