Skip to main content

Get started with Haravan APIs

This tutorial will show you how to create a Haravan Shop, retrieve an API Token and register Webhook. After you've completed this tutorial, you'll be able to connect Haravan API and Webhooks.

Create Shop

  1. Go to Haravan Shop Register, fill Register form.
  2. To create a product go to your Shop Admin Dashboard >> Products, Click Add product

Retrieve an API Token

  1. Log in to your Store Admin Dashboard by Store owner account
  2. Click menu Apps
  3. Click Private apps on the top right conner.
  4. Click Create new private app
  5. Fill your app name and sellect permissions, click Create private apps
  6. Use Token to make authenticated requests
curl 'https://apis.haravan.com/com/products.json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {Token}'

Receive the webhook

  1. Go to your store Admin >> Settings >> Notifications >> Webhooks by Store owner account
  2. Click Add webhook
  3. Choose Event and fill your URL (an endpoint of your choice to receive events that are published to a webhook topic)
  4. Click Update
Test the webhook with webhook.site
1. go to webhook.site, copy Your unique URL

Example banner

2. Add Your unique URL to webhook event Product - Update

Example banner

3. Click Send a test notification or Click update a Product.
4. View received webhook on https://webhook.site

Example banner

Next steps