0% found this document useful (0 votes)
57 views5 pages

API Dokumen - Tempahan

Uploaded by

calendarshahfizi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views5 pages

API Dokumen - Tempahan

Uploaded by

calendarshahfizi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

APPLICATION PROGRAMMING INTERFACE

(API)

TEMPAHAN DEWAN/GELANGGANG

- MAKLUMAT BIL TEMPAHAN


- KEMASKINI STATUS BIL TEMPAHAN

Disediakan oleh

13 April 2023
1. APPLICATION PROGRAMMING INTERFACE (API) Maklumat Bil Tempahan
End Point : https://ipbt.mbsa.gov.my/api/v1/public/tempahan/search/<ref_no>
Method : GET
Key : ref_no, value : no bil tempahan contoh : T20230300003

RETURN JASON
Bil Dijumpai:
"return": 1,
"booking": {
"id": 996,
"asset_id": 32,
"activity_id": 3,
"discount_id": null,
"appeal_id": null,
"ref_no": "T20230300003",
"source": "Sistem Utama",
"type": null,
"user_type": "INDIVIDU",
"user_name": "MOHAMAD HATTA BIN AB LATIF",
"user_id": "650901108997",
"user_phone": "0192798858",
"user_email": "",
"user_address_1": "NO. 3, JALAN KIJANG 20/5",
"user_address_2": "SEKSYEN 20",
"user_address_3": " ",
"user_postcode": "40300",
"user_city": "SHAH ALAM",
"user_state": "SELANGOR",
"start_date": "2023-12-24",
"end_date": "2023-12-25",
"comment": " ",
"total": "800.00",
"status": "DITEMPAH",
"comment_changed": null,
"comment_cancelled": null,
"created_at": "2023-03-01T01:36:41.000000Z",
"updated_at": "2023-03-01T01:36:41.000000Z",
"payment_ref_no": "5893",
"paid_at": "2023-03-01T01:57:14.000000Z",
"files": null,
"cagaran_bil_no": null,
"no_resit": null,
"no_rujukan": null,
"no_mesin": null,
"payment_status": "TELAH DIBAYAR",
"asset": {
"id": 32,
"category_id": 1,
"section_id": 12,
"group_id": null,
"name": "DEWAN ALAMANDA",
"code": "DB020A",
"address": "Jalan Singa 20/1",
"area_kp": 9216,
"area_mp": 856,
"gps_coordinates": "03 03.192 101 32.256",
"images": null,
"status": "BOLEH DITEMPAH",
"is_active": true,
"created_at": "2023-04-05T05:49:36.000000Z",
"updated_at": "2023-04-05T05:49:36.000000Z",
"category": {
"id": 1,
"name": "DEWAN BESAR",
"description": null,
"created_at": "2023-04-05T05:49:29.000000Z",
"updated_at": "2023-04-05T05:49:29.000000Z",
"code": null,
"is_active": true
},
"section": {
"id": 12,
"code": "20",
"name": "SEKSYEN 20",
"created_at": "2023-04-05T05:49:30.000000Z",
"updated_at": "2023-04-05T05:49:30.000000Z"
}
},
"activity": {
"id": 3,
"type_id": 1,
"name": "PERKAHWINAN / HARI JADI / AQIQAH",
"fees": [
"sewa",
"cagaran"
],
"is_active": true,
"created_at": "2023-04-05T05:49:35.000000Z",
"updated_at": "2023-04-05T05:49:35.000000Z",
"type": {
"id": 1,
"name": "KERAIAN",
"description": null,
"created_at": "2023-04-05T05:49:35.000000Z",
"updated_at": "2023-04-05T05:49:35.000000Z",
"is_active": true
}
},
"timeslots": [
{
"id": 10,
"asset_id": 32,
"timeslot_id": 81,
"name": "DEWAN ALAMANDA",
"fees": {
"sewa": "800",
"cagaran": "400"
},
"created_at": "2023-04-05T05:49:37.000000Z",
"updated_at": "2023-04-05T05:49:37.000000Z",
"is_active": true,
"is_blocked": false,
"blocked_by": null,
"blocked_date": null,
"pivot": {
"booking_id": 996,
"asset_timeslot_id": 10,
"date": "2023-12-24T16:00:00.000000Z"
},
"timeslot": {
"id": 81,
"activity_id": 3,
"start_time": "10:00:00",
"end_time": "16:00:00",
"fees": {
"sewa": 0,
"cagaran": 0
},
"status": "AKTIF",
"created_at": "2023-04-05T05:49:37.000000Z",
"updated_at": "2023-04-05T05:49:37.000000Z"
}
}
],
"additional_facilities": [],
"discount": null
}
}
2. APPLICATION PROGRAMMING INTERFACE (API) Kemaskini Status Bil Tempahan
End Point : https://ipbt.mbsa.gov.my/api/v1/public/tempahan/<ref_no>/payment
Method : PUT
Key : ref_no, value : no bil tempahan contoh : T20230300003

RETURN JASON
Bil Dijumpai:
{
"return": 1,
"no_bil": " T20230300003",
"message": "KEMASKINI MAKLUMAT TEMPAHAN BERJAYA"
}

You might also like