Bantuan
Documentation
Integrasi REST API Malawali Payment: project, API key, order, status, dan webhook.
Malawali Payment · REST API v1
Integrasi Pembayaran QRIS
Buat order dari server Anda, tampilkan QR ke pelanggan, lalu terima callback
order.paid setelah pembayaran terdeteksi otomatis. API Key dibuat per Project
dan hanya aktif selama langganan berjalan.
Base URL
http://localhost:3001/api
Autentikasi
Header
x-api-key: pk_live_…
Format
JSON (request & response)
Webhook
HMAC-SHA256, retry maksimal 3×, timeout 10 detik
Base URL & Autentikasi
Semua endpoint memakai Base URL http://localhost:3001/api dan header x-api-key berisi API Key project pk_live_….
Header
Autentikasi
x-api-keyWajib. API Key project (
pk_live_…).Content-Type
application/json untuk request berbody.curl -X GET http://localhost:3001/api/orders/ord_7f3k9d2m \
-H "x-api-key: pk_live_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("http://localhost:3001/api/orders/ord_7f3k9d2m", {
headers: { "x-api-key": "pk_live_xxxxxxxxxxxxxxxxxxxxxxxx" },
});
const data = await res.json();
<?php
$ch = curl_init("http://localhost:3001/api/orders/ord_7f3k9d2m");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["x-api-key: pk_live_xxxxxxxxxxxxxxxxxxxxxxxx"],
]);
$data = json_decode(curl_exec($ch), true);
import requests
res = requests.get(
"http://localhost:3001/api/orders/ord_7f3k9d2m",
headers={"x-api-key": "pk_live_xxxxxxxxxxxxxxxxxxxxxxxx"},
timeout=10,
)
data = res.json()