Professional Documents
Culture Documents
UBPS Web Service Message Interface Updated 1.3.6
UBPS Web Service Message Interface Updated 1.3.6
UBPS Web Service Message Interface Updated 1.3.6
VERSION 1.3.5
UBPS WEB Service Message Interface for an Aggregator
T ABLE OF C ONTENT
1 Introduction ................................................................................................................................. 4
1.1 Purpose ................................................................................................................................................ 4
1.2 Intended Audience ............................................................................................................................. 4
1 INTRODUCTION
This document outlines the UBPS Web Service Message Interfacing options for an aggregator.
An aggregator uses UBPS to provide several payment services to its client institutions. UBPS
Web Services enable these payment services without requiring the client institution to
understand specific message formats.
1.1 PURPOSE
This document includes interfacing parameters, flows, configurations, response codes and
other related settings that may help an aggregator use web services to enable simple and
secure communication with client institutions.
Any TPS client, for instance a member bank, a telecom company, or an exchange
company that wants to offer bill payment services to its customer can use this
document to connect the installed bill payment system over web services.
Internal to TPS
All rights for information in this belong to TPS. It may be updated periodically by the
The following notation conventions describe the attributes of Transaction message data
elements:
Notation Description Padding Rules
A Alphabetic characters A-Z and a-z Spaces should be padded on right side of data to complete the
Left Aligned and padded with Spaces. required length
N Numeric digits 0-9 Zeros should be padded on left side to complete the required
Right Aligned, padded with 0s (zeroes) length
AN Alphabetic and Numeric characters Spaces should be padded on right side of data to complete the
Left Aligned, padded with Spaces required length
ANS Alphabetic, numeric and special characters Spaces should be padded on right side of data to complete the
Left Aligned, padded with Spaces required length of the field
X ‘+’ or ‘-‘ This is not used as individual field. This must be used in
concatenation with other fields
XN Numeric values with negative or positive sign Zeros should be padded between sign operator and numeric value
to complete the required length
C Conditional; Blank Spaces should be provided if field is black to complete the overall
length of message
V Variable Length Spaces should be provided if field is black to complete the overall
length of message
The number following an attribute code (a, n, an, ans) specifies the length of the data element.
Note: All spaces have been replaced with dots (.) in the sample messages to help visualize the
space characters. This applies to whole document where sample messages / data are written
The flow of messages between web service and a client is similar to a traditional web service
call developed using SOAP. Client sends a request and an advice message to the web service,
and the web service replies with a response message to the calling client.
Client calls a web service method for inquiry. Webs service translates this call to SMPI
message type 0200 and forwards it to the UBPS transaction server. UBPS transaction server
responds to the 0200 message with the message type 0210, which contains an authorized or
denied code in the response code. That response message is then transformed into a web
service response i.e. it is sent to the respective web service as a final response to the caller
application at client side.
00000000 == ATM,
00000001 == IVR
00000002 == Call Center
00000003 == Web
00000004 == SmartATM
ChannelID N 4 8 Y
00000005 == POS
00000006 == CDM_CASH
00000007 == Branch
00000008 == MOB
00000009 == BL Banking
CompanyCode AN 6 8 Y Like:
SSGC = SSGC0001
WARID = WARID001
Signature:
BillInquiry(string UserID, string Pwd,
string CLientID, string ChannelID,
string STAN, string CompanyCode,
string ConsumerNo, string Signature)
Response Message:
Length: 913 Characters (For certificate)
Length: 657 Characters (For SHA 512 Hash)
Parameters type: Output Response
Padding Rules: Applied
Field Mandatory
Field Name Format Length Description
Sequence [Y / N]
Response Detail AN 14 430 Y Response Detail 1 and Response Detail 2 from UBPS
Sample Data for Bill Inquiry response message (384 Bytes) – All
Companies:
00HBL001....00000003444666PTCL0012555555..................Muhammad.Atif.Hafeez..........U0613140613+0
000000050000+0000000055000061311290001atif.1211+0000000027000130430+0000000028000P036634+00
00000000000+0000000000000555555.0000000000000000000000000000201311010000000000000020131101
000000050000................................................................................................................. ...........................................
.......................................................................................................................VPeAaqDj eB6397mwvfPyJ9PTTHj
vvR1ijNVukoWwe4b4lH5WrXPYeSkE7WftP77YIu0QcQ4xbWeDaVVtO7PlPbBBDJt5xVws4zLA5On3
LjNki4RvpNxZ9DhYebWkEThtelHJnTV1cLqInPv+OVmtJ8pjO8NeVEko9PN38dH0g0HGDQW8biWJ
a2brQW07j2wxP81xYNzoKn8kv7r+jJBS0teJWb4I7u8Ckx8MOOcgXYTmVLhdd45UYtBif7cC5/a+VTvV
OMpwlbnAagh+yHrh1XZIXWf6BoQBgIZYtGThrjcPGKtWwffwx8ckzH+VDQW5ju7YyRhEs2RYzT3l
x+8Lag==
00000000 == ATM,
00000001 == IVR
00000002 == Call Center
00000003 == Web
00000004 == SmartATM
ChannelID N 4 8 Y
00000005 == POS
00000006 == CDM_CASH
00000007 == Branch
00000008 == MOB
00000009 == BL Banking
CompanyCode AN 6 8 Y Like:
SSGC = SSGC0001
WARID = WARID001
Supporting
159 -
Information 2
Signature:
BillInquiryWithReservedField(string UserID, string Pwd,
string CLientID, string ChannelID,
string STAN, string CompanyCode,
string ConsumerNo, string Signature,
string ReservedField)
Response Message:
Length: 913 Characters (For certificate)
Length: 657 Characters (For SHA 512 Hash)
Parameters type: Output Response
Padding Rules: Applied
Field Mandatory
Field Name Format Length Description
Sequence [Y / N]
Response Detail AN 14 430 Y Response Detail 1 and Response Detail 2 from UBPS
Sample Data for Bill Inquiry response message (384 Bytes) – All
Companies:
00HBL001....00000003444666PTCL0012555555..................Muhammad.Atif.Hafeez..........U0613140613+0
000000050000+0000000055000061311290001atif.1211+0000000027000130430+0000000028000P036634+00
00000000000+0000000000000555555.0000000000000000000000000000201311010000000000000020131101
000000050000................................................................................................................. ...........................................
.......................................................................................................................VPeAaqDjeB6397mwvfPyJ9PTTHj
vvR1ijNVukoWwe4b4lH5WrXPYeSkE7WftP77YIu0QcQ4xbWeDaVVtO7PlPbBBDJt5xVws4zLA5On3
LjNki4RvpNxZ9DhYebWkEThtelHJnTV1cLqInPv+OVmtJ8pjO8NeVEko9PN38dH0g0HGDQW8biWJ
a2brQW07j2wxP81xYNzoKn8kv7r+jJBS0teJWb4I7u8Ckx8MOOcgXYTmVLhdd45UYtBif7cC5/a+VTvV
OMpwlbnAagh+yHrh1XZIXWf6BoQBgIZYtGThrjcPGKtWwffwx8ckzH+VDQW5ju7YyRhEs2RYzT3l
x+8Lag==
z0OV1TQuAgMWqO69GUwrHu8Tpnh2HK44OYGRWDnOkhZDkYNEiYN2zGHR4aykiPqbYMuJQ
XcWIFQS/gqHhgc9sDHg5+qvv+X1VCUL6MqokoxtW6ikWQ==
00000000 == ATM,
00000001 == IVR
00000002 == Call Center
00000003 == Web
00000004 == SmartATM
ChannelID N 4 8 Y
00000005 == POS
00000006 == CDM_CASH
00000007 == Branch
00000008 == MOB
00000009 == BL Banking
Signature:
BillPayment(string UserID, string Pwd,
string CLientID, string ChanneID,
string STAN, string CompanyCode,
string ConsumerNo, string AuthID,
string Amount,
string TransactionDateTime,
string Signature)
Response Message
Length: 850 Characters (For certificate)
Length: 594 Characters (For SHA 512 Hash)
Parameters type: Output Response
Padding Rules: Applied
Field Mandatory
Field Name Format Length Description
Sequence [Y / N]
Response Detail AN 9 430 Y Response Detail 1 and Response Detail 2 from UBPS
Signature / ANSX 10 344 Base64 Encoded string (right padded with spaces)
Y
HASH AN 10 88 Base64 Encoded string
Sample Data
Bill Payment response message (420 Bytes) for all Companies:
00HBL001....00000003444666PTCL0012555555..................112233061311290001..............................................
....................................................................................................................................................................................
....................................................................................................................................................................................
........................tAHBuBE2JK/zIr8FvnxklcxmcrH9lbRnRHLNE0ZCmn63ZfYfKSDX/DLNk6eeSQaFreQZ
FNsIaRaKnm9Oh5S9rlhI7TmmsotIq8MB5aow8i1PSo6L13x9omlRNyc4hhsSmc378VjPKzS4pH0P2BEE
0ur1/rnWqP4eBEuiAWM2itNlZZzbdBjBFA38DELZNmB29sdfAviD4E9ZUN6wIgcuf2loDepjEr16R1M
VLH1fvTAmsUCvL1yjH7M/050Bt7/TqniuAg6uihVEZskA91ubR6/9eM7t3qNdxgVLO+3cUrgJu/tjhWR
sg92PbfIvIV4f7+Gz4SFe5wf23yr0aHZ+OQ==
Sample XML:
tAHBuBE2JK/zIr8FvnxklcxmcrH9lbRnRHLNE0ZCmn63ZfYfKSDX/DLNk6eeSQaFreQZFNsIaRaKnm
9Oh5S9rlhI7TmmsotIq8MB5aow8i1PSo6L13x9omlRNyc4hhsSmc378VjPKzS4pH0P2BEE0ur1/rnWqP4
eBEuiAWM2itNlZZzbdBjBFA38DELZNmB29sdfAviD4E9ZUN6wIgcuf2loDepjEr16R1MVLH1fvTAm
sUCvL1yjH7M/050Bt7/TqniuAg6uihVEZskA91ubR6/9eM7t3qNdxgVLO+3cUrgJu/tjhWRsg92PbfIvIV
4f7+Gz4SFe5wf23yr0aHZ+OQ==
00000000 == ATM,
00000001 == IVR
00000002 == Call Center
00000003 == Web
00000004 == SmartATM
ChannelID N 4 8 Y
00000005 == POS
00000006 == CDM_CASH
00000007 == Branch
00000008 == MOB
00000009 == BL Banking
Supporting
77 -
Information 2
Signature:
BillPaymentWithReservedField(string UserID, string Pwd,
string CLientID, string ChanneID,
string STAN, string CompanyCode,
string ConsumerNo, string AuthID,
string Amount,
string TransactionDateTime,
string Signature , string ReservedField)
Response Message
Length: 850 Characters (For certificate)
Length: 594 Characters (For SHA 512 Hash)
Parameters type: Output Response
Padding Rules: Applied
Field Mandatory
Field Name Format Length Description
Sequence [Y / N]
Response Detail AN 9 430 Y Response Detail 1 and Response Detail 2 from UBPS
Signature / ANSX 10 344 Base64 Encoded string (right padded with spaces)
Y
HASH AN 10 88 Base64 Encoded string
Sample Data
Bill Payment response message (420 Bytes) for all Companies:
00HBL001....00000003444666PTCL0012555555..................112233061311290001..............................................
....................................................................................................................................................................................
....................................................................................................................................................................................
........................tAHBuBE2JK/zIr8FvnxklcxmcrH9lbRnRHLNE0ZCmn63ZfYfKSDX/DLNk6eeSQaFreQZ
FNsIaRaKnm9Oh5S9rlhI7TmmsotIq8MB5aow8i1PSo6L13x9omlRNyc4hhsSmc378VjPKzS4pH0P2BEE
0ur1/rnWqP4eBEuiAWM2itNlZZzbdBjBFA38DELZNmB29sdfAviD4E9ZUN6wIgcuf2loDepjEr16R1M
VLH1fvTAmsUCvL1yjH7M/050Bt7/TqniuAg6uihVEZskA91ubR6/9eM7t3qNdxgVLO+3cUrgJu/tjhWR
sg92PbfIvIV4f7+Gz4SFe5wf23yr0aHZ+OQ==
Sample XML:
tAHBuBE2JK/zIr8FvnxklcxmcrH9lbRnRHLNE0ZCmn63ZfYfKSDX/DLNk6eeSQaFreQZFNsIaRaKnm
9Oh5S9rlhI7TmmsotIq8MB5aow8i1PSo6L13x9omlRNyc4hhsSmc378VjPKzS4pH0P2BEE0ur1/rnWqP4
eBEuiAWM2itNlZZzbdBjBFA38DELZNmB29sdfAviD4E9ZUN6wIgcuf2loDepjEr16R1MVLH1fvTAm
sUCvL1yjH7M/050Bt7/TqniuAg6uihVEZskA91ubR6/9eM7t3qNdxgVLO+3cUrgJu/tjhWRsg92PbfIvIV
4f7+Gz4SFe5wf23yr0aHZ+OQ==
00000000 == ATM,
00000001 == IVR
00000002 == Call Center
00000003 == Web
00000004 == SmartATM
ChannelID N 4 8 Y
00000005 == POS
00000006 == CDM_CASH
00000007 == Branch
00000008 == MOB
00000009 == BL Banking
Signature:
BillPayment(string UserID, string Pwd,
string CLientID, string ChanneID,
string STAN, string CompanyCode,
string ConsumerNo, string AuthID,
string Amount,
string TransactionDateTime,
string Signature)
Response Message
Length: 850 Characters (For certificate)
Length: 594 Characters (For SHA 512 Hash)
Field Mandatory
Field Name Format Length Description
Sequence [Y / N]
Signature / ANSX 10 344 Base64 Encoded string (right padded with spaces)
Y
HASH AN 10 88 Base64 Encoded string
00000000 == ATM,
00000001 == IVR
00000002 == Call Center
00000003 == Web
00000004 == SmartATM
ChannelID N 4 8 Y
00000005 == POS
00000006 == CDM_CASH
00000007 == Branch
00000008 == MOB
00000009 == BL Banking
Response Message
Length: 850 Characters (For certificate)
Length: 594 Characters (For SHA 512 Hash)
Field Mandatory
Field Name Format Length Description
Sequence [Y / N]
Signature / ANSX 10 344 Base64 Encoded string (right padded with spaces)
Y
HASH AN 10 88 Base64 Encoded string
Following is a list of response detail for each utility company in the Bill Inquiry response
message.
Field Mandatory
Field Name Format Length Description
Sequence [Y / N]
General Utility Bill Information
zeroes N 1 430 Y
Additional Data
PTCLOnline Specific Bill Information for DEFAULTER, EVOPOST and PSTN
Forma Field Mandator
Field Name Length Description
t Sequence y [Y / N]
Customer Name A 1 30 Y Name of utility customer
Billing Month N 2 2 Y Month of the year for which customer is being billed
Amount Before DD N 3 12 Y Requested bill amount if the due date has not passed
Amount After DD N 5 12 Y Requested bill amount if the due date has passed
Additional Data
PTCL Specific Bill Information
Forma Field Mandatory
Field Name Length Description
t Sequence [Y / N]
Consumer Number N 1 13 Y Utility Company Account Number for the customer
Additional Data
MOBILINK Specific Bill Information
Field Mandator
Field Name Format Length Description
Sequence y [Y / N]
Consumer Name A 1 30 Y All Spaces
[1]+ or – sign
Additional Data
SSGC Specific Bill Information
Field Mandator
Field Name Format Length Description
Sequence y [Y / N]
Consumer Number N 1 10 Y Utility Company Account Number
Current Charges N 2 14 Y Charges for current billing period (eg: month)
Arrears N 3 14 Y Previous unpaid charges
Closing Date N 4 8 Y Date which payment was closed
Surcharge N 5 13 Y Any additional charges that are applicable
Date on which the payment was made. Formatted as CCYYMMDD.
Date Paid N 6 8 Y
Filled only if Bill Status is “P”
Amount Paid N 7 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
SNGPL Specific Bill Information
Field Lengt Mandator
Field Name Format Description
Sequence h y [Y / N]
Date on which the payment was made. Formatted as
Date Paid N 1 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 2 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
GEPCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
LESCO Specific Bill Information
Field Mandatory [Y /
Field Name Format Length Description
Sequence N]
Consumer Number N 1 10 Y Utility Company Account Number
Current Charges N 2 14 Y Charges for current billing period (eg: month)
Arrears N 3 13 Y Previous unpaid charges
Closing Date N 4 8 Y Date which payment was closed
Surcharge N 5 13 Y Any additional charges that are applicable
Date on which the payment was made. Formatted as
Date Paid N 6 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 7 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
KESC Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 12 Y Utility Company Account Number
Current Charges N 2 14 Y Charges for current billing period (eg: month)
Arrears XN 3 13 Y Previous unpaid charges
Closing Date N 4 8 Y Date which payment was closed
Surcharge N 5 13 Y Any additional charges that are applicable
Date on which the payment was made. Formatted as
Date Paid N 6 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 7 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
HESCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
FESCO Specific Bill Information
Field
Field Name Format Sequenc Length Mandatory [Y / N] Description
e
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
IESCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
MEPCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
PESCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
QESCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
MAXCOM Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
WASA Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 14 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
WITRIBE Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Consumer Number N 1 24 Y Utility Company Account Number
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
PIA Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Date on which the payment was made. Formatted as
Date Paid N 1 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 2 12 Y Amount paid. Filled only if Bill Status is “P”
Consumer Passenger name record in the reservation system
AN 3 6 Y
Number/PNR No.
Flight No AN 4 6 Y Unique flight number for a particular filght
Additional Data
HBL E SAHULAT Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Date on which the payment was made. Formatted as
Date Paid N 2 8 Y
CCYYMMDD. Filled only if Bill Status is “P”
Amount Paid N 3 12 Y Amount paid. Filled only if Bill Status is “P”
Additional Data
AIRLINE COMPANIES Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
PNR NO AN 1 8 Y PRU87YT6
PAX COUNT N 2 2 Y 02
CONTACT
N 3 14 Y 00923214748600
NUMBER
FLIGHT NUMBER N 4 8 Y PK235856
FLIGHT TIME N 5 10 Y DDMMYYhhmm
Following is a list of response detail for each utility company in Bill Payment response
message.
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
Consumer No N 1 20 Y Utility Company Account Number
Auth ID N 2 6 Y Unique Authentication ID for the particular transaction
DatePaid N 3 8 Y DDMMYYYY
TimePaid N 4 6 Y Hhmmss
Amount Paid N 5 12 Y Actual amount paid by customer
UBPS_DatePaid N 6 8 Y DDMMYYYY
UBPS_TimePaid N 7 6 Y Hhmmss
DateSettlement N 8 8 Y Date on which the bill was settled
Date on which the respective switch settled the
DateSettlementSwitch N 9 8 Y
transaction ExportDate
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
Consumer No N 1 24 Y Utility Company Account Number
Unique Authentication ID for the particular
Auth ID N 2 6 Y
transaction
DatePaid N 3 8 Y DDMMYYYY
TimePaid N 4 6 Y Hhmmss
Amount Paid N 5 12 Y Actual amount paid by customer
UBPS_DatePaid N 6 8 Y DDMMYYYY
UBPS_TimePaid N 7 6 Y Hhmmss
DateSettlement N 8 8 Y Date on which the bill was settled
Date on which the respective switch settled the
DateSettlementSwitch N 9 8 y
transaction ExportDate
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
Date_Paid 8 YYYYMMDD
Time_Paid 6 HHmmss
Amount 12 SN(X)2
UBPS_DatePaid 8 YYYYMMDD
UBPS_TimePaid 6 HHmmss
DateSettlement 8 yyyymmdd
DateSettlementSwitch 8 yyyymmdd
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
General Utility Bill Payment Information
UBPS_DatePaid N 1 8 Y DDMMYYYY
UBPS_TimePaid N 2 6 Y Hhmmss
Date_Settlement N 3 8 Y Date on which the bill was settled
AdditionalData
Additional Data
HESCO/MEPCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
CircleCode N 1 3 Y
UBPS_DatePaid N 2 8 Y Date on which the bill was paid
UBPS_TimePaid N 3 6 Y Time on which the bill was paid
Additional Data
FESCO/GEPCO//IESCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
CircleCode N 1 2 Y
UBPS_DatePaid N 2 6 Y Date on which the bill was paid
UBPS_TimePaid N 3 8 Y Time on which the bill was paid
Additional Data
KESC Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Spaces N 1 10 Y Padding spaces
UBPS_DatePaid N 2 6 Y Date on which the bill was paid
UBPS_TimePaid N 3 8 Y Time on which the bill was paid
BillID N 4 15 Y Unique ID for the respective bill
ConsumerNoActual N 5 8 Y Actual consumer number
Additional Data
LESCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Spaces N 1 10 Y Padding spaces
UBPS_DatePaid N 2 8 Y Date on which the bill was paid (DDMMYYYY)
UBPS_TimePaid N 3 6 Y Time on which the bill was paid (Hhmmss)
CartType N 4 1 Y
RUCode N 5 1 Y
Additional Data
Maxcom/WASA/WITRIBE Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
UBPS_DatePaid N 1 8 Y Date on which the bill was paid (DDMMYYYY)
UBPS_TimePaid N 2 6 Y Time on which the bill was paid (Hhmmss)
Additional Data
PTCL Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
UBPS_DatePaid N 1 8 Y Date on which the bill was paid (DDMMYYYY)
UBPS_TimePaid N 2 6 Y Time on which the bill was paid (Hhmmss)
DateSettlementPTCL N 3 8 Y Date on which the bill was settled at PTCL end
Unique number associated with bill payment
UniqueTranNumber N 4 12 Y
transaction
Additional Data
MOBILINK Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
UBPS_DatePaid N 1 8 Y Date on which the bill was paid (DDMMYYYY)
UBPS_TimePaid N 2 6 Y Time on which the bill was paid (Hhmmss)
DateSettlement N 3 8 Y Date on which the bill was settled
TransactionID N 4 14 Y Unique ID associated with bill payment transaction
ReceiptNo AN 5 30 Y Receipt number for the particular transaction
Additional Data
SSGC Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
OldConsumerNo N 1 10 Y Previous consumer number
UBPS_DatePaid N 2 8 Y DDMMYYYY
UBPS_TimePaid N 3 6 Y Hhmmss
Additional Data
SNGPL Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
<space> N 1 10 Y Padding space
UBPS_DatePaid N 2 8 Y DDMMYYYY
UBPS_TimePaid N 3 6 Y Hhmmss
Additional Data
SEPCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
UBPS_DatePaid N 1 8 Y Date on which the bill was paid
UBPS_TimePaid N 2 6 Y Time on which the bill was paid
Additional Data
KWSB Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Spaces N 1 10 Y
UBPS_DatePaid N 2 8 Y Date on which the bill was paid (DDMMYYYY)
UBPS_TimePaid N 3 6 Y Time on which the bill was paid (Hhmmss)
Additional Data
SEPCO Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
UBPS_DatePaid N 1 8 Y Date on which the bill was paid
UBPS_TimePaid N 2 6 Y Time on which the bill was paid
Additional Data
KENC Specific Bill Information
Field
Field Name Format Length Mandatory [Y / N] Description
Sequence
Spaces N 1 10 Y Padding spaces
UBPS_DatePaid N 2 8 Y Date on which the bill was paid (DDMMYYYY)
UBPS_TimePaid N 3 6 Y Time on which the bill was paid (Hhmmss)
LoadType A 4 1 Y
DocCode A 5 1 Y
ApplicationNo AN 6 11 Y Customer address information along with spaces
If UBPS web service sends any response code other than the following (in response to an
advice from a client), the client must have the ability to re-transmit the advice.
00 Successful transaction
In order to avoid processing the same transaction (retransmitted via client) multiple times, the
client should values provided in the following fields. These fields help identify the
transactions that have been re-transmitted from the client side.
STAN
CompanyCode
ConsumerNo
AuthID
Amount
TransactionDateTime
Transaction Timeout Value denotes the amount of time after which the web service client
should end the transaction at their end and map it as a transaction time out.
The aggregator that processes transactions will define and share the transaction timeout value
with the web service client. This transaction timeout value needs to be used at the web service
client’s end as well.
The timeout value can be configured in web.config file of the web service in the node named
key="iResponseTimeout" value="30"
Please be notified that Digital Signature is no longer being used since May 2016 and all
new members are requested to incorporate the Hashing (Section 5) instead of Digital
Signature. You are requested to test and migrate to Hashing as soon as possible because a
new certificate will not be exchanged by 1LINK.
The signatures in all request and response messages are calculated as per the following
mechanism:
return sSignature;
}
Example:
tAHBuBE2JK/zIr8FvnxklcxmcrH9lbRnRHLNE0ZCmn63ZfYfKSDX/DLNk6eeSQaFreQZFNsIaRaKn
m9Oh5S9rlhI7TmmsotIq8MB5aow8i1PSo6L13x9omlRNyc4hhsSmc378VjPKzS4pH0P2BEE0ur1
/rnWqP4eBEuiAWM2itNlZZzbdBjBFA38DELZNmB29sdfAviD4E9ZUN6wIgcuf2loDepjEr16R1M
VLH1fvTAmsUCvL1yjH7M/050Bt7/TqniuAg6uihVEZskA91ubR6/9eM7t3qNdxgVLO+3cUrgJu/t
jhWRsg92PbfIvIV4f7+Gz4SFe5wf23yr0aHZ+OQ==
Example:
PrivateKeyOfDigitalCertificate:
This is the Private Key part of the client’s digital certificate. It will be extracted from the private
key certificate.
When the client calculates the signature, it will use its own private key from its own private
key certificate.
Similarly, when the web service calculates the signature, it will use its own private key from
its own private key certificate.
Digital Certificate:
Digital certificates can be obtained through various certificate authorities, for example:
VeriSign, Norton, etc. This digital certificate will have both public and private keys in it.
Process to Exchange public key certificates between a client and bill payment server:
Both the client and bill payment server acquire their own X509 digital certificates from any
certificate authority. Both parties then export their public key certificates (from their own X509
digital certificate) and exchange them with each other.
Note that the client now has its own private key certificate as well as the bill payment system
public key certificate. Similarly, the bill payment system now has its own private key
certificate and the client’s public key certificate.
The SHA 512 hash in all request and response messages are calculated as per the
following mechanism.
Example:
ok99UBt5EVK46/uwNLGKW8BmADMxybfZcfU70VgADizuzkHuDyBlKJfYOq/jt0j/EaDst7XGWD4soeypiS
lexg==
Example:
This is the Unique Private Key for bank which will be used as salt with concatenated
parameters (Plain text + Salt/Key) to hash and would be provided by 1link to every bank.
HASH:
A hash function is any function that can be used to map data of arbitrary size to data of fixed
size. The values returned by a hash function are called hash values, hash codes, hash sums, or
simply hashes.
25 UBPS service timed out or is not available When UBPS service is not responding in due time or
it is not available
27 Internal / Unspecified Error When UBPS Web service crashes due to any reason
92 Relationship Not Found When Bill enquiry (Tran Code: 72) is not successfully
responded by respective company’s web service
94 Bill Not Found When Bill Payment Advice (Tran Code: 73) is not
successfully responded by respective company’s
web service
95 Web Service timed out or is not available When respective company’s web service is not
responding in due time or it is not available
96 Malformed Request (Error in Request Message Currently not in use by UBPS application
Format)
97 Internal / Unspecified Error When UBPS application crashes due to any reason
98 Some Error occurred in web-service If any error has occurred in the web service of the
respective utility/telco company
This document has been prepared with all due diligence, however, TPS Private Limited,
makes no representation or warranties with respect to the contents hereof and shall not be
responsible for any loss or damage caused to the user by the direct or indirect use of this
document and the accompanying information. Furthermore TPS Private Limited, reserves
the right to alter, modify or otherwise change in any manner the content hereof, without
the obligation to notify any person of such revision or changes.
All registered and trademarked names referred to in this document are owned by their
respective owners.