Premium APIsRetail FinanceCredit List API v2

Credit List

Overview

The Credit List API is the way to get the list of all Credit list details. In Credit List API details of existing customer will be available. In credit list the single or multiple Credits details will be fetched which depend upon the customer / user. Some details such as credit limit, credit available, Credit List Details , some details about instalment, id, mode of purchase, campaign details etc. are present. Customer details and partner details also required for this process. The behaviour of the API will varies in sandbox as compared to actual production environment.

Changes from the previous version

This is the changelog of Credit List API. The topmost item is the latest version and the changes described in it are relative to the previous version which is listed directly below. The current version of the API documentation is 2.0.

Sample flow

Below you can find a diagram of sample flow

diag2

Swagger Definition

Request Header Parameter

Sr.No.Field NameTypeMandatory InformationExample
1x-ibm-client-idStringMandatoryyou will get it from developer portal.
2x-ibm-client-secretStringMandatory you will get it from developer portal.
3tokenStringMandatory
4country-idStringMandatoryFI
5dealer-idStringMandatoryapplication/json
6api-keyStringMandatoryNeed to generate every time - c9483211-e8ed-490b-8238-bf2fc5823ca2

Token: Header parameter called token value should be constructed as follows

  • userId:cardNumber:accountNumber#
  • userId Holds SSN (Social Security Number)
  • cardNumber Holds card Number
  • accountNumber Holds account Number
  • #signifies the end of the string

At the end the string should be Base64 encoded

  • If any of the three information is not available, it should be sent as blank
  • For example.
  • If userID and account number is not available, ‘token’ should be encoded value of ‘:cardNumber:#’ (single quotes are not to be include in encoding.)
  • If only userId is available, ‘token’ should be encoded value of ‘userId::#’ (single quotes are not to be include in encoding.)

ApiKey : Mandatory -for Validating User – You will get it form Get Token API, it will be valid for 20 min.

Response Parameters

Request URL Parameters: No request Parameter in body for this API

Response Body:

Sr.No.Field NameTypeExample
1cards_list
2cards_list.ssnString010170960F
3cards_list.brandString20
4cards_list.extraarrayFor Existing customer “extra”: [ {“key”: “CARD_STATUS”,“value”: “ACTIVE”},{“key”: “PRODUCT_NAME”,“value”: “JOUSTORAHOITUS”},
5cards_list.credit_limitdouble20482.8
6cards_list.credit_availabledouble20482.8
7cards_list.used_credit double20482.8
8cards_list.account_numberString23280340493833
9cards_list.card_holder_nameStringDEMO ANNA
10cards_list.card_levelStringS
11cards_list.card_currencyStringEUR
12cards_list.masked_card_numberStringNull
13cards_list.fuel_discountdouble0
14cards_list.year_of_saving
15cards_list.matrix_rangeStringhigh
16cards_list.actual_bonusStringNull
17cards_list.purchases_left_for_bonusinteger0
18cards_list.remaining_on_one_percentStringNull
19cards_list.payments_remaininginteger47
20cards_list.payments_end_dateString20/07/2018
21cards_list.instalment_free_monthsString201809,201811
22cards_list.installment_percentagedecimal1

Example

Success Response

{
    "message": "200_OK",
    "message_description": "1_CARD_OR_ACCOUNT_FOUND",
    "cards_list": [
        {
            "ssn": "010299-123E",
            "brand": "20",
            "extra": [
                {
                    "key": "CARD_STATUS",
                    "value": "ACTIVE"
                },
                {
                    "key": "ACCOUNT_STATUS",
                    "value": "ACTIVE"
                },
                {
                    "key": "PRODUCT_NAME",
                    "value": "JOUSTORAHOITUS"
                },
                {
                    "key": "CREDIT_ACCT_ID",
                    "value": "993698"
                },
                {
                    "key": "RELATION_ID",
                    "value": ""
                },
                {
                    "key": "CARD_NO",
                    "value": "yto1cA+c78rTE0cOSKmaKQ=="
                }
            ],
            "credit_limit": 2000,
            "credit_available": 1910,
            "used_credit": 90,
            "account_number": "23383899369859",
            "card_holder_name": "John D",
            "card_level": "M",
            "card_currency": "EUR",
            "masked_card_number": "",
            "fuel_discount": 0,
            "year_of_saving": 0,
            "matrix_range": "",
            "actual_bonus": "0",
            "purchases_left_for_bonus": 0,
            "remaining_on_one_percent": "0",
            "payments_remaining": 21,
            "payments_end_date": "09",
            "instalment_free_months": "202105",
            "installment_percentage": "5.00"
        }
    ]
}
 
     }
}

Error Responses

Scenario - No API key HTTP/1.1 400

{
    "errorId": "CFAP-400",
    "message": "BAD_REQUEST No Api key generated for requested userId",
    "category": "APPLICATION",
    "timestamp": "Fri Mar 05 12:53:03 UTC 2021"
}

Scenario : For Error in request file HTTP/1.1 400

{
    "errorId": "CFAP-400",
    "category": "APPLICATION",
    "message": "Bad Request - WRONG Country Id",
    "timestamp": "2021-02-23T06:45:44.083+0000"
}