Skip to main content
curl --request GET 'https://api.mayar.id/hl/v2/webhooks/new-history?limit=10' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here'
{
    "statusCode": 200,
    "messages": "success",
    "data": [
        {
            "id": "e5f6a7b8-c9d0-4123-e456-789abcdef012",
            "userId": "348e083d-315a-4e5c-96b1-5a2a98c48413",
            "createdAt": "2026-06-27T17:00:36.126Z",
            "updatedAt": null,
            "nextDelivery": "2026-06-27T17:00:36.126Z",
            "payload": "{\"event\":\"membership.memberExpired\",\"data\":{\"merchantId\":\"348e083d-315a-4e5c-96b1-5a2a98c48413\",\"merchantName\":\"Toko Mayar Demo\",\"status\":\"INACTIVE\",\"memberId\":\"MBR8X2QK\",\"customerId\":\"a1b2c3d4-e5f6-4789-a012-3456789abcde\",\"customerName\":\"Budi Santoso\",\"customerEmail\":\"budi.santoso@example.com\",\"customerMobile\":\"081234567890\"}}",
            "paymentLinkId": null,
            "paymentLinkTransactionId": null,
            "responsePayload": null,
            "source": "AUTOMATIC",
            "status": "SUCCESS",
            "type": "membership.memberExpired",
            "Webhooktype": null,
            "urlDestination": "https://webhook.example.com"
        },
        {
            "id": "f6a7b8c9-d0e1-4234-f567-89abcdef0123",
            "userId": "348e083d-315a-4e5c-96b1-5a2a98c48413",
            "createdAt": "2026-06-19T10:00:20.185Z",
            "updatedAt": null,
            "nextDelivery": "2026-06-19T10:00:20.185Z",
            "payload": "{\"event\":\"payment.reminder\",\"data\":{\"id\":\"c3d4e5f6-a7b8-4901-c234-56789abcdef0\",\"transactionId\":\"c3d4e5f6-a7b8-4901-c234-56789abcdef0\",\"status\":\"SUCCESS\",\"transactionStatus\":\"created\",\"createdAt\":\"2026-06-19T09:31:33.835Z\",\"updatedAt\":\"2026-06-19T09:35:26.588Z\",\"merchantId\":\"348e083d-315a-4e5c-96b1-5a2a98c48413\",\"merchantEmail\":\"merchant@example.com\",\"customerId\":\"a1b2c3d4-e5f6-4789-a012-3456789abcde\",\"customerName\":\"Budi Santoso\",\"customerEmail\":\"budi.santoso@example.com\",\"customerMobile\":\"081234567890\",\"amount\":10000,\"paymentLinkAmount\":10000,\"isAdminFeeBorneByCustomer\":null,\"isChannelFeeBorneByCustomer\":null,\"productId\":\"7c9d2e1f-3a4b-4c5d-8e6f-1a2b3c4d5e6f\",\"productName\":\"Permintaan Pembayaran\",\"productType\":\"payment_request\",\"pixelFbp\":null,\"pixelFbc\":null,\"qty\":1,\"couponUsed\":null,\"paymentMethod\":null,\"paymentUrl\":\"https://yourstore.myr.id/select-channel/c3d4e5f6-a7b8-4901-c234-56789abcdef0?webhook=true\"}}",
            "paymentLinkId": "7c9d2e1f-3a4b-4c5d-8e6f-1a2b3c4d5e6f",
            "paymentLinkTransactionId": "c3d4e5f6-a7b8-4901-c234-56789abcdef0",
            "responsePayload": null,
            "source": "AUTOMATIC",
            "status": "SUCCESS",
            "type": "payment.reminder",
            "Webhooktype": null,
            "urlDestination": "https://webhook.example.com"
        }
    ],
    "hasMore": true,
    "nextStartingAfter": "1781863218261"
}
Endpoint:
https://api.mayar.id/hl/v2/webhooks/new-history?limit=10

Authorization

Authorization
string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here

Query Parameters

limit
integer
default:10
Number of records to return per page. Default 10, maximum 50.
startingAfter
string
Cursor for forward pagination. Pass the nextStartingAfter value from the previous response (a unix-millisecond timestamp string) to fetch the next page.

Response

Successful Response

Main Structure (Root)

statusCode
integer
Status code form API.
messages
string
Status message that describes the status code.
data
array of object
List of webhook delivery records.
hasMore
boolean
Information on whether there is additional data to be retrieved (true/false).
nextStartingAfter
string | null
Cursor for the next page (unix-millisecond timestamp string), or null when there is no further data. Pass it back as the startingAfter query parameter.

data Structure (Array Of Object)

id
string<uuid>
Webhook delivery record ID.
userId
string
User ID who owns this webhook.
createdAt
string (ISO 8601)
Creation time of the webhook delivery log (ISO 8601 date string).
updatedAt
string | null
Last update timestamp (ISO 8601 date string), or null.
nextDelivery
string | null
Timestamp of the next delivery attempt (ISO 8601 date string), if any.
payload
string (JSON string)
Original webhook payload sent (contains event + transaction data). This is a JSON-encoded string; its inner structure varies by event type.
Associated payment link ID (may be null for non-transaction events).
Associated transaction ID (may be null for non-transaction events).
responsePayload
string | null
Response returned from the destination endpoint.
source
string
Indicates whether the webhook was sent automatically or manually (example: "AUTOMATIC").
status
string
Delivery status (example: "SUCCESS").
type
string
Webhook event type (example: "membership.memberExpired", "payment.reminder").
Webhooktype
string | null
Optional webhook classification, often null.
urlDestination
string (URL)
Destination endpoint where the webhook is delivered.