This API reference document contains a brief description of the available API’s with clearly defined input and output parameters on the right side under the title ‘Parameter description’. Request and response bodies are also provided along with each API with sample data for clear understanding.
Card API's
Following card based API’s are available with detailed description and relevant information.
Authorize
This is a request to obtain an authorization for a proposed funds transfer. An authorization is a response from a financial institution indicating that payment information is valid and funds are available in the payer's account.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_InstrumentType"
Type of instrument used for making payment.
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_Amount"
The transaction amount.
Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_CustomerCardNumber"
Card number of the customer making the payment.
"pp_CustomerCardExpiry"
Expiry date of the card used for making payment.
Format: MMYY (Month Month Year Year).
"pp_CustomerCardCvv"
Card verification value, as printed on the back or front of the card.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
"pp_Frequency"
Indicates the frequency of the transaction offered to the payer.
Value could be any one of the following, based on the usage:
SINGLE: Indicates a single transaction where a single payment is used to complete the order.
RECURRING: Indicates a recurring transaction where the payer authorizes you to automatically debit their accounts for bill or invoice payments.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
Capture
This is a request to capture funds previously reserved by an authorization. A Capture transaction triggers the movement of funds from the payer's account to the merchant's account.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_Amount"
The transaction amount.
Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
Void
This is a request to void a previous transaction. A void transaction will reverse a previous transaction.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
Refund
This is a request to refund previously captured funds to the payer. Typically, a Refund is linked to the Capture or Pay through the txnrefno.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_Amount"
The transaction amount.
Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
Transaction Status Inquiry
This is a request to retrieve the details of an order and all transactions associated with this order.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
"pp_Version"
Payment Portal Version. Fixed value ‘1.1’ should be used.
expand_moreOutput Parameters
Parameter
Description
"status"
Status of the transaction at JazzCash payment gateway.
"rrn"
A unique number generated by the Payment Gateway at the time of transaction processing. The number should be stored and used for future reference.
The number is unique for any given date.
"settlementDate"
A date supplied by the Payment Gateway to indicate when this transaction will be settled.
When the Payment Gateway closes the batch at the end of the day, the date will roll over to the next processing day’s date.
This date will only be provided in case a transaction is already confirmed by the merchant.
"settlementExpiryDate"
A date supplied by the Payment Gateway indicating that if the merchant does not send a confirmation of the transaction by this time, the payment gateway will mark the transaction as expired and the merchant will not be able to resume it.
This field will be mandatory where Auth Code is available.
"authCode"
An identifying code issued by the issuing bank to approve or deny the transaction.
The field is mandatory in case of successful response code. Refer to Appendix I for a list of response codes and the codes which when sent will require Auth Code.
"bankID"
This field will only be used in case of Direct Debit transaction type, otherwise it should be sent as an empty field.
Customer’s bank that authorized the transaction.
"productID"
This field will only be used in case of Direct Debit transaction type.
Product ID of bank through which payment has been performed. e.g. Retail, Corporate.
Fixed values: ‘RETL’, ‘CORP’.
In case value was provided at the time of request, this field will contain the same value. Otherwise, ID of the product chosen by customer at Payment Gateway will be filled.
3D Secure Enrollment
This is a request to check a cardholder's enrollment in the 3DSecure scheme.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_TxnType"
Type of instrument used for making payment.
"pp_Amount"
The transaction amount.
Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_TxnDateTime"
Merchant provided date and time of transaction. The format of date time should be yyyyMMddHHmmss.
"pp_TxnExpiryDateTime"
Transaction Expiry can be specified by merchant to indicate to the issuing bank that the transaction must be approved within this period. Please note that the default and maximum value of this expiry is 3 months.
"pp_BillReference"
Bill/invoice Number being settled.
"pp_Description"
Transaction details to be shown on screen as desired by the merchant. This field will be parsed to identify any malicious data entered by the end user. In cases when any of these characters <>\*=%/:'|"{} are inserted, they will be replaced with a space.
"pp_CustomerCardNumber"
Card number of the customer making the payment.
"pp_CustomerCardExpiry"
Expiry date of the card used for making payment.
Format: MMYY (Month Month Year Year).
"pp_CustomerCardCvv"
Card verification value, as printed on the back or front of the card.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
"pp_Version"
Payment Portal Version. Fixed value ‘1.1’ should be used.
expand_moreOutput Parameters
Parameter
Description
"result_CardEnrolled"
Card enrolment status of the customer.
"c3dSecureID"
A unique identifier supplied by Jazz Cash to Master Card for authentication.
"aR_Simple_Html"
An HTML form for the card enrolled transaction.
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
Process ACS
This request is made to interpret the authentication response returned from the card Issuer's Access Control Server (ACS) after the cardholder completes the authentication process. The response indicates the success or otherwise of the authentication.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_TxnType"
Type of instrument used for making payment.
"pp_TxnDateTime"
Merchant provided date and time of transaction. The format of date time should be yyyyMMddHHmmss.
"pp_TxnExpiryDateTime"
Transaction Expiry can be specified by merchant to indicate to the issuing bank that the transaction must be approved within this period. Please note that the default and maximum value of this expiry is 3 months.
"pp_BillReference"
Bill/invoice Number being settled.
"pp_Description"
Transaction details to be shown on screen as desired by the merchant. This field will be parsed to identify any malicious data entered by the end user. In cases when any of these characters <>\*=%/:'|"{} are inserted, they will be replaced with a space.
"paRes"
Base64 encoded string received from the card Issuer's ACS after the cardholder completes the authentication process.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
"pp_Version"
Payment Portal Version. Fixed value ‘1.1’ should be used.
expand_moreOutput Parameters
Parameter
Description
"gateWayCode"
Approval code returned from Master Card after processing ACS.
"c3dSecureID"
A unique identifier supplied by Jazz Cash to Master Card for authentication.
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
Direct Pay
This is a single transaction to authorize payment and transfer funds from payer's account to merchant’s account.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_TxnType"
Type of instrument used for making payment.
"pp_Amount"
The transaction amount.
Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_TxnDateTime"
Merchant provided date and time of transaction. The format of date time should be yyyyMMddHHmmss.
"pp_TxnExpiryDateTime"
Transaction Expiry can be specified by merchant to indicate to the issuing bank that the transaction must be approved within this period. Please note that the default and maximum value of this expiry is 3 months.
"pp_BillReference"
Bill/invoice Number being settled.
"pp_Description"
Transaction details to be shown on screen as desired by the merchant. This field will be parsed to identify any malicious data entered by the end user. In cases when any of these characters <>\*=%/:'|"{} are inserted, they will be replaced with a space.
"pp_CustomerCardNumber"
Card number of the customer making the payment.
"pp_CustomerCardExpiry"
Expiry date of the card used for making payment.
Format: MMYY (Month Month Year Year).
"pp_CustomerCardCvv"
Card verification value, as printed on the back or front of the card.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
"pp_Version"
Payment Portal Version. Fixed value ‘1.1’ should be used.
"pp_Frequency"
Indicates the frequency of the transaction offered to the payer.
Value could be any one of the following, based on the usage:
SINGLE: Indicates a single transaction where a single payment is used to complete the order.
RECURRING: Indicates a recurring transaction where the payer authorizes you to automatically debit their accounts for bill or invoice payments.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
Mobile Account API's
Following API’s are available with detailed description and relevant information for Mobile Account.
REST based Mobile Account API
This is REST based API used for the transaction of Mobile Account as a payment instrument.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_Version"
Payment Portal Version. Fixed value ‘1.1’ should be used.
"pp_TxnType"
Type of instrument used for making payment.
"pp_Language"
Specifies the language in which to display the page. Fixed value ‘EN’.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_SubMerchantID"
Unique Id assigned to each sub merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_Amount"
The transaction amount. Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_TxnDateTime"
Merchant provided date and time of transaction. The format of date time should be yyyyMMddHHmmss.
"pp_BillReference"
Bill/invoice Number being settled.
"pp_Description"
Transaction details to be shown on screen as desired by the merchant. This field will be parsed to identify any malicious data entered by the end user. In cases when any of these characters <>\*=%/:'|"{} are inserted, they will be replaced with a space.
"pp_TxnExpiryDateTime"
Transaction Expiry can be specified by merchant to indicate to the issuing bank that the transaction must be approved within this period. Please note that the default and maximum value of this expiry is 3 months.
"pp_ReturnURL"
The URL where merchant wants the transaction results to be shown. Once the transaction has been processed, response details will be sent over to the merchant on this URL using an HTTP POST Request.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
This is SOAP based API used for the transaction of Mobile Account as a payment instrument.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_TxnType"
Type of instrument used for making payment.
"pp_Amount"
The transaction amount.
Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_TxnDateTime"
Merchant provided date and time of transaction. The format of date time should be yyyyMMddHHmmss.
"pp_TxnExpiryDateTime"
Transaction Expiry can be specified by merchant to indicate to the issuing bank that the transaction must be approved within this period. Please note that the default and maximum value of this expiry is 3 months.
"pp_BillReference"
Bill/invoice Number being settled.
"pp_Description"
Transaction details to be shown on screen as desired by the merchant. This field will be parsed to identify any malicious data entered by the end user. In cases when any of these characters <>\*=%/:'|"{} are inserted, they will be replaced with a space.
"pp_CustomerCardNumber"
Card number of the customer making the payment.
"pp_CustomerCardExpiry"
Expiry date of the card used for making payment.
Format: MMYY (Month Month Year Year).
"pp_CustomerCardCvv"
Card verification value, as printed on the back or front of the card.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
"pp_Version"
Payment Portal Version. Fixed value ‘1.1’ should be used.
"pp_Frequency"
Indicates the frequency of the transaction offered to the payer.
Value could be any one of the following, based on the usage:
SINGLE: Indicates a single transaction where a single payment is used to complete the order.
RECURRING: Indicates a recurring transaction where the payer authorizes you to automatically debit their accounts for bill or invoice payments.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
Voucher Payment API's
Following API’s are available with detailed description and relevant information for Voucher Payment.
REST based Voucher API
This is REST based API used for the transaction of Voucher as payment instrument.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_Version"
Payment Portal Version. Fixed value ‘1.1’ should be used.
"pp_TxnType"
Type of instrument used for making payment.
"pp_Language"
Specifies the language in which to display the page. Fixed value ‘EN’.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_SubMerchantID"
Unique Id assigned to each sub merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_Amount"
The transaction amount. Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_TxnDateTime"
Merchant provided date and time of transaction. The format of date time should be yyyyMMddHHmmss.
"pp_BillReference"
Bill/invoice Number being settled.
"pp_Description"
Transaction details to be shown on screen as desired by the merchant. This field will be parsed to identify any malicious data entered by the end user. In cases when any of these characters <>\*=%/:'|"{} are inserted, they will be replaced with a space.
"pp_TxnExpiryDateTime"
Transaction Expiry can be specified by merchant to indicate to the issuing bank that the transaction must be approved within this period. Please note that the default and maximum value of this expiry is 3 months.
"pp_ReturnURL"
The URL where merchant wants the transaction results to be shown. Once the transaction has been processed, response details will be sent over to the merchant on this URL using an HTTP POST Request.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.
SOAP based Voucher API
This is soap based API used for the transaction of Voucher as payment instrument.
Request Body
Response Body
Parameter Description
expand_moreInput Parameters
Parameter
Description
"pp_TxnRefNo"
A unique value created by the merchant to identify the transaction.
"pp_TxnType"
Type of instrument used for making payment.
"pp_Amount"
The transaction amount.
Please note that no decimal places are included. Decimal place will be assumed at the default position of the currency provided.
"pp_TxnCurrency"
Currency of transaction amount. It has a fixed value ‘PKR’.
"pp_TxnDateTime"
Merchant provided date and time of transaction. The format of date time should be yyyyMMddHHmmss.
"pp_TxnExpiryDateTime"
Transaction Expiry can be specified by merchant to indicate to the issuing bank that the transaction must be approved within this period. Please note that the default and maximum value of this expiry is 3 months.
"pp_BillReference"
Bill/invoice Number being settled.
"pp_Description"
Transaction details to be shown on screen as desired by the merchant. This field will be parsed to identify any malicious data entered by the end user. In cases when any of these characters <>\*=%/:'|"{} are inserted, they will be replaced with a space.
"pp_CustomerCardNumber"
Card number of the customer making the payment.
"pp_CustomerCardExpiry"
Expiry date of the card used for making payment.
Format: MMYY (Month Month Year Year).
"pp_CustomerCardCvv"
Card verification value, as printed on the back or front of the card.
"pp_MerchantID"
Unique Id assigned to each merchant by the payment gateway.
"pp_Password"
Assigned to each merchant, used for authentication of the merchant at the time of payment. Password is a system generated value.
"pp_SecureHash"
Used to allow the Payment Gateway to check the integrity of the transaction request.
"pp_Version"
Payment Portal Version. Fixed value ‘1.1’ should be used.
"pp_Frequency"
Indicates the frequency of the transaction offered to the payer.
Value could be any one of the following, based on the usage:
SINGLE: Indicates a single transaction where a single payment is used to complete the order.
RECURRING: Indicates a recurring transaction where the payer authorizes you to automatically debit their accounts for bill or invoice payments.
expand_moreOutput Parameters
Parameter
Description
"responseCode"
Response code representing the transaction success or failure. A response code of 000 represents success.
"responseMessage"
Error details in case the transaction failed to be processed.
This field will be mandatory for all cases where response code is not equal to 000.