Skip to content
PGSwift Docs
Documentation/Disbursement Completed Webhook

Disbursement Completed Webhook

POST disbursement.v2.completed

Request Headers

All webhook requests include the following headers for authentication and verification:

Header Description
X-PARTNER-ID Your client identifier
X-TIMESTAMP Request timestamp in ISO8601 format (e.g., 2024-12-18T16:21:07+07:00)
X-SIGNATURE RSA signature for request verification (see Signature Generation)

Payload Structure

All v2 webhooks use the unified envelope: { event, timestamp, data }.

Name Type Description
event string Event name: "disbursement.v2.completed"
timestamp string Webhook dispatch timestamp (ISO 8601)
data.id string Inquiry ID (unique identifier)
data.merchant_transaction_id string Unique identifier provided by the client for the merchant
data.amount string Total transaction amount
data.bank_code string Bank code (e.g., "014", "002")
data.bank_name string Full bank name
data.account_name string Recipient account holder name
data.valid_account_name string Bank-validated recipient account holder name
data.account_number string Recipient account number
data.status string Status: "success"
data.reason string/null Failure reason (e.g., "Inquiry expired"). Always null when the disbursement succeeds
data.payment_at string/null Payment completion timestamp (ISO 8601), null if not yet paid
data.created_at string Inquiry creation timestamp (ISO 8601)
data.updated_at string Last update timestamp (ISO 8601)

Example Payload

{
  "event": "disbursement.v2.completed",
  "timestamp": "2025-01-10T00:54:48+07:00",
  "data": {
    "id": "01jmmtbfcthj8y0eg3w1he4q3t",
    "merchant_transaction_id": "RLG00000000",
    "amount": "25000.00",
    "bank_code": "002",
    "bank_name": "Bank Rakyat Indonesia",
    "account_name": "John Doe",
    "valid_account_name": "JOHN D**",
    "account_number": "0000000000",
    "status": "success",
    "reason": null,
    "payment_at": "2025-01-10T00:54:46+07:00",
    "created_at": "2025-01-10T00:54:42+07:00",
    "updated_at": "2025-01-10T00:54:48+07:00"
  }
}