Question Scoring



The process for getting scoring results is by sending questions to the SIJITU system.


The partner will send data to Espay then Espay will respond in JSON format containing details of the question category.


Message Flow

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:
Parameter Name Max Length Mandatory Description
rq_uuid 64 Ya Request identifier. Unique id to identify this message with other messages
rq_datetime 19 Ya Date and time on the Espay application server when the message was sent
sender_id 32 Ya Merchant identity code registered in the Espay application
user_id 64 Ya email registered in Sijitu
organization_id 32 Ya Merchant code registered in Sijitu
id_scoring 11 Ya Scoring ID obtained from the List Scoring API
signature 64 Ya Signature that must be validated by Espay. Click here for details


Parameter Response:
Parameter Name Max Length Mandatory Description
rq_uuid 64 Ya Request identifier. Unique id to identify this message with other messages
rs_datetime 32 Ya Date and time on the Espay application server when the message was sent
error_code 4 Ya Error code in web service, 0000 its success
error_message 32 Ya Description 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 } ] } ] } ] }