Card Enquiry

API: Ws_Enquiry

This web service provides the details of a card, such as: Token, Expiry Date, Status and Cardholder name. You can use his service to quickly determine the validity of a card. The Card Enquiry service returns useful information such as the status, balance and group membership details of a card.

This web service returns details of both live and archived cards. If you only want to return live cards or all cards associated with a customer, Thredd recommend you use Ws_Customer_Enquiry. See Customer Enquiry.

The full 16 Digit PAN can be supplied for customers who are PCI DSS compliant.

Record Description

Tag

Type

Minimum Length

Maximum Length

Description

Request

Response

<WSID>

N

1

19

Web service ID. Must be unique for every web service request sent. For details, see the FAQs.Tip: You could use a number based on the current date and time, as long as it is unique (e.g., 20201217145006).

Mandatory

Mandatory

<IssCode>

AN

1

4

Thredd Issuer (Program Manager) Code. Assigned by Thredd.

Mandatory

Mandatory

<TxnCode>

AN

1

2

The Transaction Code. See Transaction Codes. Default value is 9.

Mandatory

Mandatory

<AuthType>

AN

1

1

Parameter to specify how the card is authenticated. See Authentication Methods.

Mandatory

Omit

<ClientCode>

AN

1

64

User ID of the customer using the service. Only applicable to systems using member logins. Returned in the response if present in the request. Note: Legacy field. Not used.

Conditional

Conditional

<PAN>

AN

14

19

Card Number. Unique card identifier. Mandatory in request if <track2> and <PublicToken> are not present.

Optional

Omit

<AccNo>

AN

1

28

Account number of the card. Mandatory if neither <PublicToken> nor <PAN> are provided. Returned in the response if present in the request.

Conditional

Conditional

<PublicToken>

AN

1

9

The card’s public token, Mandatory in request if <PAN> and <accno> are not present. Mandatory in the response.

Conditional

Mandatory

<CurCode>

AN

3

3

3-letter ISO currency code for the currency (e.g. EUR).

Optional

Mandatory

<LocDate>

YYYY-MM-DD

10

10

The local current date in year-month-date format.

Mandatory

Mandatory

<LocTime>

HHMMSS

6

6

The local current time, in hour-minute-second format.

Mandatory

Mandatory

<ItemSrc>

N

1

5

Source field to define alternate fees. Legacy field for information purposes only; see Item Source Types. Suggest using 0.

Mandatory

Omit

<LastName>

AN

1

20

Cardholder's last name for authenticating the cardholder if the value of <AuthType> is ‘6’.

Optional

Omit

<DOB>

YYYY-MM-DD

10

10

Date of Birth. Mandatory if value of <AuthType> is ‘2’ or ‘6’.

Conditional

Omit

<CVV>

AN

3

3

Card Verification ValueClosed The Card Verification Value (CVV) on a credit card or debit card is a 3 digit number on VISA, MasterCard and Discover branded credit and debit cards. Cardholder's are typically required to enter the CVV during any online or cardholder not present transactions. CVV numbers are also known as CSC numbers (Card Security Code), as well as CVV2 numbers, which are the same as CVV numbers, except that they have been generated by a 2nd generation process that makes them harder to guess., the 3-digit code printed on the back of the card. Mandatory if the value of <AuthType> is ‘3’.

Conditional

Omit

<AccCode>

AN

0

6

Access code or passcode. If provided, must be 6 digits, leading zeroes are acceptable. Leave empty if not required. Mandatory if the value of <AuthType> is ‘4’.

Conditional

Omit

<SysDate>

YYYY-MM-DD

10

10

The system processing date.

Omit

Mandatory

<ActionCode>

AN

3

3

The action code for the response. See Action Codes.

Omit

Mandatory

<StartDate>

AN

5

5

Start date printed on the card in the format MM/YY.

Omit

 

<EndDate>

AN

5

5

Physical end date printed on the card in the format MM/YY.

Omit

 

<ExpDate>

YYYY-MM-DD

10

10

Expiry date of the card in YYYY-MM-DD format.

Omit

Mandatory

<StatCode>

AN

2

2

The status code of the card. See Status Codes.

Omit

Mandatory

<AvlBal>

D

1

20

The current balance on the card account. This includes all financial transactions and outstanding authorisations. The balance amount can include up to four decimal places, depending on the currency exponent (e.g., 10.99 for EUR which has a currency exponent of 2). See Currency Codes.

Omit

Mandatory

<BlkAmt>

D

1

20

Amount of funds blocked on the card account as a result of all outstanding authorisations. The balance amount can include up to four decimal places, depending on the currency exponent (e.g., 10.99 for EUR which has a currency exponent of 2). See Currency Codes.

Omit

Mandatory

<EmbossName>

AN

1

51

Name embossed on the card.

Omit

Mandatory

<IsLive>

N

1

1

Specifies whether the card is active or not. 1 or True = Active; 0 or False = Not Active.

Omit

Mandatory

<Scheme>

AN

1

50

The card’s Thredd schemeClosed The name of the high-level product type set up in Thredd, usually at a BIN level..

Omit

Mandatory

<Product>

AN

1

50

The name you give to your Thredd card product. This is stored in Smart Client.

Omit

Mandatory

<MaskedPAN>

AN

14

19

Card number displayed as masked (e.g., 675926******1234). Note. The full PAN can be returned if you are PCI DSS compliant. Contact your Implementation Manager.

Omit

Mandatory

<LimitGroup>

AN

1

10

Group code of the Limit GroupClosed Velocity limit group which restricts the frequency and/or amount at which the card can be loaded or unloaded. You can view your current Limit Groups in Smart Client..

Omit

Mandatory

<MCCGroup>

AN

1

10

Group code of the MCC GroupClosed Merchant Category Code (MCC) Group. The MCC is a four-digit number used by the Card Schemes (payment networks) to define the trading category of the merchant..

Omit

Mandatory

<PERMSGroup>

AN

1

10

Group code of the Usage GroupClosed Group that controls where a card can be used. For example: POS or ATM..

Omit

Mandatory

<FeeGroup>

AN

1

10

Group code of the Fee GroupClosed Group which controls the card transaction authorisation fees..

Omit

Mandatory

<SchedFeeGroup>

AN

1

10

Group code of the Scheduled Fee GroupClosed Controls whether a card is charged a recurring fee, such as a monthly platform fee..

Omit

Mandatory

<WSFeeGroup>

AN

1

10

Group code of the Web Service Fee GroupClosed Controls the fees charges for web service usage. Different web services can have different fees associated with them..

Omit

Mandatory

<LinkageGroup>

AN

1

10

Group code of the Card Linkage GroupClosed The Linkage Group set up in Smart Client controls various parameters related to linked cards; for details, check with your Implementation Manager..

Omit

Mandatory

<AuthCalendarGroup>

AN

1

10

Group code of the Auth Calendar GroupClosed Controls the dates and times when authorisations on a card are allowed. You can use this option to control when the card can be used, for example, prevent usage on weekends or out of hours..

Omit

Mandatory

<FXGroup>

AN

1

10

Group code of the FX GroupClosed Controls the rates for FX currency conversions if the purchase currency is different from the card's currency..

Omit

Mandatory

<PrimaryToken>

AN

1

9

The primary card’s public token.

Omit

Mandatory

<BlackList>

AN

1

10

Group code of the card acceptor Deny list. See Card Acceptor Deny list.

Omit

Mandatory

<WhiteList>

AN

1

10

Group code of the card acceptor Allow list. See Card Acceptor Allow list.

Omit

Mandatory

<PaymentTokenUsageGroup>

AN

1

50

The unique 3-digit numeric code assigned to the payment token usage group at time of creation - plus a description of the payment token usage group. For example: “123-Company XYZ Full VDEP”. For details, check with your Implementation Manager.

Omit

Mandatory

<CVV2_RemainingTries>

AN

1

2

The number of online CVV2 tries remaining.

Omit

Mandatory

<PIN_RemainingTries>

AN

1

2

The number of online PIN tries remaining.

Omit

Mandatory

<OOBAppURL>

AN

1

2048

Out Of Band app URL used in a 3D Secure authentication session. The Card Scheme (e.g., Mastercard) requires issuers using Out of Band/Biometric authentication to support the automatic redirection of cardholders from the merchant app to the authenticator app. OOBAppURL is the URL of this authenticator app.

Omit

Optional

Request

Copy
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hyp="http://www.globalprocessing.ae/HyperionWeb">
   <soapenv:Header>
      <hyp:AuthSoapHeader>
         <hyp:strUserName>******</hyp:strUserName>
         <hyp:strPassword>******</hyp:strPassword>
      </hyp:AuthSoapHeader>
   </soapenv:Header>
   <soapenv:Body>
      <hyp:Ws_Enquiry>
         <hyp:WSID>2021123456789</hyp:WSID>
         <hyp:IssCode>PMT</hyp:IssCode>
         <hyp:TxnCode>9</hyp:TxnCode>
         <hyp:AuthType>1</hyp:AuthType>
         <hyp:ClientCode></hyp:ClientCode>
         <hyp:PAN></hyp:PAN>
         <hyp:AccNo></hyp:AccNo>
         <hyp:PublicToken>123456789</hyp:PublicToken>
         <hyp:CurCode></hyp:CurCode>
         <hyp:LocDate>2013-01-01</hyp:LocDate>
         <hyp:LocTime>120000</hyp:LocTime>
         <hyp:ItemSrc>2</hyp:ItemSrc>
         <hyp:DOB></hyp:DOB>
         <hyp:CVV></hyp:CVV>
         <hyp:AccCode></hyp:AccCode>
         <hyp:LastName></hyp:LastName>         
      </hyp:Ws_Enquiry>
   </soapenv:Body>
</soapenv:Envelope>

Response

Copy
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <soap:Body>
  <Ws_EnquiryResponse xmlns="http://www.globalprocessing.ae/HyperionWeb">
   <Ws_EnquiryResult>
     <WSID>2021123456789</WSID>
     <IssCode>PMT</IssCode>
     <TxnCode>9</TxnCode>
     <PublicToken>123456789</PublicToken>
     <LocDate>2013-01-01</LocDate>
     <LocTime>120000</LocTime>
     <StartDate>10/12</StartDate>
     <EndDate>03/15</EndDate> 
     <ExpDate>2015-03-31</ExpDate>
     <StatCode>00</StatCode>
     <EmbossName>GIFT CARD</EmbossName>
     <AvlBal>17</AvlBal>
     <BlkAmt>1</BlkAmt>
     <CurCode>GBP</CurCode>
     <ClientCode></ClientCode>
     <SysDate>2013-01-01</SysDate>
     <ActionCode>000</ActionCode>
     <IsLive>true</IsLive>
     <Scheme>Giftcard</Scheme>
     <Product>Gift card brand A</Product>
     <MaskedPAN>987654******0123</MaskedPAN>
     <LimitGroup>PMT-VL-002</LimitGroup>
     <MCCGroup></MCCGroup>
     <PERMSGroup>PMT-CU-002</PERMSGroup>
     <FeeGroup></FeeGroup>
     <AuthCalendarGroup></AuthCalendarGroup>
     <FXGroup></FXGroup>
     <PrimaryToken>9876543212345678</PrimaryToken>
     <BlackList>BL-01</BlackList>
     <WhiteList></WhiteList>
     <PaymentTokenUsageGroup></PaymentTokenUsageGroup>
     <CVV2_RemainingTries>5</CVV2_RemainingTries>
     <PIN_RemainingTries>3</PIN_RemainingTries>
     <OOBAppURL>https://login.app.bank1.com/</OOBAppURL>
   </Ws_EnquiryResult>
  </Ws_EnquiryResponse>
 </soap:Body>
</soap:Envelope>