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
POST requires authentication using a Bearer Token. The client must send the token in the Authorization
header for every request.
Example Authentication Header:
If the token is missing or invalid, the API will return a 401 Unauthorized
response.
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'
Authorization
To
access this endpoint, include a Bearer Token
in the Authorization
header of your request. You can obtain this token from Frontpayment.
Request Payload
:Send
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:
Field
Type
Description
personalId
string
Required 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"
}