PT Asuransi Heksa Insurance X Moringa API Gateway
- Sender : Heksa
- Target API : Moringa
- Submit Data aplication from Heksa to Moringa API
http://heksaku.moringaku.com/my/heksaku.php
Params | Data Type | Mandatory | Length | Description |
---|---|---|---|---|
username | [text] | Y | ||
password | [text] | Y |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
ProductName | [text] | Y | 150 | ||
ProductPackageName | [text] | Y | 150 | ||
ProductType | [number] | Y | 1 = Bulanan, 2 = Tahunan | ||
Premium | [number] | Y | |||
SumInsured | [number] | Y | |||
SPAJNo | [text] | Y | 20 | ||
ReferenceCode | [text] | Y | 20 | RefId from moringa | |
TransactionCode | [text] | Y | 20 | TrxId from moringa | |
TransactionDate | [date] | Y | format dd/MM/yyyy | ||
PolicyHolder | [jsonObject] | Y | |||
FullName | [text] | Y | 250 | ||
[text] | Y | 50 | |||
Phone | [text] | Y | |||
KTPNo | [text] | Y | 16 | ||
DOB | [date] | Y | format dd/MM/yyyy | ||
Address | [text] | Y | 200 | ||
Sex | [text] | Y | e.x pria, wanita | ||
ProvinceName | [text] | Y | |||
CityName | [text] | Y | |||
NPWP | [text] | Y | |||
Insured | [jsonObject] | Y | |||
FullName | [text] | Y | 250 | ||
[text] | Y | 50 | |||
Phone | [text] | Y | |||
KTPNo | [text] | Y | 16 | ||
DOB | [date] | Y | format dd/MM/yyyy | ||
Address | [text] | Y | 200 | ||
Sex | [text] | Y | e.x pria, wanita | ||
ProvinceName | [text] | Y | |||
CityName | [text] | Y | |||
Beneficiary | [jsonObject] | Y | |||
FullName | [text] | Y | 50 | ||
Relation | [text] | Y | e.x istri, suami, anak, ayah, ibu, kakak, adik, orang tua | ||
DOB | [date] | Y | format dd/MM/yyyy | ||
Bank | [jsonObject] | Y | |||
BankName | [text] | Y | |||
BankBranch | [text] | Y | |||
BankAccountName | [text] | Y | |||
BankAccountNo | [text] | Y |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
$.ajax({
url: "http://heksaku.moringaku.com/my/heksaku.php",
authorization: {
"type": "Basic Auth",
"username": "5D89006A21776A45E050A8C04E0A33D8",
"password":"56c217cd-0bea-4f64-8ae2-2db0a71fea35"
}
headers: {
"Authorization": "5D89006A21776A45E050A8C04E0A33D8",
}
dataType: "json",
type : "POST",
data: {
"ProductName":"Asuransi Heksa Proteksi Plus",
"ProductPackageName":"Silver",
"ProductType":"2",
"Premium":1500000.0,
"SumInsured":84000000.0,
"SPAJNo":"NCB013",
"ReferenceCode":"Ref01",
"TransactionCode":"031312313",
"TransactionDate":"",
"PolicyHolder": {
"FullName":"Jhone Doe",
"Email":"jhone@outlook.com",
"Phone":"085623421112",
"KTPNo":"asdasd",
"DOB":"01/08/1990",
"Address":"asdasd",
"Sex":"L",
"ProvinceName":"Jawa Barat",
"CityName":"Cirebon",
"NPWP":"023324234234234234"
},
"Insured": {
"FullName":"Jhone Doe",
"Email":"jhone@outlook.com",
"Phone":"085623421112",
"KTPNo":"asdasd",
"DOB":"01/08/1990",
"Address":"asdasd",
"Sex":"L",
"ProvinceName":"Jawa Barat",
"CityName":"Cirebon"
},
"Beneficiary": {
"FullName":"penerima1",
"Relation":"Anak",
"DOB":"02/07/2017"
},
"Bank": {
"BankName":"Mandiri",
"BankBranch":"kuningan",
"BankAccountName":"jhon doe",
"BankAccountNo":"034234234234234"
}
},
success : function(response) {
console.log(response);
}
});
{
"status": 200,
"message": "Success",
"data": {
}
}
{
"status": 500,
"message": "There is an error in system",
"data": {
}
}
- Sender : Heksa
- Target API : Moringa
- Submit Status Payment From Heksa To Moringa API
http://heksaku.moringaku.com/my/heksaku2.php
Params | Data Type | Mandatory | Length | Description |
---|---|---|---|---|
username | [text] | Y | ||
password | [text] | Y |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
ReferenceCode | [text] | Y | 20 | RefId from moringa | |
TransactionCode | [text] | Y | 20 | TrxId from moringa | |
SPAJNo | [text] | Y | 20 | ||
PolicyNo | [text] | Y | 30 | ||
PolicySoftCopyLink | [text] | Y | 500 | ||
Status | [text] | Y | 500 | BERHASIL, GAGAL |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
status | [Text] | Y | 4 | ||
message | [Text] | Y | 100 | ||
data | [jsonObject] |
$.ajax({
url: "http://heksaku.moringaku.com/my/heksaku2.php",
authorization: {
"type": "Basic Auth",
"username": "5D89006A21776A45E050A8C04E0A33D8",
"password":"56c217cd-0bea-4f64-8ae2-2db0a71fea35"
}
headers: {
"Authorization": "5D89006A21776A45E050A8C04E0A33D8",
}
dataType: "json",
type : "POST",
data: {
"ReferenceCode":"Ref001",
"TransactionCode":"Trx002",
"SPAJNo":"NCB001",
"PolicyNo":"8190100001",
"PolicySoftCopyLink":"https://heksainsurance.co.id/heksaecommerce/home/cetakpolis?polNo=8190100001",
"Status": "BERHASIL",
},
success : function(response) {
console.log(response);
}
});
{
"status": 200,
"message": "Success",
"data": {
}
}
{
"status": 500,
"message": "There is an error in system",
"data": {
}
}
- Sender : Heksa
- Target API : Moringa
- Request Data Informasi Referral From Moringa API
http://heksaku.moringaku.com/my/heksaku3.php
Params | Data Type | Mandatory | Length | Description |
---|---|---|---|---|
username | [text] | Y | ||
password | [text] | Y |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
ReferenceCode | [text] | Y | 20 | ||
TransactionCode | [text] | Y | 20 |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
status | [Text] | Y | 4 | ||
message | [Text] | Y | 100 | ||
data | [jsonObject] | ||||
FullName | [Text] | 150 | |||
Phone | [Text] | 20 | |||
[Text] | 150 |
$.ajax({
url: "http://heksaku.moringaku.com/bulanan/heksaku3.php",
authorization: {
"type": "Basic Auth",
"username": "5D89006A21776A45E050A8C04E0A33D8",
"password":"56c217cd-0bea-4f64-8ae2-2db0a71fea35"
}
headers: {
"Authorization": "5D89006A21776A45E050A8C04E0A33D8",
}
dataType: "json",
type : "POST",
data: {
"ReferenceCode":"Ref001",
"TransactionCode":"Trx002",
},
success : function(response) {
console.log(response);
}
});
{
"status": 200,
"message": "Success",
"data": {
"FullName":"Jhone Djo",
"Phone":"082342423423423",
"Email":"082424342"
}
}
{
"status": 500,
"message": "There is an error in system",
"data": {
"FullName":"",
"Phone":"",
"Email":""
}
}
- Sender : Heksa
- Target API : Moringa
- Submit Status Renewal Payment From Heksa To Moringa API
http://heksaku.moringaku.com/my/heksaku4.php
Params | Data Type | Mandatory | Length | Description |
---|---|---|---|---|
username | [text] | Y | ||
password | [text] | Y |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
ReferenceCode | [text] | Y | 20 | refid from moringa | |
TransactionCode | [text] | Y | 20 | trxid from moringa | |
SPAJNo | [text] | Y | 20 | ||
PolicyNo | [text] | Y | 20 | ||
ProductType | [number] | Y | 1 = Bulanan, 2 = Tahunan | ||
BillingPayments | [ArrayJsonObject] | Y | |||
BillingCode | [Text] | Y | 50 | ||
PaymentDate | [date] | Y | (tanggal pembayaran) format dd/MM/yyyy | ||
DueDate | [date] | Y | (tanggal Jatuh tempo) format dd/MM/yyyy | ||
PaymentType | [Text] | Y | 50 | 1 = Credit Card, 2 = VA | |
BillingOrder | [number] | Y | |||
BillingYearOrder | [number] | Y | |||
Amount | [number] | Y | |||
Status | [Text] | Y | BERHASIL, GAGAL |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
status | [Text] | Y | 4 | ||
message | [Text] | Y | 100 | ||
data | [jsonObject] |
$.ajax({
url: "http://heksaku.moringaku.com/my/heksaku4.php",
authorization: {
"type": "Basic Auth",
"username": "5D89006A21776A45E050A8C04E0A33D8",
"password":"56c217cd-0bea-4f64-8ae2-2db0a71fea35"
}
headers: {
"Authorization": "5D89006A21776A45E050A8C04E0A33D8",
}
dataType: "json",
type : "POST",
data: {
"ReferenceCode":"Ref001",
"TransactionCode":"Trx002",
"SPAJNo":"NCB19010009",
"PolicyNo": "8190100003",
"ProductType":"2"
"BillingPayments":[{
"BillingCode":"190200000030",
"PaymentDate":"20/12/2019",
"DueDate":"05/01/2019",
"PaymentType":"1",
"BillOrder":"2",
"BillYearOrder":"2",
"Amount":"3000000",
"Status":"BERHASIL"
}, {
"BillingCode":"190200000030",
"PaymentDate":"20/12/2019",
"DueDate":"05/01/2020",
"PaymentType":"1",
"BillOrder":"3",
"BillYearOrder":"3",
"Amount":"3000000",
"Status":"BERHASIL"
}
]
},
success : function(response) {
console.log(response);
}
});
{
"status": 200,
"message": "Success",
"data": {
}
}
{
"status": 500,
"message": "There is an error in system",
"data": {
}
}
- Sender : Heksa
- Target API : Moringa
- Submit Repayment Page URL From Heksa To Moringa API
- Kirim URL untuk pembayaran ulang apabila tidak ada transaksi selama 1 jam / terjadi error pada doku
http://heksaku.moringaku.com/my/heksaku5.php
Params | Data Type | Mandatory | Length | Description |
---|---|---|---|---|
username | [text] | Y | ||
password | [text] | Y |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
ReferenceCode | [text] | Y | 20 | ||
TransactionCode | [text] | Y | 20 | ||
URL | [text] | Y | 250 |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
status | [Text] | Y | 4 | ||
message | [Text] | Y | 100 | ||
data | [jsonObject] |
$.ajax({
url: "http://heksaku.moringaku.com/my/heksaku5.php",
authorization: {
"type": "Basic Auth",
"username": "5D89006A21776A45E050A8C04E0A33D8",
"password":"56c217cd-0bea-4f64-8ae2-2db0a71fea35"
}
headers: {
"Authorization": "5D89006A21776A45E050A8C04E0A33D8",
}
dataType: "json",
type : "POST",
data: {
"ReferenceCode":"Ref001",
"TransactionCode":"Trx002",
"URL":"https://heksainsurance.co.id/heksaecommerce/beli/repayment?trxid=Trx002&refid=Ref001"
},
success : function(response) {
console.log(response);
}
});
{
"status": 200,
"message": "Success",
"data": {
}
}
{
"status": 500,
"message": "There is an error in system",
"data": {
}
}
- Sender : Moringa
- Target API : Heksa
- Get All Transaction in 1 day
https://heksainsurance.co.id/heksaecommerceapi/api/GetDataByDate?date=<dd/MM/yyyy>
Params | Data Type | Mandatory | Length | Description |
---|---|---|---|---|
username | [text] | Y | ||
password | [text] | Y |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
StatusCode | [text] | Y | 4 | 00 = success, 50 = error | |
StatusMessage | [text] | Y | 100 | API Status success, error | |
Value | [jsonObject] | Y | |||
ProductName | [text] | Y | 150 | ||
ProductPackageName | [text] | Y | 150 | ||
ProductType | [number] | Y | |||
Premium | [number] | Y | |||
SumInsured | [number] | Y | |||
SPAJNo | [text] | Y | 20 | ||
ReferenceCode | [text] | Y | 20 | ||
TransactionCode | [text] | Y | 20 | ||
TransactionDate | [date] | Y | |||
PolicyHolder | [jsonObject] | Y | |||
FullName | [text] | Y | 250 | ||
[text] | Y | 50 | |||
Phone | [text] | Y | |||
KTPNo | [text] | Y | 16 | ||
DOB | [date] | Y | |||
Address | [text] | Y | 200 | ||
Sex | [text] | Y | |||
ProvinceName | [text] | Y | |||
CityName | [text] | Y | |||
NPWP | [text] | Y | |||
Insured | [jsonObject] | Y | |||
FullName | [text] | Y | 250 | ||
[text] | Y | 50 | |||
Phone | [text] | Y | |||
KTPNo | [text] | Y | 16 | ||
DOB | [date] | Y | |||
Address | [text] | Y | 200 | ||
Sex | [text] | Y | |||
ProvinceName | [text] | Y | |||
CityName | [text] | Y | |||
Beneficiary | [jsonObject] | Y | |||
FullName | [text] | Y | 50 | ||
Relation | [text] | Y | |||
DOB | [date] | Y | |||
Bank | [jsonObject] | Y | |||
BankName | [text] | Y | |||
BankBranch | [text] | Y | |||
BankAccountName | [text] | Y | |||
BankAccountNo | [text] | Y |
$.ajax({
url: "https://heksainsurance.co.id/heksaecommerceapi/api/GetDataByDate?date=03/10/2018",
authorization: {
"type": "Basic Auth",
"username": "5D89006A21776A45E050A8C04E0A33D8",
"password":"56c217cd-0bea-4f64-8ae2-2db0a71fea35"
}
headers: {
"Authorization": "5D89006A21776A45E050A8C04E0A33D8",
}
dataType: "json",
type : "POST",
success : function(response) {
console.log(response);
}
});
{
"StatusCode": "00",
"StatusMessage": "Success",
"Value": {
"ProductName": "Heksa Proteksi Plus",
"ProductPackageName": "Silver",
"ProductType": "2",
"Premium": "1500000",
"SumInsured": "65000000",
"ReferenceCode": "moringaku",
"SPAJNo": "NCB000001071",
"TransactionCode": "testtingID1245",
"TransactionDate": "03/10/2018",
"PaymentStatus": "GAGAL",
"PolicyHolder": {
"FullName": "Test DOKU",
"Email": "test@gmail.com",
"Phone": "0215150555",
"KTPNo": "3201257300498888",
"DOB": "01/10/1987",
"Address": "Jl. Kebon Jeruk",
"Sex": "P",
"ProvinceName": "DKI Jakarta",
"CityName": "Kota Jakarta Barat",
"NPWP": "01020304050607"
},
"Insured": {
"FullName": "Test DOKU",
"Email": "test@gmail.com",
"Phone": "0215150555",
"KTPNo": "3201257300498888",
"DOB": "01/10/1987",
"Address": "Jl. Kebon Jeruk",
"Sex": "P",
"ProvinceName": "DKI Jakarta",
"CityName": "Kota Jakarta Barat"
},
"Beneficiary": null,
"Bank": {
"BankName": "BCA",
"BankBranch": "Jakarta",
"BankAccountName": "Test",
"BankAccountNo": "123456789"
}
},
{
"ProductName": "Heksa Proteksi Plus",
"ProductPackageName": "Silver",
"Premium": "1500000",
"SumInsured": "85000000",
"ReferenceCode": "ncb000001011",
"SPAJNo": "NCB000001072",
"TransactionCode": "153854380724677",
"TransactionDate": "03/10/2018",
"PaymentStatus": "GAGAL",
"PolicyHolder": {
"FullName": "testing production 1003",
"Email": "xxxxx@outlook.com",
"Phone": "08555555555",
"KTPNo": "0324823482382823",
"DOB": "06/10/2000",
"Address": "asdasd asdasd",
"Sex": "L",
"ProvinceName": "Nanggroe Aceh Darussalam (NAD)",
"CityName": "Kabupaten Aceh Barat",
"NPWP": ""
},
"Insured": {
"FullName": "testing production 1003",
"Email": "ibnu.nugroho@outlook.com",
"Phone": "0855555555555",
"KTPNo": "0324823482382823",
"DOB": "06/10/2000",
"Address": "asdasd asdasd",
"Sex": "L",
"ProvinceName": "Nanggroe Aceh Darussalam (NAD)",
"CityName": "Kabupaten Aceh Barat"
},
"Beneficiary": null,
"Bank": {
"BankName": "Mandiri",
"BankBranch": "Cirebon",
"BankAccountName": "xxxxxxxxxxxx",
"BankAccountNo": "04242323434324"
}
}
},
{
"StatusCode": "500",
"StatusMessage": "There is an error in system",
"Value" : null
}
- Sender : Moringa
- Target API : Heksa
- Get All Transaction by TrxID
https://heksainsurance.co.id/heksaecommerceapi/api/GetDataByTrxID?trxid=testtingID1245
Params | Data Type | Mandatory | Length | Description |
---|---|---|---|---|
username | [text] | Y | ||
password | [text] | Y |
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
Params | Data Type | Mandatory | Length | Description | |
---|---|---|---|---|---|
StatusCode | [text] | Y | 4 | 00 = success, 50 = error | |
StatusMessage | [text] | Y | 100 | API Status success, error | |
Value | [jsonObject] | Y | |||
ProductName | [text] | Y | 150 | ||
ProductPackageName | [text] | Y | 150 | ||
ProductType | [number] | Y | |||
Premium | [number] | Y | |||
SumInsured | [number] | Y | |||
SPAJNo | [text] | Y | 20 | ||
ReferenceCode | [text] | Y | 20 | ||
TransactionCode | [text] | Y | 20 | ||
TransactionDate | [date] | Y | |||
PolicyHolder | [jsonObject] | Y | |||
FullName | [text] | Y | 250 | ||
[text] | Y | 50 | |||
Phone | [text] | Y | |||
KTPNo | [text] | Y | 16 | ||
DOB | [date] | Y | |||
Address | [text] | Y | 200 | ||
Sex | [text] | Y | |||
ProvinceName | [text] | Y | |||
CityName | [text] | Y | |||
NPWP | [text] | Y | |||
Insured | [jsonObject] | Y | |||
FullName | [text] | Y | 250 | ||
[text] | Y | 50 | |||
Phone | [text] | Y | |||
KTPNo | [text] | Y | 16 | ||
DOB | [date] | Y | |||
Address | [text] | Y | 200 | ||
Sex | [text] | Y | |||
ProvinceName | [text] | Y | |||
CityName | [text] | Y | |||
Beneficiary | [jsonObject] | Y | |||
FullName | [text] | Y | 50 | ||
Relation | [text] | Y | |||
DOB | [date] | Y | |||
Bank | [jsonObject] | Y | |||
BankName | [text] | Y | |||
BankBranch | [text] | Y | |||
BankAccountName | [text] | Y | |||
BankAccountNo | [text] | Y |
$.ajax({
url: "https://heksainsurance.co.id/heksaecommerceapi/api/GetDataByDate?date=03/10/2018",
authorization: {
"type": "Basic Auth",
"username": "5D89006A21776A45E050A8C04E0A33D8",
"password":"56c217cd-0bea-4f64-8ae2-2db0a71fea35"
}
headers: {
"Authorization": "5D89006A21776A45E050A8C04E0A33D8",
}
dataType: "json",
type : "POST",
success : function(response) {
console.log(response);
}
});
{
"StatusCode": "00",
"StatusMessage": "Success",
"Value": {
"ProductName": "Heksa Proteksi Plus",
"ProductPackageName": "Silver",
"ProductType": "2",
"Premium": "1500000",
"SumInsured": "65000000",
"SPAJNo": "NCB000001071",
"ReferenceCode": "moringaku",
"TransactionCode": "testtingID1245",
"TransactionDate": "03/10/2018",
"PaymentStatus": "GAGAL",
"PolicyHolder": {
"FullName": "Test DOKU",
"Email": "test@gmail.com",
"Phone": "0215150555",
"KTPNo": "3201257300498888",
"DOB": "01/10/1987",
"Address": "Jl. Kebon Jeruk",
"Sex": "P",
"ProvinceName": "DKI Jakarta",
"CityName": "Kota Jakarta Barat",
"NPWP": "01020304050607"
},
"Insured": {
"FullName": "Test DOKU",
"Email": "test@gmail.com",
"Phone": "0215150555",
"KTPNo": "3201257300498888",
"DOB": "01/10/1987",
"Address": "Jl. Kebon Jeruk",
"Sex": "P",
"ProvinceName": "DKI Jakarta",
"CityName": "Kota Jakarta Barat"
},
"Beneficiary": null,
"Bank": {
"BankName": "BCA",
"BankBranch": "Jakarta",
"BankAccountName": "Test",
"BankAccountNo": "123456789"
}
},
{
"ProductName": "Heksa Proteksi Plus",
"ProductPackageName": "Silver",
"Premium": "1500000",
"SumInsured": "85000000",
"ReferenceCode": "ncb000001011",
"SPAJNo": "NCB000001072",
"TransactionCode": "153854380724677",
"TransactionDate": "03/10/2018",
"PaymentStatus": "GAGAL",
"PolicyHolder": {
"FullName": "testing production 1003",
"Email": "xxxxx@outlook.com",
"Phone": "08555555555",
"KTPNo": "0324823482382823",
"DOB": "06/10/2000",
"Address": "asdasd asdasd",
"Sex": "L",
"ProvinceName": "Nanggroe Aceh Darussalam (NAD)",
"CityName": "Kabupaten Aceh Barat",
"NPWP": ""
},
"Insured": {
"FullName": "testing production 1003",
"Email": "xxxx@outlook.com",
"Phone": "08555555555",
"KTPNo": "0324823482382823",
"DOB": "06/10/2000",
"Address": "asdasd asdasd",
"Sex": "L",
"ProvinceName": "Nanggroe Aceh Darussalam (NAD)",
"CityName": "Kabupaten Aceh Barat"
},
"Beneficiary": null,
"Bank": {
"BankName": "Mandiri",
"BankBranch": "Cirebon",
"BankAccountName": "xxxxxxxxxxx",
"BankAccountNo": "04242323434324"
}
}
},
{
"StatusCode": "500",
"StatusMessage": "There is an error in system",
"Value" : null
}