Answer Scoring



The process for getting scoring results is by sending answers to questions that have been sent to the SIJITU system.


The partner will send data to Espay then Espay will respond in JSON format containing Detailed Answer Scoring.


Message Flow

Merchant -> Espay

Metode

HTTP Post

API URL

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



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
name 255 Ya The name you want to check scoring
country 6 No Country code based on ISO
status_pep 4 No if the status is pep then send PEP, if not then send NPEP
data 500 Ya Scoring answers are based on questions sent to the Question 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/answerscoring HTTP/1.1 Content-Length: 240 Host: sandbox-api.espay.id Accept: */* Content-Type: application/x-www-form-urlencoded rq_uuid=QUESTIONSCORING0101002&rq_datetime=1658306718&sender_id=SALDOMU&user_id=test@sgo.co.id&organization_id=SSB001&id_scoring=10&name=Anang&country=ID&status_pep=PEP&data={"33":"79","34":"81","35":"83","36":"84","37":"85"}&signature=62615a2066b0d9e614371db4d63c6532cca3d12baf4240343dea3901e31ed061

Response

{ "rq_uuid": "QUESTIONSCORING0101002", "rs-datetime": "2022-07-20 12:01:26", "error_code": "0000", "error_message": "Success", "data": [ { "score": { "Category:Point 1": "Score:12,06", "Category:Point 2": "Score:25,00", "Category:Point 3": "Score:20,00", "Category:Point 4": "Score:30,00" }, "total_score": "87.06", "summary": { "grade": "High", "desc": "High risk profile karena status category PEP" }, "url_pdf": "https://sijitu-dev.espay.id/frontend/report/scoring/detail/print_pdf/eyJpdiI6Ikh6SGJMSUc5bnpKa3liVDhxV2VpSGc9PSIsInZhbHVlIjoiMVBPdUNSSEdRWWxYWWIyMno4aG5XcGVcLzZEckhsNW9lRDVTQ0xaNnR0RGMwdFZneEtoclpPTjBMWVlURGJJUjhPNnRDbzFyWndtU0Y1QVJnS1Rad3lcL2xXMjVuWjlCUTBrRXorVHdyRGpmek1lcHlXOFFFckdFdEpHQTBzMUl6TU1vUFJMeitBS0dsSFVGUDV1cE9SNUE9PSIsIm1hYyI6IjY5YzkxMzg0ZmY0NDBhYzYyZjNlNDMzNzQ5NjM3NmNmNDhjMWY2MTgzMTNlOTE3ZjQ2ZDViYWEzNzZiMGY4YTcifQ==", "risk_scoring_id": 175, "edd_questions": [ { "question_order": 1, "question_content": "asd" }, { "question_order": 2, "question_content": "tes" }, { "question_order": 3, "question_content": "asd12" } ] } ] }