> For the complete documentation index, see [llms.txt](https://apidocs.juicefin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.juicefin.com/apis/administration/validate-inventory-location.md).

# Validate Inventory Location

## Validate Inventory Location

The Validate Inventory Location API allows checking whether the given retail pack or card is owned by the requester in the Praxell inventory.

## Input Parameters:

| Name              | Required | Definition                                                                                                                | Comments                        |
| ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| CardNumber        | C        | Format: Numeric, 16                                                                                                       | When selecting SingleCardNumber |
| FromCardNumber    | C        | Format: Numeric, 16                                                                                                       | When selecting RangeCardNumber  |
| FromRetailPackId  | C        | <p>Format: Pattern: 12-5-1-1.<br>1..12digits-1..5digits-1digit-1 digit<br>Description: Praxell Retail pack identifier</p> | When selecting RangeRetailPack  |
| InvValidationType | Y        | <p>Format options:<br>SingleCardNumber<br>SingleRetailPack<br>RangeRetailPack<br>RangeCardNumber</p>                      | In Card Number Request          |
| RetailPackId      | C        | <p>Format: Pattern: 12-5-1-1.<br>1..12digits-1..5digits-1digit-1 digit<br>Description: Praxell Retail pack identifier</p> |                                 |
| ToCardNumber      | C        | Format: Numeric, 16                                                                                                       | When selecting RangeCardNumber  |
| ToRetailPackId    | C        | <p>Format: Pattern: 12-5-1-1.<br>1..12digits-1..5digits-1digit-1 digit<br>Description: Praxell Retail pack identifier</p> | When selecting RangeRetailPack  |

## 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>4515260</UniqueRequestId>
    <ServiceName>ValidateInventoryLocation</ServiceName>
  </ServiceDetails>
  <Origin>
    <OriginType>ExtAPI</OriginType>
  </Origin>
  <ServiceParams>
    <CardNumber>1564560040266854</CardNumber>
    <InvValidationType>SingleCardNumber</InvValidationType>
  </ServiceParams>
</PraxellXMLRequest>
```

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

```json
<?xml version="1.0"?>
<PraxellXMLResponse>
  <ResponseDetails>
    <ServiceName>ValidateInventoryLocation</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>
```
