Localization

CrediLinq supports Localization Error Messages

The Credilinq API provides localizing error messages for use in many languages. At the moment, we support two languages:

  • English (en-us)
  • Indonesian (in)

You must specify a language code for the accept-language header to change the error message's language.

curl --request POST \
     --url https://stage-api.credilinq.ai/v1/loan/calculateloanschedule \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'accept-language: in' \
     --header 'Authorization: Bearer eyJraWQiOiJ3YitJMjNzOWRCNUh0cjBhQXVwTHVjeFwvUFhWREhlVEcyQWpTNnkyNFBjYz0iLCJhbGciOiJSUzI1NiJ9' \
     --data '
{
  "customerReferenceNo": "Test Reference Number",
  "loanAmount": 2000,
  "loanTermFrequency": 30
}
'

📘

Default Error Language

By default, the language of the error message is set to English (en-us).

English (en-us)

{
    "statusCode": 400,
    "error": "Bad Request",
    "errorCode": [
    		"E_D_NOT_FOUND"
    ],
    "message":[
    		"Requested drawdown does not exist in our system."
    ],
    "success": false
}

Indonesian (in)

{
    "statusCode": 400,
    "error": "Bad Request",
    "errorCode": [
    		"E_D_NOT_FOUND"
    ],
    "message":[
    		"Penarikan yang diminta tidak ada di sistem kami."
    ],
    "success": false
}