Webhook Call
POST
/{webhook-call-url}
Webhook
200
Http status response, we will send this call every minute with maximum tries of 3.Request
Path Params
webhook-call-url
string
required
Header Params
Content-Type
string
optional
Signature
string
required
request body or query string
hash value using HMAC method. algorithm=sha256
, key = API_KEY
Body Params application/json
event
enum<string>
optional
Allowed values:
payment.receivedpayment.reversal
context
object (Bill)
optional
Example:
{"invoice_number":"INV-001","type":"close","va_number":"0090011234567890","name":"SPP Maret 2022","customer_name":"John Doe","customer_email":"string","customer_phone":null,"customer_address":"Surabaya, ID","total_amount":100000,"billed_amount":100000,"paid_amount":0,"description":null,"ext_description":null,"due_date":"2022-04-12T11:22:52+07:00","valid_until":"2022-04-12T11:22:52+07:00","status":"active","created_at":"2022-04-12T11:22:52+07:00","hash":"string"}
invoice_number
string
optional
Example:
INV-001
type
enum<string>
optional
Allowed values:
openclosepartial
Example:
close
va_number
string
optional
Example:
0090011234567890
name
string
optional
Example:
SPP Maret 2022
customer_name
string
optional
Example:
John Doe
customer_email
string | null
optional
customer_phone
null | string
optional
customer_address
string | null
optional
Example:
Surabaya, ID
total_amount
number
optional
Example:
100000
billed_amount
number
optional
Example:
100000
paid_amount
number
optional
Default:
0
Example:
0
description
string | null
optional
ext_description
string | null
optional
due_date
string | null
optional
ISO 8601
formatExample:
2022-04-05T13:25:41+07:00
valid_until
string | null
optional
ISO 8601
formatExample:
2022-04-05T13:25:41+07:00
status
enum<string>
optional
Allowed values:
paidvoidreversalactiveexpired
Default:
active
Example:
active
created_at
string
optional
ISO8601
formatExample:
2022-04-12T11:22:52+07:00
hash
string
optional
>= 1 characters
components
array[object (Bill-components) {5}]
optional
payload
object (Payment Schema)
optional
Example:
{"id":"960bf258-5aa2-4a90-81fd-d2c1f7e49d2b","payment_ref_id":"123456789012","channel":"muamalat","amount":100000,"type":"payment","created_at":"2022-04-04T09:22:38+07:00","account":{"bank_code":"AMET","account_holder":"Mr. Roosevelt Hessel I","account_number":"6011930096256781","hash":"aq8vwKj2"}}
id
string
optional
payment_ref_id
string
optional
channel
enum<string>
optional
Allowed values:
muamalattokopedia
Example:
muamalat
amount
number
optional
Example:
100000
type
string
optional
Example:
payment
account
object | null
optional
Example
{
"event": "payment.received",
"context": {
"hash": "x24da1dF",
"va_number": "8673011234567890",
"type": "open",
"invoice_number": "INV-001-ABC01",
"name": "SPP Bulan Januari",
"customer_name": "John Doe",
"customer_email": "john.doe@example.com",
"customer_phone": "+621234567890",
"customer_address": "Surabaya, Indonesia",
"total_amount": 100000,
"billed_amount": 100000,
"paid_amount": 0,
"description": "Pembayaran SPP Bulan Januari",
"ext_description": "-",
"valid_until": "2022-04-05T13:32:08+07:00",
"status": "active",
"created_at": "2022-04-12T11:22:52+07:00",
"components": [
{
"id": "95f5c77f-79de-4c12-a151-ef7c68e9b7d2",
"name": "SPP Januari",
"qty": "1",
"price": "100000",
"total": "100000"
}
]
},
"payload": {
"id": "string",
"payment_ref_id": "string",
"channel": "muamalat",
"amount": 100000,
"type": "payment",
"created_at": "2022-04-04T09:22:38+07:00",
"account": {
"bank_code": "AMET",
"account_holder": "Mr. Roosevelt Hessel I",
"account_number": "6011930096256781",
"hash": "aq8vwKj2"
}
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'Signature;' \
--header 'Content-Type: application/json' \
--data-raw '{
"event": "payment.received",
"context": {
"hash": "x24da1dF",
"va_number": "8673011234567890",
"type": "open",
"invoice_number": "INV-001-ABC01",
"name": "SPP Bulan Januari",
"customer_name": "John Doe",
"customer_email": "john.doe@example.com",
"customer_phone": "+621234567890",
"customer_address": "Surabaya, Indonesia",
"total_amount": 100000,
"billed_amount": 100000,
"paid_amount": 0,
"description": "Pembayaran SPP Bulan Januari",
"ext_description": "-",
"valid_until": "2022-04-05T13:32:08+07:00",
"status": "active",
"created_at": "2022-04-12T11:22:52+07:00",
"components": [
{
"id": "95f5c77f-79de-4c12-a151-ef7c68e9b7d2",
"name": "SPP Januari",
"qty": "1",
"price": "100000",
"total": "100000"
}
]
},
"payload": {
"id": "string",
"payment_ref_id": "string",
"channel": "muamalat",
"amount": 100000,
"type": "payment",
"created_at": "2022-04-04T09:22:38+07:00",
"account": {
"bank_code": "AMET",
"account_holder": "Mr. Roosevelt Hessel I",
"account_number": "6011930096256781",
"hash": "aq8vwKj2"
}
}
}'
Responses
🟢200Response from your server
application/json
Body
object {0}
Example
{}