Haravan
Last updated
Last updated
Haravan node allows developers to extend the platform's integration features, allowing partners to read and write merchant data, and interact with other systems and platforms. Along with that, Haravan admin accounts are used to read and write data about commerce stores, products, orders, etc. For Haravan partner accounts are used to access the data found in the Partner Dashboard. This access enables Partners to effectively scale their business by automating their front and back office operations, freeing up time to focus on delivering value to Haravan merchants.
On this page, you'll find a list of operations the Haravan node supports and links to more resources.
Customer
Retrieve a list of customers
Search for customers that match a supplied query
Retrieve detail of a customer
Retrieve the count of customers
Create customer
Delete a customer
Update customer
Inventory
Retrieve a list of inventory adjustments
Retrieve a count of the inventory adjustments
Retrieve a single inventory adjustment
Create an inventory adjustment
Order
Retrieve a list of all checkouts
Retrieve a count of all checkouts
Retrieve a list of orders
Retrieve a count of the orders
Retrieve a single order
Retrieves a list of refunds for an order
Retrieves a single refund for an order
Retrieves a list of transactions of an order
Retrieves a single transaction of an order by ID
Update order
Create an order
Products
Retrieve a list of collects
Retrieve a count of all collects
Retrieve detail of a collect
Retrieve a list of products
Retrieve a count of the products
Retrieves single the product
Create a new product
Delete a product along with all its variants and images
Update a product
Delete a collect
Create a new collect
Shipping and fulfillment
Retrieves a list of fulfillments for an order
Retrieves the count of fulfillments for an order
Retrieves a single fulfillment for an order
Create a new fulfillment
Update an existing fulfillment
Location
Retrieve a list of locations
Retrieve a single location
The start node exists by default when you create a new workflow.
note: If you have an access token please skip this section and move to section 3. Haravan Node
When you create app successfully please go to Commerce section in the navigation bar.
After that, you scroll to scopes section and choose scopes like in image.
Save your change and back to n8n app.
You will use the Haravan Authentication node to get an access token to use other actions in the Haravan 2.0 node. Before that, you had to create new credentials to get the code.
Click on the Add node or drag to connect button and enter Haravan Authentication in the search nodes box.
Select Create new credential at Credential to connect with field.
The screenshots below are required fields for your connect information needed to get the code.
After providing your Client ID, Client Secret choose Grant Type and Redirect URI and clicking Connect my account button the permissions window appears and show the permissions for your app. You can continue to get code by click "YES"
After pressing the "YES" button, the browser will redirect to your Redirect URI attached to the code. Your code is the string after the equals operator. You can copy it to use in the next step.
After getting a code you can close the get code window and back to the credential screen. Now you can turn off it and just click close when Close without connecting popup appears because Haravan doesn't have Authorization server support OAuth 2.0 protocol. This will not affect the further processes.
Next, you will paste code provided to Code field. After that, you will click the Execute node button to get access Token.
After executing Haravan Authentication node:
note: The AccessToken will be valid within 24 hours of receiving the code, as you can see in the photo below, the value of expires_in attribute is 86400 by default. It means 86400 seconds is equivalent to 24 hours.
The expiry is returned with AccessToken in response after executing the Haravan Authentication node:
You will use the create customer action in the Haravan node to set the values for information on the customer and create a customer account that includes the information you just entered.
Click on the Add node or drag to connect button and enter Haravan in the search nodes box.
Search Create customer in the search Haravan Actions box.
Select Create new credential at Credential to connect with field.
Enter Access Token of your app in the Access Token field
Now you can start creating a new customer.
Enter the value of fields that you want to set customer account information.
Click Execute node to run a node.
The screenshots below are some examples of some input fields for customer account information when creating a new customer account.
After executing create customer action of Haravan node:
This workflow allows you can create an account for a customer. This example usage workflow would use the following nodes. - – Haravan 2.0.
If you don't have an access token yet. Your workflow is. - – Haravan Authentication – Haravan 2.0.
To use Haravan Authentication node, register a partner account and create an app at .
Instructions are available at .
note: If you not get an access token from Haravan Authentication node, follow this link to get an access token . On the contrary you will have to take the access_token you received from Haravan Authentication node in order to enter Access Token field. After that, you can click save to finish creating credentials.