# Validate Product Type

## Validate Product Type

The Validate Product Type API checks that the requesting user parent organization can work with the requested product type.

## Input Parameters:

| Name            | Required | Definition                                                                                                                                                                                                                                                                                                                                                                                                                                           | Comments |
| --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| CardNumber      | Y        | Format: Numeric, 16                                                                                                                                                                                                                                                                                                                                                                                                                                  |          |
| ProductTypeName | Y        | <p>Format: Alphanumeric, 1-120<br>Description: Each sub program in Praxell consists of one or more product types.<br>A product type is a set of attributes that are applied to the cards that belong to this product type.<br>The <a href="https://github.com/chetanmadaan/Juice-Financial-Docs/blob/main/APIS/Administration/javascript:;/README.md">ProductTypeName</a> field is the name of the product used when creating and issuing cards.</p> |          |

## Output Parameters:

## XML Samples

### Input XML

```json
<?xml version="1.0"?>
<PraxellXMLRequest>
  <AuthenticationDetails>
    <UserName>ZZ_QA_Test1_FBZ</UserName>
    <UserPassword>1q2w3e4r</UserPassword>
    <ClientSourceIP></ClientSourceIP> 
 </AuthenticationDetails>;
  <ServiceDetails>
    <UniqueRequestId>947652</UniqueRequestId>
    <ServiceName>ValidateProductType</ServiceName>
  </ServiceDetails>
  <Origin>
    <OriginType>ExtAPI</OriginType>
  </Origin>
  <ServiceParams>
    <CardNumber></CardNumber>
    <ProductTypeName></ProductTypeName>
  </ServiceParams>
</PraxellXMLRequest>
```

```json
 <PraxellXMLResponse> 
<ResponseDetails>
  <ServiceName>ValidateProductType</ServiceName>
  <SessionId>29838011200801030</SessionId>
  <StatusCode>0</StatusCode>
  <StatusName>StatusOK</StatusName>
  <StatusDescription>NA</StatusDescription>
  <ServiceDate>2008-03-11 11:01:02</ServiceDate>
  <ServiceId>29838011200801030</ServiceId>
</ResponseDetails>
<ResponseParams />
</PraxellXMLResponse>
```

```json
<?xml version="1.0"?>
<PraxellXMLResponse>
  <ResponseDetails>
    <ServiceName>ValidateProductType</ServiceName>
    <SessionId>07071612200737105</SessionId>
    <StatusCode>70029</StatusCode>
    <StatusName>Data not found (cardholder not found)</StatusName>
    <StatusDescription>Data not found (cardholder not found)</StatusDescription>
    <ServiceDate>2021-10-01 12:37:50</ServiceDate>
    <ServiceId>07071612200737105</ServiceId>
  </ResponseDetails>
  <ResponseParams>
  </ResponseParams>
</PraxellXMLResponse>
```
