Score Requests#

A Score Request initiates the scoring process for a tenant based on data from a Verification Report. You specify which score types to generate.

The Score Request object#

AttributeTypeDescription
idstringUnique identifier with sr_ prefix
objectstringAlways "score_request"
verification_reportstringLinked Verification Report ID
score_typesarrayScore types requested: tenant_score, cash_flow_score, credit_score
statusenumpending, processing, completed, error
score_reportstringID of generated Score Report (when completed)
errorobjectError details if status is error
metadatahashKey-value pairs
createdtimestampTime at which the object was created
{
  "id": "sr_abc123def456",
  "object": "score_request",
  "verification_report": "vr_9z8y7x6w5v",
  "score_types": ["tenant_score", "cash_flow_score", "credit_score"],
  "status": "completed",
  "score_report": "scrpt_xyz789",
  "metadata": {},
  "created": 1706140800
}

Create a Score Request#

POST /v1/score_requests

ParameterTypeRequiredDescription
verification_reportstringYesVerification Report ID to score
score_typesarrayYesTypes of scores to generate
metadatahashNoKey-value pairs
curl https://api.casapay.com/v1/score_requests \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc" \
  -H "Content-Type: application/json" \
  -d '{
    "verification_report": "vr_9z8y7x6w5v",
    "score_types": ["tenant_score", "cash_flow_score", "credit_score"]
  }'
{
  "id": "sr_abc123def456",
  "object": "score_request",
  "status": "processing",
  "score_types": ["tenant_score", "cash_flow_score", "credit_score"],
  "created": 1706140800
}

Retrieve a Score Request#

GET /v1/score_requests/:id

curl https://api.casapay.com/v1/score_requests/sr_abc123def456 \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"

List Score Requests#

GET /v1/score_requests

ParameterTypeDescription
verification_reportstringFilter by Verification Report ID
statusstringFilter by status
limitintegerNumber of objects to return (1–100)
starting_afterstringCursor for pagination
curl https://api.casapay.com/v1/score_requests?status=completed&limit=10 \
  -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"