Skip to main content

Credit Check for Private Customer

Description:
CreditUse checkthis API to perform a credit assessment for a private customerindividual by(a personalId.consumer) based on their social security number (Personal Number).

Authentication


This

Endpoint

endpoint
POST requires authentication using a Bearer Token. The client must send the token in the Authorization header for every request.

Example Authentication Header:

Authorization: Bearer YOUR_ACCESS_TOKEN

If the token is missing or invalid, the API will return a 401 Unauthorized response.

Authorization

To

access

Send

Endpoint:https://demo-api.frontpayment.no/api/v1/connect//credit/check/private
Method: POST
Authentication:Bearer
Payload Validation:
'personalId' => 'required|string',
'countryCode' => 'nullable|string',
'msisdn' => 'nullable|string'

this endpoint, include a Bearer Token in the Authorization header of your request. You can obtain this token from Frontpayment.

Example Authorization Header: Authorization: Bearer YOUR_FRONTPAID_BEARER_TOKEN

Request Payload

:the following parameters as a JSON object in the request body:

{
    "personalId": "ckFXQWJqeFlieE06ZDU3NGJlNTczMGYx"993344228",
    "countryCode": null,+47,
    "msisdn": null46xxxxxx45
}

Validation Rules

Make sure your request meets the following requirements:

FieldTypeDescription
personalIdstringRequired Personal Number.
Response StructurecountryCode :string Optional
{Country "status_code":code "integer"for the customer's phone number (e.g., "status_message": "String",
    "message": "String",
    "is_data": "Boolean",
    "data": "Array"
}
+47").
Example Responsemsisdn :string Optional Mobile Subscriber ISDN Number (phone number).

Response

A successful request will return a 200 OK status with the following JSON payload:

{
    "status_code": 200,
    "status_message": "OK",
    "message": "creditCheckRequestedSuccessful",
    "is_data": false,
    "data": null
}

API returns a 500 or 510 error, it means something failed on the server side

{
    "status_code": 510,
    "status_message": "Execution Exception Occurred",
    "message": "personCurrentStatusIsWrong"somethingWentWrong",
    "is_error": true,
    "errors": "Ugyldig fødselsnummer"Array"
}