fbpx

Webhook [Advance]

Updated March 7, 2023
Estimated reading time: 1 min

Membuat Webhook

Untuk membuat Webhook silakan ikuti langkah-langkah berikut ini :

  1. Persiapkan link webhook Anda. Lalu Login ke halaman app.utas.co.
  2. Klik Menu Integration.
  3. Klik tab Webhook pada halaman Integration.
  4. Klik tombol Create New Webhook.



  5. Masukkan link/url webhook yang Anda miliki.
  6. Pilih trigger yang Anda butuhkan. Ada 4 opsi yang bisa Anda pilih, Anda boleh pilih lebih dari 1 trigger.:
    • New Order
    • Paid
    • Shipping
    • dan Complete.
  7. Klik tombol Submit untuk menyimpan.



  8. Klik tombol OK pada notifikasi sukses.
  9. Selesai.

Contoh webhook response

Header
content-type  |  application/json

Return New order

{
  "state": "order",
  "name": "xxx",
  "email": "xxx@xxx.com",
  "address": "-",
  "store": "xxxx",
  "items": [
    {
      "item_name": "Xxxxx",
      "item_qty": "xx",
      "item_price": "xxx",
      "item_data": "xx"
    }
  ],
  "total": "xx",
  "store_link": "xxx"
}

Paid

{
  "state": "paid",
  "name": "xxx",
  "email": "xxx@xxx.com",
  "address": "-",
  "store": "xxxx",
  "items": [
    {
      "item_name": "Xxxxx",
      "item_qty": "xx",
      "item_price": "xxx",
      "item_data": "xx"
    }
  ],
  "total": "xx",
  "store_link": "xxx"
}

Shipping

{
  "state": "shipping",
  "name": "xxx",
  "email": "xxx@xxx.com",
  "address": "-",
  "store": "xxxx",
  "items": [
    {
      "item_name": "Xxxxx",
      "item_qty": "xx",
      "item_price": "xxx",
      "item_data": "xx"
    }
  ],
  "total": "xx",
  "store_link": "xxx"
}

Complete

{
  "state": "complete",
  "name": "xxx",
  "email": "xxx@xxx.com",
  "address": "-",
  "store": "xxxx",
  "items": [
    {
      "item_name": "Xxxxx",
      "item_qty": "xx",
      "item_price": "xxx",
      "item_data": "xx"
    }
  ],
  "total": "xx",
  "store_link": "xxx"
}

Cara Mengedit Webhook

Untuk mengedit webhook di Utas silakan ikuti langkah-langkah berikut ini :

  1. Lalu Login ke halaman app.utas.co.
  2. Klik Menu Integration.
  3. Klik tab Webhook pada halaman Integration.
  4. Pilih webhook yang ingin Anda edit.
  5. Klik opsi Edit di bagian bawahnya.



  6. Sesuaikan bagian mana yang ingin Anda edit.
  7. Klik tombol Submit untuk menyimpan.



  8. Klik tombol OK pada notifikasi sukses.
  9. Selesai.

Cara Menghapus Webhook

Untuk menghapus webhooks di Utas silakan ikuti langkah-langkah berikut ini :

  1. Lalu Login ke halaman app.utas.co.
  2. Klik Menu Integration.
  3. Klik tab Webhook pada halaman Integration.
  4. Pilih webhook yang ingin Anda hapus.
  5. Klik opsi Delete di bagian bawahnya.



  6. Klik tombol Yes, delete it pada halaman Are you sure?



  7. Selesai.

Was this article helpful?
Dislike 0
Views: 475