Integrieren Sie Bali-Steuer-Compliance in Ihre Anwendungen
Alle API-Anfragen erfordern einen Bearer-Token-API-Schlüssel. Holen Sie Ihren Schlüssel aus Dashboard > Einstellungen > API-Schlüssel.
https://api.villa-tax.operium.store
// Authenticate
const headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
};
// Calculate taxes
const res = await fetch(
'https://api.villa-tax.operium.store/v1/calculate',
{
method: 'POST',
headers,
body: JSON.stringify({
regency: 'badung',
annual_revenue_idr: 500000000,
occupancy_rate: 0.75
})
}
);
const { pbjt, pph, total } = await res.json();
// { pbjt: 37500000, pph: 18750000, total: 56250000 }/v1/properties/v1/properties/v1/bookings/v1/bookings/v1/calculate/v1/compliance/{propertyId}/v1/reports/monthly/v1/webhooksKonfigurieren Sie Ihre Webhooks in Dashboard > Integrationen > Webhooks
booking.createdNew booking received
tax.calculatedTax calculation completed
compliance.alertCompliance issue detected
document.expiringDocument expiry in 30 days