Loading...

Zapier Quick Start Guide

Build your Zapier integration quickly with this guide.

Zapier platform

Set up application as a private integration.

1

For Authentication

Auth Type:

Choose OAuth V2

OAuth V2 Setup:

1. Configure your Fields

Not applicable

2. Copy your OAuth Redirect URL

Copy the Zapier’s OAuth Redirect URL shown and provide to Wisenet via support ticket.

3. Enter your Application Credentials

Select → OAuth v2 with PKCE Extension

Enter Client ID and Client Secret available in Wisenet Developer Tools

4. Add OAuth v2 Endpoint Configuration

Authorization URL → GET https://auth.wisenet.co/api/oauth/authorize

Scope → enter scopes, space separated (make sure you include combos_read scope)

Access Token Request → POST https://auth.wisenet.co/api/oauth/token

Refresh Token Request → POST https://auth.wisenet.co/api/oauth/token

Automatically Refresh Token → Check

Test → GET https://api.wisenet.co/v1/combos/countries

HTTP Headers

Key: x-api-key

Value: {{bundle.authData.api_key}}

Connection Label → If setting up for multiple tenancies use an identifier here for that tenant site

5. Test your Authentication

Click your integration name and authorise connection (you are required to be Wisenet Portal Admin and Wisenet LRM Owner to authorise)
Click Test Authentication

2

For API

For all endpoints:

HTTP Headers

Key: x-api-key

Value: {{bundle.authData.api_key}}

For GETBYID endpoints:

Setting id for endpoint URL

Use the input designer to allow capturing of the id → choose type Integer

https://api.wisenet.co/v1/<endpoint-set>/{{bundle.inputData.id}}

API response handling

Switch to Code Mode and replace the return snippet with the below snippet.

return z.request(options)
  .then((response) => {
    const result = response.json;
    return [result.Data];
  });