POSTFetch Bin Details API
Use Case
This API is used to check if the BIN entered by the user is a valid card or token BIN with which Paytm can process a payment. Further, the API can serve the following purpose:-
- To get attributes such as card scheme, card type and issuing bank of the card or token BIN
- To get attributes such as card country code, country name, currency name and currency symbol for international card or token BIN
- To check if subscription payment is available on the card or token BIN
- To check if EMI payment is available on the card or token BIN
- To check Native-OTP is eligibile for on the card or token BIN
Note: The API should be called with the first 9 digits for card or token number for accurate and updated response.
Query Params
ATTRIBUTE | DESCRIPTION |
---|---|
mid string |
Paytm provides MID as a unique identifier to each merchant. For your staging MID, click here. You get the production MID post the account activation. Example: INTEGR7769XXXXXX9383 |
orderId string |
This is the unique identifier for order and should have the same value as used in orderId of Initiate Transaction API or Initiate Subscription API. Note: It becomes mandatory in case tokenType value is sent as CHECKSUM or TXN_TOKEN in this request. Example: OREDRID_98765 |
referenceId string |
This is the unique reference id and should have the same value as used in Access Token API. Note: It becomes mandatory in case tokenType value is sent as ACCESS in the request. |
Request Attributes
Head
Attribute | Description |
---|---|
version string optional | Version of the API. Example: v1 |
requestTimestamp string optional | EPOCH timestamp of the time at which request is being sent. |
channelId string mandatory | The parameter value identifies the Channel for which API call is initiated. Possible values:
WEB
,
For websites, the value to be passed should be "WEB"
WAP
For Mobile websites/App, the value to be passed should be "WAP"
|
tokenType string mandatory | Authorization method for this request. Possible values:
ACCESS
,
To be used in case authentication is done using access token.
CHECKSUM
,
To be used in case authentication done using Checksum.
TXN_TOKEN
To be used in case authentication done using transaction token.
|
token string mandatory | Authorization string corresponding to the tokenType used. Example: 739816707d7444XXXXXXXX6cb4264d0a1590145379323 |
Body
Attribute | Description |
---|---|
bin string mandatory | The first 9 digits of the card number or card token. |
mid string conditional | Paytm provides MID as a unique identifier to each merchant. For your staging MID, click here. You get the production MID post the account activation. Example: INTEGR7769XXXXXX9383 Note: It becomes mandatory in case tokenType value is send as ACCESS in the request. |
paymentMode string optional | The payment mode used by customer for transaction. Possible values:
CREDIT_CARD
,
For Credit Card
DEBIT_CARD
For Debit Card
|
emiType string optional | The emi type used by customer for transaction. Possible values:
CREDIT_CARD
,
For Credit Card
DEBIT_CARD
For Debit Card
|
channelCode string optional | Bank Code for which the EMI details are required Possible Values: ICICI, HDFC |
txnType string optional | This parameter is used to identify the payment flow. Possible values:
NONE
,
By Default
ADDANDPAY
,
For Add and Pay
HYBRID
For Hybrid
|
isEMIDetail string optional | Returned in response, if the InitiateTxn request had requestType PAYMENT, NATIVE_SUBSCRIPTION |
cardPreAuthType string optional | The type of Pre-Auth flow - Standard/Delayed that is to be used for the transaction. Example : STANDARD_AUTH, DELAYED_AUTH STANDARD_AUTH : This pre-auth flow involves blocking of amount in the customer’s account to be captured/released at a later stage. DELAYED_AUTH : This flow involves no blocking of amount but only the authorization for this transaction is done at a later stage. Note: This parameter is applicable for only Pre-auth flow applicability needs to be checked for the requested BIN. |
requestType string conditional | This parameter is used to identify the transaction flow. |
nativeOTPDetailRequired string optional | This parameter is used to identify whether the bin supports Native OTP flow or not. Possible Values: true |
Response Attributes
Head
Attribute | Description |
---|---|
version string | Version of the API passed in the request. |
responseTimestamp string | EPOCH timestamp of the time at which response is being sent. |
Body
Attribute | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resultInfo object | This parameter gives the information about the result of the API response | ||||||||||||||||||||||||||||||||||||||||||||||||||
ResultInfo +
| |||||||||||||||||||||||||||||||||||||||||||||||||||
binDetail object | BIN details like issuing bank name and card scheme (Visa/Master..) are provided here | ||||||||||||||||||||||||||||||||||||||||||||||||||
BinDetail +
| |||||||||||||||||||||||||||||||||||||||||||||||||||
hasLowSuccessRate object | Identifier to depict the low success rate on the payment mode/instrument in the past 15 minutes. If the success rate is low, the user should be communicated the same on the cashier page and motivated to choose a different payment instrument. | ||||||||||||||||||||||||||||||||||||||||||||||||||
HasLowSuccessRate +
| |||||||||||||||||||||||||||||||||||||||||||||||||||
IsEmiAvailable string | Depicts, if the EMI is available on the selected BIN or not Possible Value: True, False | ||||||||||||||||||||||||||||||||||||||||||||||||||
supportedCardSubTypes array | Provides an identifier for various types of cards. Depending on your agreement, you can be charged differently for a different card. Example: CORPORATE_CARD which Indicates if the card used is a corporate card. Typically a merchant is charged differently for a prepaid card compared to a debit card. | ||||||||||||||||||||||||||||||||||||||||||||||||||
authModes array | Auth mode available on the BIN Possible values:
otp
,
For Mobile OTP
atm
For atm pin
| ||||||||||||||||||||||||||||||||||||||||||||||||||
iconUrl string | Icon URL of issuing bank of saved card | ||||||||||||||||||||||||||||||||||||||||||||||||||
errorMessage string | Captures the error encountered | ||||||||||||||||||||||||||||||||||||||||||||||||||
isSubscriptionAvailable boolean | Depicts if subscription payments are available on this BIN or not. In case the value is true, then subscription payments are supported. Note: If TXN_TOKEN is used, It must be the same value as found in txnToken of Initiate Subscription API response.
| ||||||||||||||||||||||||||||||||||||||||||||||||||
pcf object | Post convenience fees if applicable | ||||||||||||||||||||||||||||||||||||||||||||||||||
PCF +
| |||||||||||||||||||||||||||||||||||||||||||||||||||
extraParamsMap object | Map for any additional data that is required to be provided in the response. | ||||||||||||||||||||||||||||||||||||||||||||||||||
isHybridDisabled boolean | Specifies whether the Hybrid paymode is disabled on this card or not | ||||||||||||||||||||||||||||||||||||||||||||||||||
prepaidCard string | Indicates, if the card used is a prepaid card or not. Typically a merchant is charged differently for a prepaid card compared to a debit card. Possible Value: True, False | ||||||||||||||||||||||||||||||||||||||||||||||||||
prepaidCardMaxAmount string | Maximum amount of payment allowed on that prepaid card. Prepaid cards do not support payments beyond a threshold set by the bank. This is INR 1.0 Lakh. | ||||||||||||||||||||||||||||||||||||||||||||||||||
preAuthDetails object | The pre-auth level details for the selected BIN and flow type. | ||||||||||||||||||||||||||||||||||||||||||||||||||
Pre-Auth Details +
| |||||||||||||||||||||||||||||||||||||||||||||||||||
nativeOtpEligible string | This parameter indicates if the Native OTP support is available on the requested BIN or not. Possible Value: True, False |
Response Codes & Messages
resultCode | resultStatus | resultMsg |
---|---|---|
0000 | S | Success |
200 | F | successful operation |
1003 | F | Bin number is not valid |
1006 | F | Session Expired Exception |
2011 | F | Payment not allowed for your card,Please try again using other card |
2013 | F | Mid in the query PARAM doesn’t match with the Mid send in the request |
2014 | F | OrderId in the query param doesn’t match with the OrderId send in the request |
00000900 | U | System error |
curl -X POST 'https://securestage.paytmpayments.com/fetchBinDetail?mid={mid}&orderId=ORDERRID_98765' \
--header 'Content-Type: application/json' \
--data '{"body":{"bin":"411111"},"head":{"tokenType":"TXN_TOKEN","channelId": "WEB","token":"f0bed899539742309eebd8XXXX7edcf61588842333227"}}'