Overview

Webhooks on Mayar allow businesses to receive instant notifications about important events, such as payment transactions or membership status changes, directly into their systems. Once enabled, key data is automatically sent to a specified URL whenever an event occurs, enabling quick and efficient responses without manual checks. This feature supports seamless integration with other applications, keeping your business informed and responsive to customer needs while improving operational efficiency and data management.

About Webhook

Webhook provide a way for notifications to be delivered to an external web server whenever certain event occur in Mayar. Gambar HD7 Pn

Add a New Webhook

You can configure Webhooks via the Mayar dashboard, here are the steps:
  1. For starting using Mayar Webhook, you need account at https://mayar.id. Please use https://web.mayar.club for testing
  2. Go to Integration -> Webhook page
  3. In the “URL Webhook” field, input the URL you got from a third-party integration platform (such as pipedream, zapier, or others) to trigger and send the webhook event
  4. Click save then test the URL to see the status of the Webhook URL.

Request Method

The format prepared by the engine is ​JSON​. with Method use POST and application/json for Content-type

Event Type

Message event webhooks can be triggered by several types of events:
Event NameDescription
payment.receivedEvent triggered after the customer makes a payment / has completed the payment
payment.reminderEvent triggered if the customer doesn’t complete the payment after 29 minutes
shipper.statusEvent triggered if tracking for physical product purchases changed
membership.memberUnsubscribedEvent triggered if your membership client unsubscribe
membership.memberExpiredEvent triggered if your membership client expired
membership.changeTierMemberRegisteredEvent triggered if your membership client change Tier or Package membership
membership.newMemberRegisteredEvent triggered if your membership client subscribe / new subscribe member

Parameter Description

Each type of webhook sends a slightly different payload data.
FieldTypeDescription
event.receivedStringEvent type
data.idStringId webhook
data.statusBooleanStatus transaction
data.createdAtTimestampDate transaction created
data.updatedAtTimestampUpdated transaction date
data.merchantIdStringYour merchant Id
data.merchantEmailStringYour Account Email
data.merchantNameStringYour Account name
data.customerNameStringCustomer Name
data.customerEmailStringCustomer Email
data.customerMobileStringCustomer Handphone Number
data.amountIntAmount for this transaction
data.isAdminFeeBorneByCustomerBooleantrue if the admin fee is paid by customer
data.isChannelFeeBorneByCustomerBooleantrue if the channel fee is paid by the customer
data.productIdStringId produce
data.productNameStringname your product
data.productTypeStringtype your product
data.pixelFbpStringpixelFbp for this transaction
data.pixelFbcStringpixelFbc for this transaction
data.addOnArrayonly available if your customer add add-on option on transaction
data.custom_fieldArrayit only available if you set custom form on your product