Credit Solutions

Overview

Prepaid card services in NI allow users to access and use prepaid cards in the payment processing system. Prepaid cards are a type of payment card that are loaded with a specific amount of funds, which can be used to make purchases or withdraw cash at locations that accept the card.Users of prepaid card services in a payment processing company can typically:

Version

Get Card Transactions

Status:

Production

Version:

V2

Product:

Debit Solutions

Get Card Transactions

Overview

This API allows developers to retrieve transaction history for a specific card. It requires one of the supported card identifier as an input and returns all transaction details within a specified date range. The API connects to the card issuer's management system and retrieves the transaction history for the provided card number. The returned information includes details such as transaction amount, merchant name, and transaction date. API has capability to list posted transactions, authorized transactions or statement transactions.

How It Works

A developer makes a request to the API endpoint, including the necessary details such as the card number and the date range in the request body. The API receives the request and processes it by connecting to the card issuer's management system using the provided card number as the identifier. The API then retrieves the transaction history for the provided card number and date range. The API generates a response containing the transaction details in a JSON format The developer receives the response and can then use the information to display the transaction history to the customer or for internal purposes.

https://api-sandbox.network.global

Get Card Transactions

Status:

Production

Version:

V2

Product:

Debit Solutions
/SB/BnplServices/Enquiry/V2/GetCardTransactions
curl --location --request POST '#{PARAM_URL}' --header 'Authorization: Bearer {{ access_token }}' {custom_headers} --data-raw '#{JSON_PAYLOAD}'
curl --location --request GET 'https://api-sandbox.network.global/v1/tokenkc/generate' \--data-raw '#{JSON_PAYLOAD}'
curl --location --request POST 'https://api-sandbox.network.global/v1/tokenkc/generate' \--data-raw '#{JSON_PAYLOAD}'

Node Child Node Type Length Description
Authorization* requiredBearer xxxx* requiredstringAuthorization Header (Bearer Token)
Content-Type* requiredapplication/json* requiredstringContent Type

Node TypeTypeLengthDescription
NISrvRequestrequest_get_card_transactionsheadermsg_id* requiredstring12Message ID, this field should be unique id for each Api call. This will be generated from client side. If the same message ID is used the system will decline the API call with Error Description “Duplicate Message ID”
msg_type* requiredstring12Message Type – This can have either “TRANSACTION” or “ENQUIRY” As for this API the value expected is “TRANSACTION”
msg_function* requiredstring50Message functions: Should be “REQ_GET_CARD_TRANSACTIONS”
src_application* requiredstring10Source Application: This is a free Text and the client can populate the source system from where the API is Initiated Example: IVR, IB, MB No Validations of these are kept at Network Systems
target_application* requiredstring10The target_application can hold any value from FI side, this can be used by FI to check the target system of the API call
timestamp* requiredstring30Timestamp of the request - Format YYYY-MM-DDtHH:MM:SS.SSS+04:00
bank_id* requiredstring4Bank Id is Unique Id 4 digit code for each client and the same will be provided once the client setup is completed in our core system. For sandbox testing – Please use “NIC”
bodycard_identifier_id* requiredstring32Card Identifier
card_identifier_type* requiredstring20CONTRACT_NUMBER is used for clear card number or EXID which is a unique identifier for the card generated by CMS
transaction_type* requiredstring16time_based/posted, statemented,abstract, aggregated: this returns both authorized and posted transactions
date_fromstring10Format DD/MM/YYYY. Maximum interval is 90days. Conditional for posted.
date_tostring10Format DD/MM/YYYY. Maximum interval is 90days.Conditional for posted
statement_periodstring4Format YYMM (Maximum statement is 12 months from the current date).
no_of_transactions_requestedstring2Maximum number of transactions to be fetched in a request. Value should be between 1 and 99 default is 50
requested_page_nostring4Page number of the current request, could be from 1 to 99.
return_mcc_groupstring4To retrun MCC group
condition_filterstring255Filter for Aggregate transactions, like ATM, POS
include_auth_declinedstring1Pass Y to Include declined authorization transactions. Not applicable for transaction_type auth_declined
groups_usestring1Pass Y To get transaction chain
group_first_onlystring1This parameter allows to get only first transaction with same group_idt. The parameter works with groups_use = 'Y'
account_level_number_entry_togglestring1By default, when statement is requested for primary card, account-level entries are returned with primary card's PAN in the contract_number field. When 'Y' is passed, this logic is disabled and account number is returned for account-level entries.
include_finstring1Applicable for transaction_type abstract. if 'Y' - include financial transactions
include_authstring1Applicable for transaction_type abstract.if ’Y' - include pending auth transactions

{
    "NISrvRequest": {
        "request_get_card_transactions": {
            "header": {
                "msg_id": "236001",
                "msg_type": "ENQUIRY",
                "msg_function": "REQ_GET_CARD_TRANSACTIONS",
                "src_application": "IVR",
                "target_application": "WAY4",
                "timestamp": "2020-07-20T10:49:02.366+04:00",
                "bank_id": "NIC"
            },
            "body": {
                "card_identifier_id": "454545XXXXXX1234",
                "card_identifier_type": "EXID",
                "transaction_type": "aggregated",
                "date_from": "01/12/2022",
                "date_to": "29/12/2022",
                "statement_period": "0123",
                "no_of_transactions_requested": "55",
                "requested_page_no": "55",
                "return_mcc_group": "true",
                "condition_filter": "true",
                "include_auth_declined": "Y",
                "groups_use": "Y",
                "group_first_only": "Y",
                "account_level_number_entry_toggle": "Y",
                "include_fin": "Y",
                "include_auth": "Y"
            }
        }
    }
}

Node Child Node Type Length Description
Content-Typeapplication/jsonstringContent Type

Node TypeTypeLengthDescription
NISrvResponseresponse_get_card_transactionsheadermsg_id* requiredstring12Message ID, this field should be unique id for each Api call. This will be generated from client side. If the same message ID is used the system will decline the API call with Error Description “Duplicate Message ID”
msg_type* requiredstring12Message Type – This can have either “TRANSACTION” or “ENQUIRY” As for this API the value expected is “ENQUIRY”
msg_function* requiredstring50Message functions: Should be “REP_GET_CARD_TRANSACTIONS”
src_application* requiredstring10Source Application: This is a free Text and the client can populate the source system from where the API is Initiated Example: IVR, IB, MB No Validations of these are kept at Network Systems
target_application* requiredstring10The target_application can hold any value from FI side, this can be used by FI to check the target system of the API call
timestamp* requiredstring30Timestamp of the response Date & time Format DD/MM/YYYY HH:MM:SS
bank_id* requiredstring4Bank Id is Unique Id 4 digit code for each client and the same will be provided once the client setup is completed in our core system. For sandbox testing – Please use “NIC”
exception_detailsapplication_name* requiredstring20Application Name
date_time* requiredstring30Timestamp of the response Format “YYYY-MM-DD HH:MM:SS”
status* requiredstring1Status of the request (S/F)
error_code* requiredstring4EAI Internal Error Code (Check error codes section for the complete list of error codes and error code descriptions)
error_description* requiredstring100Error Description (Check error codes section for the complete list of error codes and error code descriptions)
transaction_ref_idstring20The tracking_id sent in the request will be sent back in response in this field.
bodycard_identifier_id* requiredstring32card identifier
card_identifier_type* requiredstring20CONTRACT_NUMBER is used for clear card number or EXID which is a unique identifier for the card generated by CMS
transaction_type* requiredstring16Type of the card transaction the expected values are - authorized, time_based/posted, statemented
date_fromstring10Format YYYY-MM-DD Conditional for posted
date_tostring10Format YYYY-MM-DD Conditional for posted
statement_periodstring4Format YYMM Conditional Mandatory for statemented
no_of_transactions_returned* requiredstring3Number of transactions
no_of_transactions_requestedstring2Maximum number of transactions to be fetched in a request. Value should be between 1 and 99 default is 50
requested_page_nostring4Page number of the current request, could be from 1 to 99.
total_no_of_pagesstring2Total number of requests
condition_filterstring255Condition_filter sent in request
transactioncard_identifier_type* requiredstring20CONTRACT_NUMBER is used for clear card number or EXID which is a unique identifier for the card generated by CMS
card_identifier_id* requiredstring32card_identifier_id
masked_pan* requiredstring16Pan in Masked form
trans_date* requiredstring10Transaction date & the format is DD/MM/YYYY
post_date* requiredstring10Posting date & the format is DD/MM/YYYY
debit_credit_flag* requiredstring1Type of direction
response_code* requiredstring3Return code
description* requiredstring255Transaction description
transaction_ref_number* requiredstring12Transaction reference number
currency* requiredstring3Currency code Ex: AED
amount* requiredstring20Amount
source_currency* requiredstring3Transaction Currency
source_amount* requiredstring20Transaction amount
auth_codestring32Authorization code
merchant_idstring32Merchant ID number
merchant_category_codestring4SIC
merchant_namestring64Merchant Name
merchant_addressstring64Merchant Address
merchant_citystring64Merchant City
merchant_countrystring64Merchant Country
merchant_category_groupstring20Category Group
trans_idstring20Transaction Id
balance_typestring20RETAIL
source_numberstring64Merchant Terminal ID
fx_ratestring41Exchange rate
group_idtstring255Identifier to understand that the transaction + fee + VAT belongs to one chain
group_amountstring41Total Transaction Amount (Original + Fees + VAT)
group_dr_cr_flagstring1Debit/credit flag for the field group_amount. 'D' for Debit, 'C' otherwise.
group_is_firststring1Y is returned for the first record returned within the group_idt, otherwise N.
group_nr_recsstring1Total number of records within the same group_idt.
group_rnrstring1Sequence of the record within the group_idt.
tc_entry_rolestring255Entry Role

{
    "NISrvResponse": {
        "response_get_card_transactions": {
            "header": {
                "msg_id": "236001",
                "msg_type": "ENQUIRY",
                "msg_function": "REP_GET_CARD_TRANSACTIONS",
                "src_application": "IVR",
                "target_application": "WAY4",
                "timestamp": "2020-07-20T10:49:02.366+04:00",
                "bank_id": "NIC"
            },
            "exception_details": {
                "application_name": "TCC-ADP",
                "date_time": "2023-02-01T16:39:47.314+04:00",
                "status": "S",
                "error_code": "000",
                "error_description": "Success",
                "transaction_ref_id": "236001"
            },
            "body": {
                "card_identifier_id": "454545XXXXXX1234",
                "card_identifier_type": "EXID",
                "transaction_type": "authorized",
                "date_from": "2021-02-02T00:00:00.000Z",
                "date_to": "2021-10-02T00:00:00.000Z",
                "statement_period": "312",
                "no_of_transactions_returned": "019",
                "no_of_transactions_requested": "55",
                "requested_page_no": "55",
                "total_no_of_pages": "55",
                "condition_filter": "ECOM",
                "transaction": {
                    "card_identifier_type": "EXID",
                    "card_identifier_id": "454545XXXXXX1234",
                    "masked_pan": "454545XXXXXX1234",
                    "trans_date": "01\/12\/2022",
                    "post_date": "04\/12\/2022",
                    "debit_credit_flag": "D",
                    "response_code": "00",
                    "description": "",
                    "transaction_ref_number": "00",
                    "currency": "AED",
                    "amount": "210.00",
                    "source_currency": "AED",
                    "source_amount": "210.00",
                    "auth_code": "",
                    "merchant_id": "",
                    "merchant_category_code": "",
                    "merchant_name": "",
                    "merchant_address": "",
                    "merchant_city": "",
                    "merchant_country": "",
                    "merchant_category_group": "",
                    "trans_id": "",
                    "balance_type": "",
                    "source_number": "67009451",
                    "fx_rate": "1",
                    "group_idt": "fin-USD-C.STMT.DETAIL-D1286920-2024-12-20",
                    "group_amount": "75.00",
                    "group_dr_cr_flag": "D",
                    "group_is_first": "Y",
                    "group_nr_recs": "3",
                    "group_rnr": "1",
                    "tc_entry_role": "TRANS_BASE"
                }
            }
        }
    }
}

Code Description
200Sample Description
400Bad Request
401Unauthorized
403Forbidden
500Internal Server Error
502Bad gateway
503Scheduled Maintenance
504Gateway Timeout
596Service Not Found