Webhook Services

Overview

Our webhook solution ensures that your system receives real-time notifications regarding specific events triggered within the NI system, based on your subscription to the different webhooks.

Version

Switch MCC

Status:

Production

Version:

V2

Category:

Webhook

Overview

The Switch MCC API enables the cardholder to seamlessly manage Merchant Category groups, and codes (MCCGs /MCCs), which categorize merchants. This API enables users to update or switch MCCs by enabling or blocking MCCG/MCC, and this will impact the authorization transaction immediately.

How It Works

 

To manage a specific card ID, you can choose to block or allow a list of Merchant Category Codes (MCC) groups, with the option to block or allow MCCs withing each group. For example, suppose you have a group labeled X containing 3 MCC codes 1111,2222,3333. If you want to block group X except for code 3333, you will need to send a request with mcc_blocked_group_list containing group X and mcc_allowed_code_list containing code 3333.  This configuration specifies which MCC groups are blocked overall and which specific MCCs within those groups are allowed.

Overview

The Switch MCC API enables the cardholder to seamlessly manage Merchant Category groups, and codes (MCCGs /MCCs), which categorize merchants. This API enables users to update or switch MCCs by enabling or blocking MCCG/MCC, and this will impact the authorization transaction immediately.

How It Works

To manage a specific card ID, you can choose to block or allow a list of Merchant Category Codes (MCC) groups, with the option to block or allow MCCs withing each group. For example, suppose you have a group labeled X containing 3 MCC codes 1111,2222,3333. If you want to block group X except for code 3333, you will need to send a request with mcc_blocked_group_list containing group X and mcc_allowed_code_list containing code 3333.  This configuration specifies which MCC groups are blocked overall and which specific MCCs within those groups are allowed.

https://api-sandbox.network.global

Switch MCC

Status:

Production

Version:

V2

Category:

Webhook
/CardControl/Transaction/V2/SwitchMCC
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_enable_disable_mccheadermsg_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_ENABLE_DISABLE_MCC”
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 Identifer ID
card_identifier_type* requiredstring20CONTRACT_NUMBER is used for clear card number or EXID which is a unique identifier for the card generated by CMS
mcc_allowed_group_listcodestring30By specifying this array of codes, only the designated MCC groups will be permitted, while all others will be restricted
mcc_blocked_group_listcodestring30By specifying this array of codes, only the designated MCC groups will be restricted, while all others will be permitted
mcc_allowed_code_listcodestring30By specifying this array of codes, only the designated MCC codes will be permitted, while all others will be restricted
mcc_block_code_listcodestring30By specifying this array of codes, only the designated MCC codes will be restricted, while all others will be permitted

{
    "NISrvRequest": {
        "request_enable_disable_mcc": {
            "header": {
                "msg_id": "4052182325",
                "msg_type": "TRANSACTION",
                "msg_function": "REQ_ENABLE_DISABLE_MCC",
                "src_application": "BNK",
                "target_application": "WAY4",
                "timestamp": "2020-07-20T10:49:02.366+04:00",
                "bank_id": "NIC"
            },
            "body": {
                "card_identifier_id": "99984104111610175918",
                "card_identifier_type": "EXID",
                "mcc_blocked_group_list": [
                    {
                        "code": "Tickets"
                    }
                ],
                "mcc_allowed_code_list": [
                    {
                        "code": "5523"
                    },
                    {
                        "code": "5599"
                    }
                ],
                "mcc_blocked_code_list": [
                    {
                        "code": "6623"
                    },
                    {
                        "code": "6699"
                    }
                ]
            }
        }
    }
}

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

Node TypeTypeLengthDescription
NISrvResponseresponse_enable_disable_mccheadermsg_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 “REP_ENABLE_DISABLE_MCC”
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 - 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”
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.

{
    "NISrvResponse": {
        "response_enable_disable_mcc": {
            "header": {
                "msg_id": "236001",
                "msg_type": "TRANSACTION",
                "msg_function": "REP_ENABLE_DISABLE_MCC",
                "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"
            }
        }
    }
}

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

How It Works

Follow the steps below. For more details, read the Quick Start Guide.