NAV undefined
Bash Php Javascript Python Java C#/.Net

Crawler

Insert Data Crawler

Endpoint: Insert Data Crawler

POST http://192.168.100.111:9100/api/v1/PosApi/InsertDataCrawler

Example Insert Data Crawler Request

#!/bin/bash

curl -X POST http://192.168.100.111:9100/api/v1/PosApi/InsertDataCrawler -H "Authorization: Bearer {token}" -H "Content-Type: application/json" -d "{ "Name": "PT. PANDEGA PANDU PERKASA", "Email": "putrawahyudin279@gmail.com", "Category": "2", "TelpNo": "-", "HandPhone": "085377325037", "Website": "-", "Address1": "Kab. Banyuasin", "EntityCd": "VPP", "ProjectNo": "VPP", "SalesCd": "CRW", "NamaSales": "Crawler", "ProspectingDate": "2021-06-04", "LocationCd": "-", "PropertyType": "HOUSE", "BusinessID": "N/A", "Remark": "-", "ProjectName": "RSH TANJUNG SENTOSA RESIDENCE", "SourceName": "BTN Properti", "SourceUrl": "https://www.btnproperti.co.id", "StatusId": "2" }"

<?php

$url = "http://192.168.100.111:9100/api/v1/PosApi/InsertDataCrawler";

$curl = curl_init($url);

curl_setopt($curl, CURLOPT_URL, $url);

curl_setopt($curl, CURLOPT_POST, true);

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

$headers = array(

  "Authorization: Bearer {token},

  "Content-Type: application/json",

);

curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

$data = `{ "Name": "PT. PANDEGA PANDU PERKASA", "Email": "putrawahyudin279@gmail.com", "Category": "2", "TelpNo": "-", "HandPhone": "085377325037", "Website": "-", "Address1": "Kab. Banyuasin", "EntityCd": "VPP", "ProjectNo": "VPP", "SalesCd": "CRW", "NamaSales": "Crawler", "ProspectingDate": "2021-06-04", "LocationCd": "-", "PropertyType": "HOUSE", "BusinessID": "N/A", "Remark": "-", "ProjectName": "RSH TANJUNG SENTOSA RESIDENCE", "SourceName": "BTN Properti", "SourceUrl": "https://www.btnproperti.co.id", "StatusId": "2" }`;

curl_setopt($curl, CURLOPT_POSTFIELDS, $data);

//for debug only!

curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

$resp = curl_exec($curl);

curl_close($curl);

var_dump($resp);

?>

var url = "http://192.168.100.111:9100/api/v1/PosApi/InsertDataCrawler";

var xhr = new XMLHttpRequest();

xhr.open("POST", url);

xhr.setRequestHeader("Authorization", "Bearer {token}");

xhr.setRequestHeader("Content-Type", "application/json");

xhr.onreadystatechange = function () {

  if (xhr.readyState === 4) {

   console.log(xhr.status);

   console.log(xhr.responseText);

  }};

var data = `{ "Name": "PT. PANDEGA PANDU PERKASA", "Email": "putrawahyudin279@gmail.com", "Category": "2", "TelpNo": "-", "HandPhone": "085377325037", "Website": "-", "Address1": "Kab. Banyuasin", "EntityCd": "VPP", "ProjectNo": "VPP", "SalesCd": "CRW", "NamaSales": "Crawler", "ProspectingDate": "2021-06-04", "LocationCd": "-", "PropertyType": "HOUSE", "BusinessID": "N/A", "Remark": "-", "ProjectName": "RSH TANJUNG SENTOSA RESIDENCE", "SourceName": "BTN Properti", "SourceUrl": "https://www.btnproperti.co.id", "StatusId": "2" }`;

xhr.send(data);

import requests

from requests.structures import CaseInsensitiveDict

url = "http://192.168.100.111:9100/api/v1/PosApi/InsertDataCrawler"

headers = CaseInsensitiveDict()

headers["Authorization"] = "Bearer {token}"

headers["Content-Type"] = "application/json"

data = `{ "Name": "PT. PANDEGA PANDU PERKASA", "Email": "putrawahyudin279@gmail.com", "Category": "2", "TelpNo": "-", "HandPhone": "085377325037", "Website": "-", "Address1": "Kab. Banyuasin", "EntityCd": "VPP", "ProjectNo": "VPP", "SalesCd": "CRW", "NamaSales": "Crawler", "ProspectingDate": "2021-06-04", "LocationCd": "-", "PropertyType": "HOUSE", "BusinessID": "N/A", "Remark": "-", "ProjectName": "RSH TANJUNG SENTOSA RESIDENCE", "SourceName": "BTN Properti", "SourceUrl": "https://www.btnproperti.co.id", "StatusId": "2" }`

resp = requests.post(url, headers=headers, data=data)

print(resp.status_code)

URL url = new URL("http://192.168.100.111:9100/api/v1/PosApi/InsertDataCrawler");

HttpURLConnection http = (HttpURLConnection)url.openConnection();

http.setRequestMethod("POST");

http.setDoOutput(true);

http.setRequestProperty("Authorization", "Bearer {token}");

http.setRequestProperty("Content-Type", "application/json");


String data = "{ "Name": "PT. PANDEGA PANDU PERKASA", "Email": "putrawahyudin279@gmail.com", "Category": "2", "TelpNo": "-", "HandPhone": "085377325037", "Website": "-", "Address1": "Kab. Banyuasin", "EntityCd": "VPP", "ProjectNo": "VPP", "SalesCd": "CRW", "NamaSales": "Crawler", "ProspectingDate": "2021-06-04", "LocationCd": "-", "PropertyType": "HOUSE", "BusinessID": "N/A", "Remark": "-", "ProjectName": "RSH TANJUNG SENTOSA RESIDENCE", "SourceName": "BTN Properti", "SourceUrl": "https://www.btnproperti.co.id", "StatusId": "2" }";


byte[] out = data.getBytes(StandardCharsets.UTF_8);


OutputStream stream = http.getOutputStream();

stream.write(out);


System.out.println(http.getResponseCode() + " " + http.getResponseMessage());

http.disconnect();

var url = "http://192.168.100.111:9100/api/v1/PosApi/InsertDataCrawler";

var httpRequest = (HttpWebRequest)WebRequest.Create(url);

httpRequest.Method = "POST";

httpRequest.Headers["Authorization"] = "Bearer {token}";

httpRequest.ContentType = "application/json";

var data = `{ "Name": "PT. PANDEGA PANDU PERKASA", "Email": "putrawahyudin279@gmail.com", "Category": "2", "TelpNo": "-", "HandPhone": "085377325037", "Website": "-", "Address1": "Kab. Banyuasin", "EntityCd": "VPP", "ProjectNo": "VPP", "SalesCd": "CRW", "NamaSales": "Crawler", "ProspectingDate": "2021-06-04", "LocationCd": "-", "PropertyType": "HOUSE", "BusinessID": "N/A", "Remark": "-", "ProjectName": "RSH TANJUNG SENTOSA RESIDENCE", "SourceName": "BTN Properti", "SourceUrl": "https://www.btnproperti.co.id", "StatusId": "2" }`;

using (var streamWriter = new StreamWriter(httpRequest.GetRequestStream()))

{

  streamWriter.Write(data);

}

var httpResponse = (HttpWebResponse)httpRequest.GetResponse();

using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))

{

  var result = streamReader.ReadToEnd();

}

Console.WriteLine(httpResponse.StatusCode);

Example Insert Data Crawler Response

Sukses

{

   "Status": 200,

   "Message": "Success",

   "Data": {}

}


Failed

{

   "Status": 400,

   "message": "Error insert data",

   "data": {}

}

Title : Insert data from crawler to be integrated to VP+ ERP system

Note: This API is for test integration purpose, the live api version should be more validation. And addition of fields may occur due to the needs of the NII

Field Example Remarks
Name
[String]
PT.DUTA IDAMAN PROPERTY Nama Developer/Agen
Email
[String]
dutaidamanproperty@gmail.com Alamat email Developer/Agen
Category
[String]
1 Pilihan
*Attached
TelpNo
[String]
073652319 Nomor Telp Developer/Agen
HandPhone
[String]
085273722272 Nomor HandPhone Developer/Agen
Website
[String]
ptdutaidamanproperty.com Situs Developer/Agen
Address1
[String]
JL. TRI BRATA NO.12 RT.001 RW.003 Alamat Developer/Agen
EntityCd
[String]
VPP Kode Entitas (Default)
ProjectNo
[String]
VPP Nomor Proyek (Default)
SalesCd
[String]
CRW Sales ID (Default)
NamaSales
[String]
Crawler Nama Sales (Default)
ProspectingDate
[date format yyyy-MM-dd]
2021-06-09 Tanggal tersimpan di crawler [format yyyy-MM-dd]
LocationCd
[String]
Kota Bengkulu Based on our master mk_reff dengan tableCd survey_02
*Attached
PropertyType
[String]
APART Based on our master ut_tipe_bangunan
*Attached
BusinessID
[String]
N/A Customer ID
Remark
[String]
- Catatan
ProjectName
[String]
DUTA KANDANG MAS Nama Proyek
SourceName
[String]
BTN Properti Nama situs properti
SourceUrl
[String]
https://www.btnproperti.co.id Alamat situs properti
StatusId
[String]
01 Pilihan
*Attached

Get Invoice List

Invoice List

Endpoint: Invoice List

POST http://103.253.113.33:8101/AR/ListInvoice

Example Invoice List Request

curl --location --request GET "http://103.253.113.33:8101/AR/ListInvoice?StartDate=2021/01/01&EndDate=2021/12/12"

<?php

$curl = curl_init();

curl_setopt_array($curl, array(

 CURLOPT_URL => "http://103.253.113.33:8101/AR/ListInvoice?StartDate=2021/01/01&EndDate=2021/12/12",

 CURLOPT_RETURNTRANSFER => true,

 CURLOPT_ENCODING => " ",

 CURLOPT_MAXREDIRS => 10,

 CURLOPT_TIMEOUT => 0,

 CURLOPT_FOLLOWLOCATION => true,

 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

 CURLOPT_CUSTOMREQUEST => "GET",

));

$response = curl_exec($curl);

curl_close($curl);

echo $response;

var xhr = new XMLHttpRequest();

xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {

 if(this.readyState === 4) {

  console.log(this.responseText);

 }

});

xhr.open("GET", "http://103.253.113.33:8101/AR/ListInvoice?StartDate=2021/01/01&EndDate=2021/12/12");

xhr.send();

import requests

url = "http://103.253.113.33:8101/AR/ListInvoice?StartDate=2021/01/01&EndDate=2021/12/12"

payload={}

headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

OkHttpClient client = new OkHttpClient().newBuilder()

 .build();

Request request = new Request.Builder()

 .url("http://103.253.113.33:8101/AR/ListInvoice?StartDate=2021/01/01&EndDate=2021/12/12")

 .method("GET", null)

 .build();

Response response = client.newCall(request).execute();

using System;

using RestSharp;

namespace HelloWorldApplication {

 class HelloWorld {

  static void Main(string[] args) {

   var client = new RestClient("http://103.253.113.33:8101/AR/ListInvoice?StartDate=2021/01/01&EndDate=2021/12/12");

   client.Timeout = -1;

   var request = new RestRequest(Method.GET);

   IRestResponse response = client.Execute(request);

   Console.WriteLine(response.Content);

  }

 }

}

Example Invoice List Response

Sukses

[

  {

    "TipeTrans": "DP",

    "TglPajakFaktur": null,

    "TglJatuhTempo": null,

    "TglDok": "2021-07-10T00:00:00",

    "NoDok": "BAND/IV21070001",

    "KursAsing": 1.0,

    "KdUnit": "BLR-UW5-26",

    "KdProject": "RH",

    "KdPajakFaktur": null,

    "KdMatauang": "IDR",

    "KdEntitas": "BAND",

    "KdDebitur": "BLR-UW5-26",

    "JmlTrans": 2800000.00,

    "JmlTerbayar": 0.00,

    "JmlSaldo": 2800000.00,

    "JmlPpn": 0.00,

    "JmlDpp": 2800000.00,

    "Deskripsi": "BLR-UW5-26/Down Payment- 3/36",

    "CashBasis": "C"

  }


Failed

{

  "Message": "No HTTP resource was found that matches the request URI http://103.253.113.33:8101/AR/ListInvoice."

}

OR

{

  "Message": "An error has occurred."

}


URL Params

Required: 

StartDate: [datetime]

EndDate: [datetime]


Data Params

Example: 

{

    " StartDate ": "2021/07/01",

    " EndDate ": "2021/07/31”

}

Get Payment List

Official Receipt List

Endpoint: Official Receipt List

GET http://103.253.113.33:8101/AR/PenerimaanList

Example Official Receipt List Request

curl --location --request GET "http://103.253.113.33:8101/AR/PenerimaanList?StartDate=2021/01/01&EndDate=2021/12/12"

<?php

$curl = curl_init();

curl_setopt_array($curl, array(

 CURLOPT_URL => "http://103.253.113.33:8101/AR/PenerimaanList?StartDate=2021/01/01&EndDate=2021/12/12",

 CURLOPT_RETURNTRANSFER => true,

 CURLOPT_ENCODING => " ",

 CURLOPT_MAXREDIRS => 10,

 CURLOPT_TIMEOUT => 0,

 CURLOPT_FOLLOWLOCATION => true,

 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

 CURLOPT_CUSTOMREQUEST => "GET",

));

$response = curl_exec($curl);

curl_close($curl);

echo $response;

var xhr = new XMLHttpRequest();

xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {

 if(this.readyState === 4) {

  console.log(this.responseText);

 }

});

xhr.open("GET", "http://103.253.113.33:8101/AR/PenerimaanList?StartDate=2021/01/01&EndDate=2021/12/12");

xhr.send();

import requests

url = "http://103.253.113.33:8101/AR/PenerimaanList?StartDate=2021/01/01&EndDate=2021/12/12"

payload={}

headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

OkHttpClient client = new OkHttpClient().newBuilder()

 .build();

Request request = new Request.Builder().url("http://103.253.113.33:8101/AR/PenerimaanList?StartDate=2021/01/01&EndDate=2021/12/12")

 .method("GET", null)

 .build();

Response response = client.newCall(request).execute();

using System;

using RestSharp;

namespace HelloWorldApplication {

 class HelloWorld {

  static void Main(string[] args) {

   var client = new RestClient("http://103.253.113.33:8101/AR/PenerimaanList?StartDate=2021/01/01&EndDate=2021/12/12");

   client.Timeout = -1;

   var request = new RestRequest(Method.GET);

   IRestResponse response = client.Execute(request);

   Console.WriteLine(response.Content);

  }

 }

}

Example Official Receipt List Response

Sukses

[

   {

       "TipeTrans": "DP",

       "TglPajakFaktur": null,

       "TglJatuhTempo": null,

       "TglDok": "2021-07-10T00:00:00",

       "NoDok": "BAND/IV21070001",

       "KursAsing": 1.0,

       "KdUnit": "BLR-UW5-26",

       "KdProject": "RH",

       "KdPajakFaktur": null,

       "KdMatauang": "IDR",

       "KdEntitas": "BAND",

       "KdDebitur": "BLR-UW5-26",

       "JmlTrans": 2800000.00,

       "JmlTerbayar": 0.00,

       "JmlSaldo": 2800000.00,

       "JmlPpn": 0.00,

       "JmlDpp": 2800000.00,

       "Deskripsi": "BLR-UW5-26/Down Payment-13/36",

       "CashBasis": "C"

   }

]


Failed

{

  "Message": "No HTTP resource was found that matches the request URI http://103.253.113.33:8101/AR/PenerimaanList."

}

OR

{

  "Message": "An error has occurred."

}

URL Params

Required: 

StartDate: [datetime]

EndDate: [datetime]


Data Params

Example: 

{

    " StartDate ": "2021/07/01",

    " EndDate ": "2021/07/31”

}

Get Customer List

Customer List

Endpoint: Customer List

GET http://103.253.113.33:8101/AR/DebtorList

Example Customer List Request

curl --location --request GET "http://103.253.113.33:8101/AR/DebtorList"

<?php

$curl = curl_init();

curl_setopt_array($curl, array(

 CURLOPT_URL => "http://103.253.113.33:8101/AR/DebtorList",

 CURLOPT_RETURNTRANSFER => true,

 CURLOPT_ENCODING => " ",

 CURLOPT_MAXREDIRS => 10,

 CURLOPT_TIMEOUT => 0,

 CURLOPT_FOLLOWLOCATION => true,

 CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

 CURLOPT_CUSTOMREQUEST => "GET",

));

$response = curl_exec($curl);

curl_close($curl);

echo $response;

var xhr = new XMLHttpRequest();

xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function() {

 if(this.readyState === 4) {

  console.log(this.responseText);

 }

});

xhr.open("GET", "http://103.253.113.33:8101/AR/DebtorList");

xhr.send();

import requests

url = "http://103.253.113.33:8101/AR/DebtorList"

payload={}

headers = {}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

OkHttpClient client = new OkHttpClient().newBuilder()

 .build();

Request request = new Request.Builder()

 .url("http://103.253.113.33:8101/AR/DebtorList")

 .method("GET", null)

 .build();

Response response = client.newCall(request).execute();

using System;

using RestSharp;

namespace HelloWorldApplication {

 class HelloWorld {

  static void Main(string[] args) {

   var client = new RestClient("http://103.253.113.33:8101/AR/DebtorList");

   client.Timeout = -1;

   var request = new RestRequest(Method.GET);

   IRestResponse response = client.Execute(request);

   Console.WriteLine(response.Content);

  }

 }

}

Example Customer List Response

Sukses

[

  {

    "ProjectNo": "RH",

    "Name": "AITZAS IKHSAN",

    "EntityCd": "BAND",

    "DebtorAcct": "TDT-SI3-08/003",

    "BusinessId": "AC00105",

    "AlamatKtp": "JL. POROS MALINO KEC. SOMBA OPU KEL. BONTORAMBA GOWA RT. / RW. ",

    "AlamatKoresponden": "JL. POROS MALINO KEC. SOMBA OPU KEL. BONTORAMBA GOWA RT. / RW. "

  }


Failed

{

  "Message": "No HTTP resource was found that matches the request URI http://103.253.113.33:8101/AR/DebtorList."

}

OR

{

  "Message": "An error has occurred."

}


URL Params 

Required: 

Doesn’t need any parameter


Data Params 

Example: 

-