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/.
Working with Outlets in Vend
The
operation retrieves all outlets.listOutlets
listOutlets
<vend.listOutlets> </vend.listOutlets>
Sample request
Following is a sample REST/JSON request that can be handled by the listOutlets
operation.
Sample Request for listOutlets
{ "apiUrl": "https://hormondri.vendhq.com", "accessToken": "Rd29HhdkxQq0b5pA1Litw8G05KFF3A3JZK0pQfQL" }
Related Vend documentation
https://developers.vendhq.com/documentation/api/0.x/outlets.html#get-api-outlets
Sample configuration
Following is a sample proxy service that illustrates how to connect to Vend with the init
operation and use the listOutlets
operation. The sample request for this proxy can be found in the listOutlets sample request.
Sample Proxy
<?xml version="1.0" encoding="UTF-8"?> <proxy name="vend_listOutlets" startOnLoad="true" statistics="disable" trace="disable" transports="https,http" xmlns="http://ws.apache.org/ns/synapse"> <target> <inSequence onError="faultHandlerSeq"> <property name="apiUrl" expression="json-eval($.apiUrl)"/> <property name="accessToken" expression="json-eval($.accessToken)"/> <vend.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <accessToken>{$ctx:accessToken}</accessToken> </vend.init> <vend.listOutlets> </vend.listOutlets> <respond/> </inSequence> <outSequence> <send/> </outSequence> </target> <description/> </proxy>