113 lines
3.1 KiB
Plaintext
113 lines
3.1 KiB
Plaintext
meta {
|
|
name: PPh A1 - Penggantian
|
|
type: http
|
|
seq: 2
|
|
}
|
|
|
|
post {
|
|
url: https://ifswit-solutax-ctas-dev.spt.co.id/ifs/api/wit/tahunan/edit
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
tokens: {{accessToken}}
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"idPel": {{idpel}},
|
|
"requestID": "{{requestID}}",
|
|
"yearlyIncome": {
|
|
"alamat": "JL MATRAMAN DALAM I NO.32, RT002/RW008, PEGANGSAAN, MENTENG, KOTA ADM. JAKARTA PUSAT, DKI JAKARTA, 10320",
|
|
"blnPenghasilanDisetahunkan": 12,
|
|
"fgPemberiKerjaSelanjutnya": "No",
|
|
"fgStatusPemotonganPph": "FullYear",
|
|
"idTku": "0717166367077000000000",
|
|
"jnsKelamin": "M",
|
|
"kodeObjekPajak": "21-100-01",
|
|
"masaPajakAwal": "01",
|
|
"masaPajakAkhir": "12",
|
|
"nama": "NAMA3171064907980002",
|
|
"namaPenandatangan": "NAMA3174061502560010",
|
|
"nominalPtkp": 54000000,
|
|
"npwp": "3171064907980002",
|
|
"npwpNikPenandatangan": "3174061502560010",
|
|
"npwpPemotong": "0717166367077000",
|
|
"passphrasePenandatangan": "Pajak123@@",
|
|
"pkpSetahunDisetahunkan": 120000000,
|
|
"pph21DapatDikreditkan": 0,
|
|
"pph21DariBupotSebelumnya": 0,
|
|
"pph21KurangLebihBayar": 0,
|
|
"pph21SetahunDisetahunkan": 5775000,
|
|
"pph21Terutang": 5775000,
|
|
"pph21WithheldDtp": 0,
|
|
"statusPtkp": "TK/0",
|
|
"tahunPajak": 2025,
|
|
"tglPemotongan": "2025-12-31",
|
|
"totalPenghasilanBruto": 180000000,
|
|
"totalPenghasilanNeto": 168000000,
|
|
"totalPenghasilanNetoDariBupotSebelumnya": 0,
|
|
"totalPenghasilanNetoPph21": 168000000,
|
|
"totalPengurang": 12000000,
|
|
"userId": "3174061502560010",
|
|
"nomorBupot": "{{nomorBupot}}",
|
|
"idBupot": "{{idBupot}}",
|
|
"dataBpA1": {
|
|
"fgKaryawanAsing": "Resident",
|
|
"passport": "",
|
|
"kdNegara": "IDN",
|
|
"posisiJabatan": "Manager",
|
|
"gajiPensiun": 150000000,
|
|
"tunjanganPPh": 0,
|
|
"tunjanganPPhGrossUp": "No",
|
|
"tunjanganLainnyaLembur": 30000000,
|
|
"honorarium": 0,
|
|
"premiAsuransi": 0,
|
|
"Natura": 0,
|
|
"tantiemBonus": 0,
|
|
"biayaJabatan": 6000000,
|
|
"iuranPensiun": 6000000,
|
|
"Zakat": 0,
|
|
"fgFasilitas": "N/A"
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
script:pre-request {
|
|
// Generate new UUID for requestID
|
|
function generateUUID() {
|
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
|
|
const r = Math.random() * 16 | 0;
|
|
const v = c === 'x' ? r : (r & 0x3 | 0x8);
|
|
return v.toString(16);
|
|
});
|
|
}
|
|
|
|
const newUUID = generateUUID();
|
|
bru.setEnvVar("requestID", newUUID);
|
|
console.log("New requestID generated: " + newUUID);
|
|
}
|
|
|
|
script:post-response {
|
|
// Parse response JSON
|
|
const responseJson = res.body;
|
|
|
|
// Extract nomorBupot and idBupot from taxSlipResponse.result
|
|
const nomorBupot = responseJson?.taxSlipResponse?.result?.nomorBupot;
|
|
const idBupot = responseJson?.taxSlipResponse?.result?.idBupot;
|
|
|
|
// Set environment variables if values exist
|
|
if (nomorBupot) {
|
|
bru.setEnvVar("nomorBupot", nomorBupot);
|
|
console.log("nomorBupot set: " + nomorBupot);
|
|
}
|
|
|
|
if (idBupot) {
|
|
bru.setEnvVar("idBupot", idBupot);
|
|
console.log("idBupot set: " + idBupot);
|
|
}
|
|
}
|