v1

latestSwagger 2.0Apache 2.02026-07-141430111.3 KB
payment-gateway

Get Card type Information for Visa, Mastercard, and Discover

Gets Card type information for Visa, Mastercard, and Discover. Useful if you prohibit or allow certain activity based on card type. For example, you may not want to allow a subscription to be created using a prepaid card.

post/ardef

Request body

card_numberstring required

<strong>Format: </strong>Variable length, up to 19 N<br><strong>Description: </strong>Cardholder's card number.

merchant_idinteger required

<strong>Format: </strong>Variable length, up to 12 N<br><strong>Description: </strong>Unique identifier on the Qualpay system.

Example request

{
  "card_number": "4111111111111111"
}

Response

Success

funding_sourcestring

<strong>Format: </strong>Fixed length, 1 AN<br><strong>Description: </strong>Funding type for a card type request submitted.<ul><li> C - Credit</li><li> D - Debit</li><li>P - Prepaid</li></ul>

ind_comm_level2string

<strong>Format: </strong>Fixed length, 1 AN<br><strong>Description: </strong>This field will be set to Y for Level 2 purchasing cards.

ind_comm_level3string

<strong>Format: </strong>Fixed length, 1 AN<br><strong>Description: </strong>This field will be set to Y for Level 3 purchasing cards.

issuer_countrystring

<strong>Format: </strong>Fixed length, 2 AN<br><strong>Description: </strong>Issuer Country for a card type request submitted.

pg_idstring

<strong>Format: </strong>Fixed length, 32 AN<br><strong>Description: </strong>32-byte unique identifier generated by the payment gateway, returned in all valid responses.

rcodestring

<strong>Format: </strong>Fixed length, 3 AN<br><strong>Description: </strong>Response code from the payment gateway. "000" indicates success. Refer to <a href="/developer/api/reference#api-response-codes"target="_blank">Platform API Response Codes</a> for entire list of Payment Gateway Response Codes.

rmsgstring

<strong>Format: </strong>Variable length<br><strong>Description: </strong>Response text from the payment gateway.

Example response

{
  "funding_source": "C",
  "ind_comm_level2": "Y",
  "ind_comm_level3": "Y",
  "issuer_country": "US",
  "pg_id": "d24ac6189b0b11e6966ca68d5edbef41",
  "rcode": "000",
  "rmsg": "Approved T37500"
}
All 14 operations