Developers / API / Card Inquiry
Card Inquiry

Card Inquiry

Here you can see details of an external card. If cardId is not specified the entire list of external cards is returned

Field Name Len Type Req Ver Comments
method N/A Alp-Num Yes 1.1 cardInquiry
fromEmail N/A Alp-Num Yes 1.1 The email associated with the inquired account
cardId N/A Num -- 1.1 The ID of the External Card. If no card ID is provided the full list of external cards is returned (optional)
key N/A Alp-Num Yes 1.1 MD5(sharedSecret + cardId)

This request is responded by a message with the following content:

Field Name Len Type Mdt Ver Comments
ResponseCode N/A Alp-Num Yes 1.1 The response code; 00 = Success;
ResponseDescription N/A Alp-Num Yes 1.1 Human readable response
Fee N/A Real Yes 1.1 Fee for the current transaction
Cards/ Card/ CardId N/A Num Yes 1.1 The ID of the External Card. If no card ID is provided the full list of external cards is returned (optional) The card ID
Cards/ Card/ CardNumber 4 Num Yes 1.1 The last 4 numbers of the card
Cards/ Card/ CardType N/A Alp Yes 1.1 The card type (VISA, MasterCard, etc.)
Cards/ Card/ CardStatusId 1 Num Yes 1.1 1 = primary
2 = secondary
Cards/ Card/ Confirmed 1 Num Yes 1.1 0 = not confirmed
1 = confirmed

Request Sample:

https://www.paxum.com/payment/api/paymentAPI.php

POST

method=cardInquiry&fromEmail=payee%40tdomain.com&cardId=&key=ecb2111f1b36b39e31f30115e00d13f4f

Response Sample

<?xml version="1.0"?>
<Response>
	<Method>cardInquiry</Method>
	<ResponseCode>00</ResponseCode>
	<ResponseDescription>Approved or Completed Successfully</ResponseDescription >
	<Fee>0.00</Fee>
	<CreditCards>
		<CreditCard>
			<CreditCardId>123456</CreditCardId>
			<CreditCardNumber>1234</CreditCardNumber>
			<CreditCardType>visa</CreditCardType>
			<CreditCardStatusId>1</CreditCardStatusId>
			<Confirmation>0</Confirmation>
		</CreditCard>
	</CreditCards>
</Response>

Working Sample(s):

cardInquiry.php