API Reference

JIT Funding API

JIT (Just-In-time) funding is a method of automatically funding a prepaid wallet in real time during a transaction. With JIT funding, prepaid accounts do not need to carry a balance. Instead, the Pine Labs platform automatically moves funds from your funding source or credit line into the appropriate wallet at the time of transaction.

The JIT Funding API is used to,

  • assign preapproved credit limit for the loan account of the cardholder.
  • increase or decrease the credit limit of the loan account of the cardholder.
  • zeroize the credit limit of the loan account if the cardholder wants to close the loan account.

This API also supports transaction reversals. While raising the reversal request, you must ensure that the rrn parameter value passed is similar to the original transaction. Only full amount reversals are allowed. It is applicable for prepaid products issued on Pine Labs platform

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
HTTP CodeReason CodeDescriptionDetails
200OKThe server has successfully processed your request.
400INVALID_FIELD_VALUE'type' field value '' is invalid'type' field value must be one of ['TOPUP','DEBIT','TOPUP_REVERSAL','DEBIT_REVERSAL']
400INVALID_FIELD_VALUE'traceAuditNumber' field value '' must match '[0-9]*'
400INVALID_FIELD_VALUE'remarks' field value '' must match '[a-zA-Z0-9 ,&.'-]*'
400INVALID_FIELD_VALUE'currency' field value '' is invalid
400INVALID_FIELD_VALUE'amount' field value '' must be greater than or equal to 1 and less than or equal to 9999999999.99999
400INVALID_FIELD_VALUE'timestamp' field value '' must match 'YYYY-MM-DDThh:mm:ss[.sss]Z' or 'YYYY-MM-DDThh:mm:ss[.sss]±hh:mm'
400INVALID_FIELD_VALUE'originalTraceAuditNumber' field value '' must match '[0-9]*'
400INVALID_FIELD_VALUE'originalTransactionTimestamp' field value '' must match 'YYYY-MM-DDThh:mm:ss[.sss]Z' or 'YYYY-MM-DDThh:mm:ss[.sss]±hh:mm'
400INVALID_FIELD_VALUE'rrn' field value '' must match '[0-9]*'
400INVALID_FIELD_VALUE'X-MC-Source' field value '' is invalid
400INVALID_FIELD_VALUE'X-MC-Channel' field value '' is invalid
400INVALID_FIELD_VALUE'originalTraceAuditNumber' field value must be empty/blank or field must be absent in the request'originalTraceAuditNumber' field value must be blank or absent for TOPUP and DEBIT transactions.
400INVALID_FIELD_VALUE'originalTransactionTimestamp' field value must be empty/blank or field must be absent in the request'originalTransactionTimestamp' field value must be blank or absent for TOPUP and DEBIT transactions.
400INVALID_FIELD_VALUE'Card Number Alias' field value '' is invalid.Invalid Card Number Alias
400INVALID_FIELD_VALUE'Card Number Alias' field value '' is invalid.Card Number Alias should belong to Primary Card
400INVALID_FIELD_VALUE'Card Number Alias' field value '' is invalid.Credit Line is not created for this Card Number Alias
400INVALID_FIELD_VALUE'currency' field value '' is invalid.Transaction currency should be same as program currency.
400INVALID_FIELD_VALUE'amount' field value '' is invalid.Credit Line available balance is less than Requested Debit amount.
400INVALID_FIELD_VALUE'amount' field value '' is invalid.Full amount reversal allowed.
400INVALID_FIELD_VALUE'rrn' field value '' is invalid.Reference number should be same as original reference number.
400INVALID_FIELD_LENGTH'rrn' field value length must be 12 characters.
400INVALID_FIELD_LENGTH'traceAuditNumber' field value length must be 6 characters.
400INVALID_FIELD_LENGTH'currency' field value length must be 3 characters.
400INVALID_FIELD_LENGTH'originalTraceAuditNumber' field value length must be 6 characters.
400INVALID_FIELD_LENGTH'remarks' field value length must be less than equal to 100 characters.
400MISSING_REQUIRED_FIELDMissing Required Field 'type'.
400MISSING_REQUIRED_FIELDMissing Required Field 'rrn'
400MISSING_REQUIRED_FIELDMissing Required Field 'traceAuditNumber'.
400MISSING_REQUIRED_FIELDMissing Required Field 'currency'.
400MISSING_REQUIRED_FIELDMissing Required Field 'amount'.
400MISSING_REQUIRED_FIELDMissing Required Field 'timestamp'.
400MISSING_REQUIRED_FIELDMissing Required Field 'originalTraceAuditNumber'.'originalTraceAuditNumber' field value is mandatory for DEBIT_REVERSAL and TOPUP_REVERSAL transactions.
400MISSING_REQUIRED_FIELDMissing Required Field 'originalTransactionTimestamp'.'originalTransactionTimestamp' field value is mandatory for DEBIT_REVERSAL and TOPUP_REVERSAL transactions.
400RECORD_NOT_FOUNDRecord not found for given search criteria(s).Unable to Track the Original Transaction Details.
403AUTHORIZATION_ERRORUser is not authorized to access requested resource
409CONFLICTThe API request cannot be completed because the requested operation would conflict with an existing item/record.Reversal already processed for requested details.
409CONFLICTThe API request cannot be completed because the requested operation would conflict with an existing item/record.Duplicate Request
500SYSTEM_ERRORAn unexpected error has occurred with the service you have requested
Language
URL
Click Try It! to start a request and see the response here!