Question Scoring



yaitu proses untuk mendapatkan result scoring dengan mengirimkan question ke sistem SIJITU.


Mitra akan mengirimkan data ke Espay kemudian Espay akan meresponse dengan JSON format berisi Detail kategori question.


Alur Pesan

Merchant -> Espay

Metode

HTTP Post

API URL

Development : https://sandbox-api.espay.id/cdd/sijitu/questionscoring
Production : https://api.espay.id/cdd/sijitu/questionscoring



Parameter Request:
Nama Parameter Max Length Mandatory Keterangan
rq_uuid 64 Ya Request identifier. Id unik untuk mengidentifikasi pesan ini dengan pesan lainnya
rq_datetime 19 Ya Tanggal dan waktu di server aplikasi Espay saat pesan terkirim
sender_id 32 Ya Kode identitas merchant yang terdaftar pada aplikasi Espay
user_id 64 Ya email yang terdaftar di Sijitu
organization_id 32 Ya Kode merchant yang terdaftar di Sijitu
id_scoring 11 Ya ID Scoring yang didapatkan dari API List Scoring
signature 64 Ya Signature yang harus divalidasi oleh Espay. Klik Disini untuk detailnya


Parameter Response:
Nama Parameter Max Length Mandatory Keterangan
rq_uuid 64 Ya Request identifier. Id unik untuk mengidentifikasi pesan ini dengan pesan lainnya
rs_datetime 32 Ya Tanggal dan waktu di server aplikasi Espay saat pesan terkirim
error_code 4 Ya Kode error pada web service, 0000 artinya success
error_message 32 Ya Deskripsi error
data 500 Ya Data


Request

POST /cdd/sijitu/questionscoring HTTP/1.1 Content-Length: 240 Host: sandbox-api.espay.id Accept: */* Content-Type: application/x-www-form-urlencoded rq_uuid=QUESTIONSCORING0101001&rq_datetime=2022-07-10 12:31:23&sender_id=SALDOMU&user_id=test@sgo.co.id&organization_id=SSB001&id_scoring=10&signature=62615a2066b0d9e614371db4d63c6532cca3d12baf4240343dea3901e31ed061

Response

{ "rq_uuid": "QUESTIONSCORING0101001", "rs-datetime": "2022-07-20 12:01:20", "error_code": "0000", "error_message": "Success", "data": [ { "id": 32, "scoring_id": 10, "category_order": 1, "category_title": "Point 1", "category_score": 25, "scoring_risk_title": [ { "id": 33, "id_title": 33, "category_id": 32, "question_order": 1, "question_title": "Question 1", "score": 55, "scoring_risk_question": [ { "id": 79, "id_question": 79, "title_id": "33", "option": "Answer 1", "option_score": 55 }, { "id": 80, "id_question": 80, "title_id": "33", "option": "Answer 2", "option_score": 45 } ] }, { "id": 34, "id_title": 34, "category_id": 32, "question_order": 2, "question_title": "Question 2", "score": 45, "scoring_risk_question": [ { "id": 81, "id_question": 81, "title_id": "34", "option": "Answer 1", "option_score": 40 }, { "id": 82, "id_question": 82, "title_id": "34", "option": "Answer 2", "option_score": 60 } ] } ] }, { "id": 33, "scoring_id": 10, "category_order": 2, "category_title": "Point 2", "category_score": 25, "scoring_risk_title": [ { "id": 35, "id_title": 35, "category_id": 33, "question_order": 1, "question_title": "Question 1", "score": 100, "scoring_risk_question": [ { "id": 83, "id_question": 83, "title_id": "35", "option": "Answer 1", "option_score": 100 } ] } ] }, { "id": 34, "scoring_id": 10, "category_order": 3, "category_title": "Point 3", "category_score": 20, "scoring_risk_title": [ { "id": 36, "id_title": 36, "category_id": 34, "question_order": 1, "question_title": "Question 21", "score": 100, "scoring_risk_question": [ { "id": 84, "id_question": 84, "title_id": "36", "option": "Answer 1", "option_score": 100 } ] } ] }, { "id": 35, "scoring_id": 10, "category_order": 4, "category_title": "Point 4", "category_score": 30, "scoring_risk_title": [ { "id": 37, "id_title": 37, "category_id": 35, "question_order": 1, "question_title": "Question 1", "score": 100, "scoring_risk_question": [ { "id": 85, "id_question": 85, "title_id": "37", "option": "Answer 1", "option_score": 100 } ] } ] } ] }