Purchase API

This API is used by the Credit+ Issuing system to processthe Purchase transaction. This API is application for Credit, Debit and Prepaid products.

HTTP Status and Response Status Matrix

  • HTTP Code: This is the response status code issued by a server in response to a client's request made to the server.
  • Error Code: This is the error code returned by Credit+ Issuing application in the ‘code’ field of the response message indicating if the request was processed successfully or failed.
  • Description: This is the description of the error code returned by Credit+ Issuing application.
  • Details: This is the detailed description of the error code returned by Credit+ Issuing application
HTTPS CodeError CodeDescriptionDetails
200000Successful.
401107REFER TO CARD ISSUER.
401200CAPTURE CARD.
401100Do Not Honour.
401207PICK-UP CARD.
400304Error in field.
400110Invalid Amount.
400905Invalid Client.
400903Invalid Currency.
400307Format Error.
400114Invalid Account Type.
401116Insufficient Fund.
404181No Current Account.
404182No Saving Account.
403119Transaction not permitted.
403102Suspected fraud.
403121Exceeds Amount Limit.
403122Security violation.
403123Frequency Exceeded.
404719Invalid/nonexistent account specified (general).
400184Invalid date.
403913Duplicate transmission detected.
500909System Malfunction.
400997Form Factor field is mandatory.
400997FormFactorType field is invalid.
400997Form Factor Type is mandatory.
400997Program Code field should only contain [A-Z 0-9] and underscore and must start and end with alphanumeric character.
400997Device Plan Code field should only contain [A-Z 0-9] and underscore and must start and end with alphanumeric character.
400997Product Type field is invalid.
400997Only alphanumeric characters and underscore are allowed.
400997FORM_FACTOR field value must have max length 24.
400CNA006Multiple device numbers are active for given details.
400CNA002Card Number Alias Functionality is not applicable for this Institution.
400CNA003Record does not exists for the given details.
400CNA001Bank Does Not Exists.
400997acceptorTerminalId field is mandatory.
400997acquirerCountryCode field is mandatory.
400997acquiringInstitutionCode field is mandatory.
400997billingAmt field is mandatory.
400997billingCurrency field is mandatory.
400997channel field is mandatory.
400997mcc field is mandatory.
400997rrn field is mandatory.
400997traceAuditNumber field is mandatory.
400997txnamount field is mandatory.
400997txnCurrency field is mandatory.
400997transactionDateTime field is mandatory.
400997dateTimeTransmission field is mandatory.
400997acceptorId field value must have size 15.
400997acceptorNameLocation field value must have size 40.
400997acceptorTerminalId field value must have size 8.
400997acquirerCountryCode field value must have size 3.
400997billingAmt field value must have size 12.
400997billingCurrency field value must have size 3.
400997channel field value must have size 3.
400997formFactorType field value must have size 3.
400997formFactorExpiryDate field value must have size 4.
400997mcc field value must have size 4.
400997rrn field value must have size 12.
400997txnamount field value must have size 12.
400997txnCurrency field value must have size 3.
400997transactionDateTime field value must have size 14.
400997dateTimeTransmission field value must have size 10.
400997acquiringInstitutionCode field value must have max length 11.
400997trackTwoData field value must have max length 40.
400997billingAmt field must be a positive value with maximum 12 integers and 0 fractions.
400997currencyConversionRate field must be a positive value with maximum 8 integers and 0 fractions.
400997txnamount field must be a positive value with maximum 12 integers and 0 fractions.
400997billingCurrency field must be numeric.
400997surchargeFee must start with character 'D'.
400997surchargeFee field must have character 'D' followed by eight numeric characters.
400997txnCurrency field must be numeric.
400997channel field is invalid.
400997formFactor field value must have min length 10.
400997formFactorExpiryDate field should be empty for form factor type CNA and CPI.
400997formFactorExpiryDate field must be in yyMM format.
400997transactionDateTime field must be in yyyyMMddHHmmss format.
400997dateTimeTransmission field must be in MMddHHmmss format.
403900User Or Bank does not support API.
500BASPAR001MCC field is required for Purchase Transaction.
500VALFRM002Invalid.
500VALFRM003Invalid Device.
500VALFRM004Invalid Device.
500VALFRM024Device is not stoplisted.
500VALFRM026Error while getting device details.
500VALFRM005Invalid Card Pack Id.
500VALFRM006Invalid Client.
500VALFRM007Invalid form factor type.
500VALFRM008Device status is not normal.
500VALFRM023Error while validating form factor.
500HDEERR001Error in Device and Device Plan Selection.
500VALFRM046Error getting device details.
500VALEXP001Expiry Date can not be null.
500VALEXP002Expiry Date is not matching.
500BPINU002Error in Device Selection.
500GETCNT002Invalid card pack id.
500VALEXP004Expiry Date is null.
500VALEXP005Expiry Date is not matching.
500VALEXP006Expiry Date should be null.
500VALEXP007Error while validating expiry date.
500GETDEV001Invalid device.
500GETDEV002Invalid Card pack id.
500GETDEV003Invalid client code.
500GETDEV004Error while fetching device number.
500GETCNT001Invalid device.
500GETCNT003Invalid client code.
500GETCNT004Error while fetching device number.
500BASPAR002Invalid Datetime.
500CHKRRN002Error in Fun CHKRRN002 FUN_CHECK_RRN_TAN_CARD_TXN_DATE.
500BASPAR003Invalid device number.
500CHKRRN000RRN already exists.
500CHKRRN001RRN already exists.
500CHKRRN002Error while processing.
500BASPAR004Transaction API field validation is failed due to an internal error. Please contact system admin.
5003INVALID MERCHANT.
5004DO NOT HONOR, PICK-UP.
5005DECLINED.
5006CONTROL FIELD EDIT ERROR.
5007SUSPECTED FRAUD, PICK-UP.
50011APPROVED (VIP).
50012ACCOUNT TYPE NOEXIST.
50013INVALID AMOUNT.
50014INVALID CARD NUMBER.
50015UNKNOWN ISSUER ON SWITCH.
50019RE-ENTER TRANSACTION.
50021NO ACTION TAKEN.
50025UNABLE TO LOCATE RECORD ON FILE.
50028LOCKED FILE.
50039NO CREDIT ACCOUNT.
50041LOST CARD, PICK-UP.
50043STOLEN CARD, PICK-UP.
50051INSUFFICIENT FUNDS.
50052NO CHEQUING ACCOUNT.
50053NO SAVING ACCOUNT.
50054EXPIRED CARD.
50055PIN DATA REQUIRED.
50057TRANSACTION NOT PERMITTED TO CARDHOLDER.
50061EXCEEDS WITHDRAWAL AMOUNT LIMIT.
50062RESTRICTED CARD.
50063SECURITY VIOLATION.
50065EXCEEDS WITHDRAWAL FREQUENCY LIMIT.
50075ALLOWABLE NUMBER OF PIN TRIES EXCEEDED.
50079ALREADY ADJUSTED.
50080INVALID DATE.
50081PIN KEY ERROR.
50082INVALID CVV.
50083UNABLE TO VERIFY CVV/PIN.
50084RESPONSE RECEIVED TOO LATE.
50085NO REASON TO DECLINE.
50086UNABLE TO VERIFY CVV/PIN.
50087CUTOFF RECONCILIATION.
50088CUTOFF IS IN PROCESS.
50089UNAVAILABLE CUTOFF RECONCILIATION WITH MEMBER.
50091ISSUER OR SWITCH IS INOPERATIVE.
50092UNABLE TO ROUTE TRANSACTION.
50093UNABLE TRANSACTION PROCESS.
50096SYSTEM MALFUNTION.
500N7Invalid CVV2.
500100Do Not Honour.
500101EXPIRED CARD.
500102Suspected fraud.
500103Card acceptor contact acquirer.
500106Allowable Pin tries exceeded.
500107REFER TO CARD ISSUER.
500109Invalid Merchant.
500110Invalid Amount.
500111Invalid card number.
500112PIN data required.
500113Unacceptable fee.
500114Invalid Account Type.
500116Insufficient Fund.
500117Incorrect PIN.
500118No card record.
500119Transaction not permitted.
500120TRANSACTION NOT PERMITTED ACQUIRER.
500121Exceeds Amount Limit.
500122Security violation.
500123Frequency Exceeded.
500125Card not effective.
500126Invalid PIN Format.
500181No Current Account.
500182No Saving Account.
500183CVV Verification Failure.
500184Invalid date.
500191CVV2/CVC2/CVD2/4CSC Verification Failure.
500192CVV2/CVC2/CVD2 Verification Failure.
500200CAPTURE CARD.
500207PICK-UP CARD.
500208LOST CARD, PICK-UP.
500209STOLEN CARD, PICK-UP.
500211Per transaction Cash limit exceeded.
500212Purchase Limit Exceeded.
500213Per transaction Travel and Entertainment limit exceeded.
500214Per transaction Fund Transfer limit exceeded.
500215Daily Cash Limit Exceeded.
500216Daily Purchase Limit Exceeded.
500217Daily Transport and Entertainment Limit Exceeded.
500218Daily Inter Bank Fund Transfer Limit Exceeded.
500219Daily Total Limit Exceeded.
500220Periodic Purchase Limit Exceeded.
500221Periodic Cash Limit Exceeded.
500222Periodic Transport and Entertainment Limit Exceeded.
500223Periodic Inter Bank Fund Transfer Limit Exceeded.
500224Periodic Total Limit Exceeded.
500225MCC Transaction Limit Exceeded For International Transaction.
500226MCC Daily Amount Limit Exceeded For International Transaction.
500227MCC Period Amount Limit Exceeded For International Transaction.
500228MCC Daily Count Limit Exceeded For International Transaction.
500229MCC Periodic Count Limit Exceeded For International Transaction.
500271FT Incoming Min Amount Violated.
500272FT Incoming Per Transaction Amt Exceeded.
500273FT Incoming Daily Amt Limit Exceeded.
500274FT Incoming Daily Velocity Exceeded.
500275FT Incoming Periodic Amt Limit Exceeded.
500276FT Incoming Periodic Velocity Exceeded.
500277FT Incoming Yearly Amt Limit Exceeded.
500280RUPAY ECOM ERROR.
500283AMOUNT IS LESS THAN MINIMUM LOAD AMOUNT ALLOWED.
500284AMOUNT EXCEEDED PER TRANSACTION LOAD LIMIT.
500285Velocity: DAILY LOAD VELOCITY EXHAUSTED.
500286AMOUNT EXCEEDED DAILY LOAD LIMIT ALLOWED.
500287Velocity: Periodic LOAD VELOCITY EXHAUSTED.
500288AMOUNT EXCEEDED PERIODIC LOAD LIMIT ALLOWED.
500289Velocity: Periodic LOAD VELOCITY EXHAUSTED.
500290AMOUNT EXCEEDED YEARLY LOAD LIMIT ALLOWED.
500291VELOCITY: MAX NUMBER OF LOAD EXHAUSTED.
500292FT Outgoing Daily Amt Limit Exceeded.
500293FT Outgoing Daily Velocity Exceeded.
500294FT Outgoing Periodic Amt Limit Exceeded.
500295FT Outgoing Periodic Velocity Exceeded.
500296FT Outgoing Yearly Amt Limit Exceeded.
500278FT Incoming Yearly Velocity Limit Exceeded.
500298FT Outgoing Minimum Amount Limit Violated.
500299FT Outgoing Per Txn Limit Exceeded.
500480Transaction Aged.
500902Invalid Transaction.
500903Invalid Currency.
500904Invalid Institution.
500905Invalid Client.
500907Issuer Switch Inoperative.
500909System Malfunction.
500911Issuer timed out.
500912Service not available.
500914Original Transaction Not Found.
500993Unable to verify PIN.
500995Object Not in Sync.
500REQResponse not received from third party.
5006Partial Approval.
500115Function Not Supported.
500104Restricted card/Card Not permitted.
500908Unable to route transaction.
500719Invalid/nonexistent account specified (general).
500297FT Outgoing Yearly Velocity Limit Exceeded.
500913Duplicate transmission detected.
500502Error When Fetching Data from client_aggregate_tot.
500503Error while converting amount.
500504Error in calculating aggregate periods.
500131MID-TID Block.
500710Deemed Approve.
500915Timeout Reversal not supported.
500910Invalid Biller/Payee ID.
500996Debit-limit Update failed.
500505Exceeded Aggregate Monthly Load Limit on Client.
500506Exceeded Aggregate Monthly Velocity.
500507Exceeded Aggregate Yearly Load Limit on Client.
500508Exceeded Aggregate Yearly Velocity.
500509Invalid travel type chosen, limits not defined under this program.
500510PER trip limit exceeded.
500511PER YEAR TRAVEL limit exceeded.
500512Internal error while validating travel LIMITS.
500513ERROR WHILE UPDATING TRAVEL USAGE COUNTERS.
500514ERROR WHILE UPDATING CLIENT USAGE COUNTERS.
500515Internal error while validating aggregate LIMITS.
500516No active or upcoming travel trip exist for device.
500TRANSACTION_PROCESSING_TIMEOUTThe transaction processing has got timed out. Please try after some timeA reversal entry would be created for the transaction only if the processing is successful.
500TRANSACTION_PROCESSING_FAILUREThe transaction cannot be processed. Please try after some time.
400994Invalid Encryption-Algorithm header value.
400994Invalid Encryption Request Parameters.
400994Cryptography error.
500988Encryption Algorithm Not Supported.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
length between 15 and 15
^[a-zA-Z0-9]{15}$

Unique ID to identify the merchant from where the transaction is initiated. Alphanumeric. Length: 15. Spaces are not allowed. Example: 123456789123456

string
length between 40 and 40
^[a-zA-Z0-9]{40}$

Name and location of the card acceptor. Alphanumeric. Length: 40. Spaces are not allowed. Example: 1234567890123456789012345678901234567890

string
required
length between 8 and 8
^[a-zA-Z0-9]{8}$

Identification code of acceptor terminal. Alphanumeric. Length: 8. Not Null. Spaces are not allowed. Example: ABCDEFGH

string
required
length between 3 and 3
^[a-zA-Z0-9]{3}$

ISO Acquirer Country code of the transaction. Alphanumeric. Length: 3. Not Null. Example: 356

string
required
length between 11 and 11
^[a-zA-Z0-9]{11}$

Acquiring institution code identifies the acquiring institution; that is, merchant’s bank or its agent. Alphanumeric. Length: 11. Not Null. Example: 222333

string
required
length between 12 and 12
^[0-9]{12}$

Billing amount. Alphanumeric. Length: 12. Not Null, Numeric and cannot be negative. Currency Exponent validation. Needs to be converted to ISO format while assigning to mapper. Example: 000000000500

string
required
length between 3 and 3
^[0-9]{3}$

Billing Currency Code. Alphanumeric. Length: 3. Not Null Numeric ISO Currency Code. Example: 356

string
required
length between 3 and 3
^API$

Delivery Channel Controller ID - Three-character code identifying the controller. Alphanumeric. Length: 3. Value should be 'API'. Example: API

string
length ≤ 8
^[0-9]{1,8}$

Currency Conversion Rate. Numeric. Length: 7, 8. Numeric and cannot be negative. Needs to be converted to ISO format while assigning to mapper. Example: 61000000

string
required
length between 10 and 24
^[a-zA-Z0-9]{10,24}$

It will contain either Card Number or Card Number Alias or Card Pack ID based on the formFactorType value. Not Null. Maximum length: 24. Minimum length: 10 (minimum length is not applicable for CNA). Alphanumeric. Example: RP23SEP or 5301682345434310

string
length between 4 and 4
^[0-9]{4}$|^$

Expiry date of the card number. Format: YYMM. Length: 4. Not Null if the form factor is selected as 'CRD'. Example: 2906

string
enum
required
length between 3 and 3

It is used to identify whether Card Number (CRD) or Card Number Alias (CNA) or Card Pack ID (CPI) is received in request. Alphanumeric. Length: 3. Not Null. Either CRD or CNA or CPI. Example: CNA or CRD

Allowed:
string
required
length between 4 and 4
^[0-9]{4}$

Merchant Category Code. Merchant category code identifies the merchant’s type of business or service. It must be a valid code from list of MCCs available in Quick reference booklet published by interchange/schemes. Alphanumeric. Length: 4. Not null. Example: 5999

string
enum
length ≤ 1

Product type (Credit, Debit and Prepaid). Alphanumeric. Length: 1. Valid Value- 'P','D','C'. This field is required only when formFactorType is CNA and multiple devices are linked with same CNA. Example: P

Allowed:
string
length ≤ 6
^[A-Z0-9][A-Z0-9_]*[A-Z0-9]$

Program Code. Alphanumeric. Length: 6. This field is required only when formFactorType is CNA and multiple devices are linked with same CNA. Example: HJU001

string
length ≤ 10
^[A-Z0-9][A-Z0-9_]*[A-Z0-9]$

Device Plan. Alphanumeric. Length: 10. This field is required only when formFactorType is CNA and multiple devices are linked with same CNA. Example: FHITG85778

string
required
length between 12 and 12
^[a-zA-Z0-9]{12}$

It can be used to retrieve the original transaction data. It is Mandatory and a Unique Authorization Reference Number (Reference Retrieval Number). Alphanumeric. Length: 12. Not Null. Example: 987654321099

string
length ≤ 9
^D[0-9]{8}$|^$

This field contains transaction fee if applied. This will contain any surcharge fee applied for the transaction with the Sign. If present should be as per given format. For example, Eg; D12345678. Where 1st char is alphanumeric and must be D. Rest 8 characters are numeric. Alphanumeric. Length: 9. Example: D00000045

string
required
length between 6 and 6
^[a-zA-Z0-9]{6}$

A number assigned by the originator of a transaction to uniquely identify a transaction. Alphanumeric. Length: 6. Not Null. Example: 999999

string
required
length between 12 and 12
^[0-9]{12}$

Transaction amount. Numeric. Length: 12, 7. Not Null, Numeric and cannot be negative. Currency Exponent validation. Needs to be converted to ISO format while assigning to mapper. Example: 000000000500

string
required
length between 3 and 3
^[0-9]{3}$

Transaction Currency Code. Alphanumeric. Length: 3. Not Null Numeric ISO Currency Code. Example: 356

string
required
length between 14 and 14
^[0-9]{14}$

Transaction local date and time [yyyyMMddHHmmss]. yyyy – 0000 to 9999, MM – 01 to 12, DD – 01 to 31, HH – 00 to 23, mm – 00 to 59, ss – 00 -59. Alphanumeric. Length: 14. Not Null, Value should be in given format. Example: 20190923101000

string
required
length between 10 and 10
^[0-9]{10}$

Transaction time – GMT [MMDDhhmmss]. MM – 01 to 12, DD – 01 to 31, HH – 00 to 23, mm – 00 to 59, ss – 00 -59. Alphanumeric. Length: 10. Not Null. Value should be in given format and its values. Example: 0916000000

string
required
length between 3 and 3
^[0-9]{3}$

POS Entry Mode. It indicates the method used for PAN entry to initiate a transaction and the PIN entry capabilities. Refer to DE-22 details present in ‘Customer Interface Specification’ published by Pine Labs for values and their description. Should be in line with Pine Labs card format. Fixed Length: 3. Example: 010

string
required
length between 2 and 2
^[0-9]{2}$

POS Pin Capture Mode. It indicates the technique, maximum number or both of PIN characters that can be accepted by the POS terminal used to construct the PIN data. Refer to DE-26 details present in ‘Customer Interface Specification’ published by Pine Labs for values and their description. Should be in line with Pine Labs card format. Fixed Length: 2. Example: 00

string
required
length ≤ 999
^[a-zA-Z0-9]+$

Point of service Data. It indicates the conditions that exist at the point of service at the time of transaction. Refer to DE-61 details present in ‘Customer Interface Specification’ published by Pine Labs for values and their description. Should be in line with Pine Labs card format. Maximum Length: 999. Example: 000000000070035690210

string
required
^[0-9]+$

Current UTC timestamp in milliseconds. Numeric. AES key expiration criteria depends on input UTC timestamp. Applicable only for encrypted requests. Example: 1563877848815

string
^[0-9A-Fa-f]+$

Hex Encoded EMV Data. Should be in line with Pine Labs card format. Example: 5F2A020356820258008407A0000000041010950500000000009A031911159C01009F02060000000015009F10120110250000044000DAC100000000000000009F1A0208409F2608AFA989E946D5E7299F2701809F3303E0E8E89F34031E03009F360200039F37040C886796

string
^[0-9A-Fa-f]+$

ASN.1 DER encoded DES key block to be encrypted under Pine Labs RSA public key. DES key block to have: DES key, Initialization vector (IV). Use IV as 99999999999999999999999999999999. Example: Triple DES Key (Hex): E63BABBCD09713F7A126C4B5CB67D607D9EF83FD79751CEF. IV: 99999999999999999999999999999999. ASN.1 DER encoded DES key block: 302C0418E63BABBCD09713F7A126C4B5CB67D607D9EF83FD79751CEF04109999999999999999999999999999999999. Encrypt ASN.1 DER encoded DES key block and encode the output in HEX format. CIPHER TYPE to be used: 'RSA ECB OAEP With SHA-1 And MGF1 Padding'. Alphanumeric.

string
^[0-9A-Fa-f]+$

Old PIN Block created with below standard format ISO 9564-1 & ANSI X9.8 format 0. Encrypt this PIN Block under double length DES key (DES-112). CIPHER TYPE to be used: 'DESede ECB with No Padding'. Alphanumeric.

string
^[0-9A-Fa-f]+$

ASN.1 DER encoded DES key block to be encrypted under Pine Labs RSA public key. DES key block to have: DES key, Initialization vector (IV). Use IV as 99999999999999999999999999999999. Example: Double DES Key (Hex): E63BABBCD09713F7A126C4B5CB67D607. IV: 99999999999999999999999999999999. ASN.1 DER encoded DES key block: 30240410E63BABBCD09713F7A126C4B5CB67D60704109999999999999999999999999999999999. Encrypt ASN.1 DER encoded DES key block and encode the output in Hex format. CIPHER TYPE to be used: 'RSA ECB OAEP With SHA-1 And MGF1 Padding'. Alphanumeric.

Headers
string
^[a-zA-Z0-9-]{1,50}$

API Consumer must share Correlation-ID in HTTP header for API requests. The Correlation-ID must be unique for each request. It is recommended to generate a universally unique identifier (UUID) of length 32 or 36 that is compliant with RFC 4122. The maximum supported length is 50 alphanumeric characters. For example, ac97d177-9345-4934-8343-0f91a7a02836. If the Correlation-ID is not received in the incoming request, the system generates the UUID dynamically and assigns it to the request.

string

API Consumer can share Source in HTTP header for API requests. For the list of Source values, see the Pre-conditions for HTTP Header of REST API topic in the Pre-requisite for Rest API section.

Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json