Overview

In Control for Commercial Payments (ICCP) streamlines business transactions using configurable spending controls and enhanced data:

Version

GetPurchaseTemplateDetails

Status:

Beta

Version:

V2

Product:

ICCP Solutions

GetPurchaseTemplateDetails

Overview

Get all details about a specific purchase template. The template details help you decide which template to use to create a purchase request. The details include custom data fields, spending controls and whether the purchase template is enabled to add invoice addenda data.

https://api-sandbox.network.global

GetPurchaseTemplateDetails

Status:

Beta

Version:

V2

Product:

ICCP Solutions
/V2/cardservices/GetPurchaseTemplateDetails
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)
Unique-Reference-Code* requireda1v2n3dass* requiredstring12Request ID for identification of each request call, maximum 12 characters
Financial-Id* requiredNSGB2* requiredstring5Organization/Financial institution ID
Channel-Id* requiredBank* requiredstring5Source requesting channel Ex: IVR
Template-Id* required21680* requiredstring10ID of a template

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

Node TypeTypeLengthDescription
headermsg_id* requiredstring12The msg_id sent in the request will be sent back in response in this field
msg_type* requiredstring12msg_type sent in the request will be sent back in response in this field
msg_function* requiredstring50Function name to be used default REP_GET_VCN_AUTHS_REPORT
src_application* requiredstring10The src_application sent in the request will be sent back in response in this field
target_application* requiredstring10The target_application sent in the request will be sent back in response in this field
timestamp* requiredstring30Timestamp of the request Format DD/MM/YYYY HH:MM:SS
bank_id* requiredstring4The bank_id sent in the request will be sent back in response in this field Eg ABCD
instance_idstring10InstanceID
exception_detailsapplication_namestring20Application Name
date_timestring30Timestamp of the response
statusstring1Status of the request (S/F)
error_codestring4EAI Internal Error Code
error_descriptionstring100Error Description
bodypurchase_template_detailstemplate* requiredobject
template/idstring
template/namestring
template/typestring
template/descriptionstring
purchase_typesArray
purchase_types/MCCstring
purchase_types/MCC_descriptionstring
template_rulesArray
template_rules/namestring
template_rules/typestring
template_rules/template_controlArray
template_rules/template_control/control_codestring
template_rules/template_control/control_descriptionstring
template_rules/template_control/negatestring
template_custom_fieldsArray
template_custom_fields/namestring
template_custom_fields/valuestring
template_custom_fields/max_lengthstring
template_custom_fields/display_namestring
template_custom_fields/data_typestring
template_custom_fields/data_requiredstring
supported_addenda_typesObject
supported_addenda_types/addenda_typeArray
supported_addenda_types/addenda_type/codestring
supported_addenda_types/addenda_type/descriptionstring

{
    "NISrvResponse": {
        "response_purchase_template_details": {
            "header": {
                "msg_id": "236001",
                "msg_type": "ENQUIRY",
                "msg_function": "REP_PURCHASE_TEMPLATE_DETAILS",
                "src_application": "IVR",
                "target_application": "CMS",
                "timestamp": "2020-07-20T10:49:02.366+04:00",
                "bank_id": "NIC",
                "instance_id": "InstanceID"
            },
            "exception_details": {
                "application_name": "TCC-ADP",
                "date_time": "2023-02-01T16:39:47.314+04:00",
                "status": "S",
                "error_code": "000",
                "error_description": "Success"
            },
            "body": {
                "purchase_template_details": {
                    "template": {
                        "id": "21680",
                        "name": "Sandbox Purchase Template",
                        "description": "Used in Sandbox Environment, with Velocity and Validity Period controls, with addenda data allowed",
                        "type": "PC"
                    },
                    "purchase_types": [
                        {
                            "MCC": "3000",
                            "MCC_description": "UNITED AIRLINES"
                        }
                    ],
                    "template_rules": [
                        {
                            "name": "Rule1",
                            "type": "Rule Type",
                            "template_control": [
                                {
                                    "control_code": "VA",
                                    "control_description": "Validity",
                                    "negate": "negate"
                                }
                            ]
                        }
                    ],
                    "template_custom_fields": [
                        {
                            "name": "Purchase Type",
                            "value": "Airlines",
                            "max_length": "69",
                            "display_name": "Text",
                            "data_type": "Alphanumeric",
                            "data_required": "Y"
                        }
                    ],
                    "supported_addenda_types": {
                        "addenda_type": [
                            {
                                "code": "INVOICE",
                                "description": "Global Invoice"
                            }
                        ]
                    }
                }
            }
        }
    }
}

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