• Register

Card Top-Up

This service is used to recharge / transact an amount to the prepaid card.

Request parameters:

Node

Child Node

Type 

Length 

Description

Remarks

header

msg_id

String

12

Unique Source Message ID

Mandatory

msg_type

String

13

Request Type Default: "TRANSACTION"

Mandatory

msg_function

String

50

Function name to be used Default: "REQ_CARD_TOPUP"

Mandatory

src_application

String

5

Source requesting channel  e.g. “IVR”

Mandatory

target_application 

String

10

Target application name e.g. : “PCMS”

Mandatory

timestamp

String

50

Timestamp of the request Format  “DD/MM/YYYY HH:MM:SS”

Mandatory

tracking_id

String

15

Transaction Tracking ID

Mandatory

bank_id

String

4

Source Bank e.g. “bankID”

Mandatory

instance_id

String

10

N/A

Optional

body

card_no

 

String

 

Min-16

Max-19

15/19-digit card no

e.g:

XXXXXXXXXXXX0833

First 6 digits will be BIN for PCMS cards

Mandatory 

topup_amount

String

 

8

Transaction Amount in Wallet Currency Sample: 2000.00

Mandatory

reference_number 

String

 

20

Unique reference id for the topup transaction  Acquirer Request Number            Sample  160119155439.2694

Mandatory

Request Json
{
  "NISrvRequest":{
    "request_card_topup":{
      "header":{
        "msg_id":"165003",
        "msg_type":"Transaction",
        "msg_function":"REQ_PREPAIDCARD_TOPUP",
        "src_application":"IVR",
        "target_application":"PCMS",
        "timestamp":"2020-06-07T22:21:41.446+04:00",
        "tracking_id":"165003",
        "bank_id":"bankID"
      },
      "body":{
        "card_no":"XXXXXXXXXXXXXXXX",
        "topup_amount":"100",
        "reference_number":"165003"
      }
    }
  }
}

Response parameters:

Node

Child Node

Type 

Length 

Description

Remarks

header

msg_id

String

12

The msg_id sent in the request will be sent back in response in this field.

Mandatory

msg_type

String

13

Request Type

Mandatory

msg_function

String

50

Function name to be used

Mandatory

src_application

String

5

The src_application sent in the request will be sent back in response in this field.

Source requesting channel e.g. “IVR”

Mandatory

target_application 

String

10

The target_application sent in the request will be sent back in response in this field.

Mandatory

timestamp

String

30

Timestamp of the response

Date & time. Format  “DD/MM/YYYY HH:MM:SS”

Mandatory

tracking_id

String

15

The tracking_id sent in the request will be sent back in response in this field.

Mandatory

bank_id

String

4

The bank_id sent in the request will be sent back in response in this field. E.g. ‘bankID’

Mandatory

instance_id String 10 NA Opeional

exception_details

application_name

String

20

Tibco Application Name

Mandatory

date_time

String

30

Timestamp of the response

Format “DD/MM/YYYY HH:MM:SS”

Mandatory

status

String

1

Status of the request (S/F)

Success- S,  Failure - F

Mandatory

error_code

String

4

EAI Internal Error Code (Check error codes section for the complete list of error codes and error code descriptions)

Mandatory

error_description

String

100

Error Description (Check error codes section for the complete list of error codes and error code descriptions)

Mandatory

trace String 10 NA Optional
data String 10 NA Optional
type String 10 Na Optional

transaction_ref_id

String

20

The tracking_id sent in the request will be sent back in response in this field.

Optional

body

available_balance

String

 

Sample: 2000.00

Mandatory

card_holdername

String

 

Name of customer Sample: Muhammad Ahmed Khan

Optional

card_no

String

 

Card Number of the Customer Sample: 129283928398

Optional

topup_amount

String

 

Transaction Amount in Wallet Currency

Optional

unique_reference_number

String

 

Unique reference id for the topup transaction  Acquirer Request Number            Sample  160119155439.2694

Optional

Response Json
{
  "NISrvResponse":{
    "response_card_topup":{
      "header":{
        "msg_id":"165003",
        "msg_type":"Transaction",
        "msg_function":"REP_PREPAIDCARD_TOPUP",
        "src_application":"CDM",
        "target_application":"PCMS",
        "timestamp":"2020-06-07T22:21:31.734+04:00",
        "tracking_id":"165003",
        "bank_id":"TWCMS",
        "instance_id":null
      },
      "exception_details":{
        "application_name":"NITIB_TCC_BRK_TWCMS_1",
        "date_time":"2020-06-07T22:21:31.734+04:00",
        "status":"S",
        "error_code":"000",
        "error_description":"Success",
        "transaction_ref_id":"165003"
      },
      "body":{
        "available_balance":"300.00",
        "topup_amount":"100.00",
        "unique_reference_number":"583706"
      }
    }
  }
}

Docs Navigation