-
-
Save irshu355/6e166a3542c75a624a05c7754329303e to your computer and use it in GitHub Desktop.
Bearer 86mHCatynfXKhN4UKPwRmqYc81ZIkNKG0psu64ZDpxjU3ZkuezT2GVBi_NYzCiQjpj99FPRoiLavsORagu1Y5nsdQkoaHBZBhX02mTmWSlbzd482ecTtVen5pARc1K3D_fHpum4zeGVtFp6Vi1bHu6Bl5T6fnq6XRry_izK_Db-0PBPN5K2Po15HoxRwPJUa |
Bearer h2uQO0JbxFYT758EDL2MzZ0PMMbV_uguS6uof1XjVtd2PegK6PXO-gcBv4b3Tb76Ruk4RKR0ywUzBtHE-tK6QKTskZwByjOsgBN5K0ut6BgXs-cp2Fg_3t77T1i5I9H0V0YGnsQEqpeOBN44rpqHIdLgu9tg_yR2y3TUCRhWFEJ8m7M_usTYsnoZQqZQosXj
Bearer h2uQO0JbxFYT758EDL2MzZ0PMMbV_uguS6uof1XjVtd2PegK6PXO-gcBv4b3Tb76Ruk4RKR0ywUzBtHE-tK6QKTskZwByjOsgBN5K0ut6BgXs-cp2Fg_3t77T1i5I9H0V0YGnsQEqpeOBN44rpqHIdLgu9tg_yR2y3TUCRhWFEJ8m7M_usTYsnoZQqZQosXj
strGUID
45e3d682-1e4e-4616-875a-f05a0c034ac1
strCategory
2
strCreator
99013842
strCreatorCountry
MY
strCreatorCurrency
MYR
strRequestor
99013842
strRequestorCountry
MY
strRequestorCurrency
MYR
num_of_txn
1
Key
Value
NOTES:
- GUID created on navgigating to /addnewClaim
- endpoing /getFiles called to get the number of images
during save image:
request:
strAction: Insert
strEmployeeID: 99013842
strGUID: 75f8ae43-d0e5-4e76-a7b1-0688364a4887
strCountry: MY
response:
[
{
"guid": "75f8ae43-d0e5-4e76-a7b1-0688364a4887",
"file_name": "download.jpg",
"file_ext": ".jpg",
"file_url": "/Documents/MY/75f8ae43-d0e5-4e76-a7b1-0688364a4887/download.jpg",
"div_id": null,
"display_div_id": null
}
]
//once uploaded multiple images, response will have all previosuly uploaded images with the GUID
once saved via /addClaimDetail initially:
request:
strGUID: fe0bf965-be2f-4750-b3bd-23bd4c3ea45f
strCategory: 10
strCreator: 99013842
strCreatorCountry: MY
strCreatorCurrency: MYR
strRequestor: 99013842
strRequestorCountry: MY
strRequestorCurrency: MYR
num_of_txn: 1
response:
[
{
"guid": "75f8ae43-d0e5-4e76-a7b1-0688364a4887",
"txn_no": "MY-20190319105456-99013842_01",
"div_id": "att1",
"display_div_id": "att1",
"category": "12",
"file_name": "download.jpg",
"file_ext": ".jpg",
"file_url": "/Documents/MY/75f8ae43-d0e5-4e76-a7b1-0688364a4887/download.jpg"
}
]
then finally call /updateClaimDetail once user fill in all extra details:
request:
guid: 75f8ae43-d0e5-4e76-a7b1-0688364a4887
div_id: att1
txn_no: MY-20190319105456-99013842_01
item: 1
currency: MYR
category: 1
is_local: 1
is_cc: 0
receipt_start_date: 2019-03-19
receipt_end_date: 2019-03-19
foreign_currency: MYR
claim_amount: 229.7
vat: 0
wht: 0
recoverable: 0
project:
cost_center1:
cost_center1_perc: 0
cost_center2:
cost_center2_perc: 0
cost_center3:
cost_center3_perc: 0
cost_center4:
cost_center4_perc: 0
remarks:
TravelRefNo:
DepartureDate: 2019-03-19
DepartureCountry: BN
OtherDepartureCountry:
DepartureCity: OTHER
OtherDepartureCity: sdfg
ArrivalCountry: LA
OtherArrivalCountry:
ArrivalCity: Luang Prabhang
OtherArrivalCity:
TravelClass: 0
Airline:
OtherAirline:
AddFlightLeg: 0
AddDepartureDate: 2019-03-19
AddDepartureCountry:
AddOtherDepartureCountry:
AddDepartureCity:
AddOtherDepartureCity:
AddArrivalCountry:
AddOtherArrivalCountry:
AddArrivalCity:
AddOtherArrivalCity:
AddTravelClass: 0
AddAirline: 1
AddOtherAirline:
response:
[
{
"test3": 229.70
}
]
=================================
getting my claims via endpoint:
response:
[
{
"id": 1252,
"txn_no": "MY-20190319105456-99013842_01",
"date": "19/03/2019",
"payment_mode": "Non Corporate Credit Card",
"category": "Flights",
"currency_code": "MYR",
"amount": "229.70",
"status_id": 12,
"validate_msg": ""
},
{
"id": 1250,
"txn_no": "MY-20190319104510-99013842_01",
"date": "19/03/2019",
"payment_mode": "Non Corporate Credit Card",
"category": "Flights",
"currency_code": "MYR",
"amount": "10.00",
"status_id": 12,
"validate_msg": ""
},
{
"id": 1241,
"txn_no": "MY-20190319100251-99013842_01",
"date": "19/03/2019",
"payment_mode": "Non Corporate Credit Card",
"category": "Courier",
"currency_code": "MYR",
"amount": "99.85",
"status_id": 12,
"validate_msg": ""
},
{
"id": 1206,
"txn_no": "MY-20190318133720-99013842_01",
"date": "18/03/2019",
"payment_mode": "Non Corporate Credit Card",
"category": "Flexi Claim",
"currency_code": "MYR",
"amount": "0.00",
"status_id": 11,
"validate_msg": ""
},
{
"id": 1205,
"txn_no": "MY-20190318132925-99013842_01",
"date": "18/03/2019",
"payment_mode": "Non Corporate Credit Card",
"category": "Employee children education fee",
"currency_code": "MYR",
"amount": "0.00",
"status_id": 11,
"validate_msg": ""
}
]
{{
"strGUID": "457cbeda-ff41-46e9-ae88-b87b42d9c322",
"strCategory": "2",
"strCreator": "99013842",
"strCreatorCountry": "MY",
"strCreatorCurrency": "MYR",
"strReqeustor": "99013842",
"strRequestorCountry": "MY",
"strRequestorCurrency": "MYR",
"num_of_txn": "1"
}}
==================================================
getClaimDetails:
response:
"div_id": "att1",
"display_div_id": "att1",
"file_name": "",
"file_ext": "",
"file_url": "",
"claim_id": 1295,
"txn_no": "MY-20190319191331-99013842_01",
"gl_code": null,
"iS_CC": null,
"is_local": null,
"cc_no": null,
"cc_ref_no": null,
"category_id": null,
"subcategory_id": 2,
"receipt_start_date": "2019-03-19T19:13:31.827",
"receipt_end_date": "2019-03-19T19:13:31.827",
"total_amount": 0.00,
"currency_code": "MYR",
"foreign_currency": null,
"exchange_rate": 0.00,
"amount_foreign_currency": 0.00,
"client_recoverable": null,
"is_include_vat": 0,
"vat_percent": 0.00,
"vat_amount": 0.00,
"is_include_wht": 0,
"wht_percent": 0.00,
"wht_amount": 0.00,
"costcenter1": null,
"costcenter1_percent": null,
"costcenter2": null,
"costcenter2_percent": null,
"costcenter3": null,
"costcenter3_percent": null,
"costcenter4": null,
"costcenter4_percent": null,
"project_code": null,
"remark": null,
"status_id": 11,
"requestor_user_id": "99013842",
"creator_user_id": "99013842",
"created_date": "2019-03-19T19:13:31.827",
"changed_user_id": null,
"changed_date": null,
"validate_date": null,
"validate_msg": null,
"request_id": 0,
"request_changed_date": null,
"deleted_flag": 0,
"guid": "xxxxxxxx-xxxx-4xxx-gxxx-xxxxxxxxxxxx",
"country": null,
"city": null,
"occurence_date": null,
"cost_desc": null,
"tax": null,
"gift_country": null,
"gift_city": null,
"local_receive": null,
"num_local_receive": null,
"non_local_receive": null,
"num_non_local_receive": null,
"non_dksh_receive": null,
"num_public_officials_receive": null,
"num_hec_pro_receive": null,
"num_non_dksh_receive": null,
"gift_purchase_date": null,
"gift_dksh_prd": null,
"gift_reason": null,
"local_involve": null,
"num_local_involve": null,
"non_local_involve": null,
"num_non_local_involve": null,
"non_dksh_involve": null,
"num_public_officials_involve": null,
"num_hec_pro_involve": null,
"num_non_dksh_involve": null,
"meal_date": null,
"transport_date": null,
"transport_type": null,
"departure_date": null,
"departure_country": null,
"departure_city": null,
"arrival_country": null,
"arrival_city": null,
"travel_class": null,
"airline": null,
"add_flight": null,
"hotel": null,
"checkin_date": null,
"checkout_date": null,
"num_night": null,
"event_code": null,
"event_subtype_code": null,
"c_payment_mode": "Non Corporate Credit Card",
"other_country": null,
"other_city": null,
"other_transport_type": null,
"other_hotel": null,
"other_gift_country": null,
"other_gift_city": null,
"other_departure_country": null,
"other_departure_city": null,
"other_arrival_country": null,
"other_arrival_city": null,
"other_airline": null,
"add_departure_date": null,
"add_departure_country": null,
"add_other_departure_country": null,
"add_departure_city": null,
"add_other_departure_city": null,
"add_arrival_country": null,
"add_other_arrival_country": null,
"add_arrival_city": null,
"add_other_arrival_city": null,
"add_travel_class": null,
"add_airline": null,
"add_other_airline": null,
"travel_ref_no": null,
"parking": null,
"fitness": null,
"mobile": null,
"toll": null,
"public_transport": null,
"taxi": null,
"loan_start_date": null,
"loan_end_date": null,
"start_date_time": null,
"end_date_time": null,
"apc_event_id": null,
"receiptstartdate": "19/03/2019",
"receiptenddate": "19/03/2019",
"loanstartdate": null,
"loanenddate": null,
"startdatetime": null,
"enddatetime": null,
"occurencedate": "20/03/2019",
"giftpurchasedate": "20/03/2019",
"mealdate": "20/03/2019",
"transportdate": "20/03/2019",
"departuredate": "20/03/2019",
"checkindate": "20/03/2019",
"checkoutdate": "20/03/2019"
Bearer LBSd2ZC52sUOdeDoTtRdb25hL-HGiVjIZAKsmCApfHGYgOz4vuwwkFaqdGjp1FfpTw_2YnF6B43cFwdtRDwb5W189rU2TVpXHSTesxu7aArXm1yXDxaiRLxqkZZ2g-i0N0b0ZkrTw0AUNIc-9FEe00NXK-wzyc_w6lHkY8MXhlEulb92oNGSSq6fb2dqs4nd
08e8e37e-7980-436d-8adb-be210bea573a
d5660f9f-1148-49a0-ad1e-e60ac1ea7bb5
<select class="form-control" id="ddlCategory1" required=""><option value="" label=""></option><option value="2" label="Accommodation"></option><option value="17" label="Advertising & Promotions"></option><option value="12" label="Business/Professional journal subscription fee"></option><option value="19" label="Car/Motorcycle loan interest subsidy"></option><option value="15" label="Courier"></option><option value="22" label="Dental and optical"></option><option value="8" label="Disputed transactions"></option><option value="20" label="Employee children education fee"></option><option value="21" label="Employee education sponsorship/assistance"></option><option value="23" label="Fitness/Wellness/Lifestyle membership fee"></option><option value="1" label="Flights"></option><option value="6" label="Gifts"></option><option value="18" label="House loan interest subsidy"></option><option value="25" label="Internet"></option><option value="3" label="Meals / Entertainment"></option><option value="10" label="Medical check up/Annual health checks"></option><option value="24" label="Medical expenses (Outpatient/Inpatient)"></option><option value="13" label="Other benefits - Maternity expenses"></option><option value="14" label="Other benefits - Others"></option><option value="16" label="Per Diem"></option><option value="26" label="Phone"></option><option value="11" label="Professional body subscription fee"></option><option value="9" label="Training"></option><option value="4" label="Transport"></option><option value="5" label="Travel Other"></option></select>
[
{
"request_id": 55,
"reference_no": "MY-C-20190311-9B26FE",
"created_date": "11/03/2019",
"status_id": 7,
"status_name": "Revised",
"iS_CC": 0,
"c_payment_mode": "Non Corporate Credit Card",
"total_amount": "890.00",
"currency_code": "MYR",
"request_name": "Workshop XYZ @ Singapore"
},
{
"request_id": 54,
"reference_no": "MY-C-20190311-EBFC2C",
"created_date": "11/03/2019",
"status_id": 2,
"status_name": "Submited",
"iS_CC": 0,
"c_payment_mode": "Non Corporate Credit Card",
"total_amount": "273.95",
"currency_code": "MYR",
"request_name": "2019 Feb BKK trip"
},
{
"request_id": 53,
"reference_no": "MY-C-20190311-93D05E",
"created_date": "11/03/2019",
"status_id": 10,
"status_name": "Cancelled",
"iS_CC": 0,
"c_payment_mode": "Non Corporate Credit Card",
"total_amount": "1,214.71",
"currency_code": "MYR",
"request_name": "February 2019 Expense Claim"
}
]