# Update Cardholder

## Update Cardholder

The Update Cardholder API produces updates of cardholder details.

## Input Parameters:

| Name                    | Required | Definition                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Comments |
| ----------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| AddressLine1            | Y        | <p>Format: Alphanumeric, 1-30<br>Can contains as well all special characters beside: <, ></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                |          |
| AddressLine2            | N        | <p>Format: Alphanumeric, 1-30<br>Can contains as well all special characters beside: <, ></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                |          |
| CardAnniversaryDate     | N        | Format: YYYY-MM-DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Future   |
| CardNumber              | Y        | Format: Numeric, 16                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |          |
| City                    | Y        | <p>Format: Alpha, 1-20<br>Can contains as well these special characters: /, -, space, comma, period, &</p>                                                                                                                                                                                                                                                                                                                                                                                                                                   |          |
| Country                 | Y        | <p>Format: ISO Country code. Two characters.<br>Description: Based on ISO 3166-1 alpha-2 list.<br><http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2></p>                                                                                                                                                                                                                                                                                                                                                                                      |          |
| DateOfBirth             | N        | <p>Format: yyyy-mm-dd<br>Description: Cardholder must be above 17 years old</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                              |          |
| DocExpirationDate       | C        | <p>Format: YYYY-MM-DD<br>Description: must be after DocIssueDate.<br>Conditional value required only when DocType is 'PASS' 'IDL' 'UDL'or 'MCN'</p>                                                                                                                                                                                                                                                                                                                                                                                          |          |
| DocId                   | N        | <p>Format: Alphanumeric, 3-16<br>Description: ID number of the government identification document used (defined in DocType)</p>                                                                                                                                                                                                                                                                                                                                                                                                              |          |
| DocIssueDate            | C        | <p>Format: YYYY-MM-DD<br>Description: must be before DocExpirationDate<br>Conditional value required only when DocType is 'PASS' or 'MCN'</p>                                                                                                                                                                                                                                                                                                                                                                                                |          |
| DocIssuer               | C        | <p>Format: Alphanumeric, 2<br>Description: Country/State code.<br>Conditional value required only when DocType is 'PASS' 'IDL' 'UDL'or 'MCN'</p>                                                                                                                                                                                                                                                                                                                                                                                             |          |
| DocType                 | N        | <p>Format options:<br>SSN<br>PASS<br>UDL<br>MCN<br>INMATE<br>Description: Closed list of values.Type of government identification document used: SSN- Social Security Number, PASS - Passport number, 'UDL' – US Drivers license number,'MCN' - Matricula consular ,INMATE.</p>                                                                                                                                                                                                                                                              |          |
| EarlyAccess             | N        | Format: Y/N                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |          |
| Email                   | N        | <p>Format: a-z (upper or lower), numbers, dash and underscore, 5-40<br>Description: Possible pattern: <x@x.x></p>                                                                                                                                                                                                                                                                                                                                                                                                                            |          |
| Fax                     | N        | <p>Format: Numeric, 6-10<br>Description: the fax number.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |          |
| FirstName               | Y        | <p>Format: Alpha, 2-50<br>Can contains as well these special characters: /, -, space, comma, period, &</p>                                                                                                                                                                                                                                                                                                                                                                                                                                   |          |
| IsReceiveSms            | N        | <p>Format options:<br>Enabled (the cardholder has requested to receive an SMS for transactions and therefore he get SMS's)<br>Disabled (the cardholder has requested to not receive an SMS for transactions and therefore he does not get SMS's)<br>Blank (the cardholder has not requested to receive an SMS for transactions and therefore he does not get SMS's)<br>Mail (the cardholder has requested to receive an mail for transactions and therefore he get mails)<br><br>Description:Defines if the cardholder gets an SMS/Mail.</p> |          |
| LastName                | Y        | <p>Format: Alpha, 2-50<br>Can contains as well these special characters: /, -, space, comma, period, &</p>                                                                                                                                                                                                                                                                                                                                                                                                                                   |          |
| MiddleInitial           | N        | <p>Format: Alpha,1<br>Description: Middle name char of the cardholder.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |          |
| MobilePhone             | Y        | <p>Format: Numeric, 6-10<br>Description: Mobile Phone number</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |          |
| Phone                   | N        | <p>Format: Numeric, 6-10<br>Description: Phone number</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |          |
| ShippingAddressLine1    | N        | <p>Format: Alphanumeric, 30<br>Can contains as well all special characters beside: <, ></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                  |          |
| ShippingAddressLine2    | N        | <p>Format: Alphanumeric, 30<br>Can contains as well all special characters beside: <, ></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                  |          |
| ShippingCity            | N        | <p>Format: Alpha, 1-20<br>Can contains as well these special characters: /, -, space, comma, period,</p>                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| ShippingState           | N        | Format: Alphanumeric, 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |          |
| ShippingZIP             | N        | Format: Numeric, 5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |          |
| State                   | Y        | Format: Alphanumeric, 2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |          |
| ShouldUpdateUserDefined | Y        | <p>Format: Char (Y or N)<br>Description:<br>If you want to update field : Y<br>If you don't want to update field : N</p>                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined1            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined2            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined3            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined4            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined5            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined6            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined7            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined8            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined9            | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined10           | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined11           | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined12           | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined13           | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined14           | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| UserDefined15           | N        | <p>Format:<br>Chars: a-zA-Z0-9 .,#$()/:?-%+\*&;@!\~=\_'<br>Size: 255</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |          |
| VerificationRequest     | Y        | <p>Format options:<br>UpdateAndVerify (allowed only when doc id type= SSN)<br>UpdateOnly<br>NoUpdateOnVerificationError (allowed only when doc id type = SSN)</p>                                                                                                                                                                                                                                                                                                                                                                            |          |
| Zip                     | Y        | Format: Numeric, 5                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |          |

## Output Parameters:

| Name                 | Definition                                                                                                                                                                                               | Failure Case | Success Case | Comments   |
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------ | ---------- |
| VerificationID       | Format: Alphanumeric, 50                                                                                                                                                                                 | Not returned | Returned     |            |
| VerificationStatus   | <p>Format options:<br>VerifiedSSN<br>VerifiedThirdParty<br>VerifiedDocumentary<br>VerifiedByIssuer<br>SSNVerificationRequired<br>DocumentaryVerificationRequired<br>OOWVerificationRequired<br>Blank</p> | Not returned | Returned     |            |
| VerificationAttempts | Format: Numeric, 2                                                                                                                                                                                       | Not returned | Returned     |            |
| QuestionSequence     | Format: Numeric, 1                                                                                                                                                                                       | Not returned | Returned     | Future Use |
| QuestionPrompt       | Format: Alphanumeric, 255                                                                                                                                                                                | Not returned | Returned     | Future Use |
| QuestionType         | Format: Alphanumeric, 255                                                                                                                                                                                | Not returned | Returned     | Future Use |
| AnswerOption         | Format: Alphanumeric, 255                                                                                                                                                                                | Not returned | Returned     | Future Use |
| OOWEligible          | Format: Y/N                                                                                                                                                                                              | Not returned | Returned     | Future Use |
| FreeTextErrors       | Format: Alphanumeric, 255                                                                                                                                                                                | Not returned | Returned     |            |
| CardHolderState      | <p>Format options:<br>V<br>V-PNS<br>RNV<br>NRNV</p>                                                                                                                                                      | Not returned | Returned     |            |

## XML Samples

### Input XML

```json
<?xml version="1.0" ?>
<PraxellXMLRequest>
    <AuthenticationDetails>
        <UserName>Eyal_PM_QA</UserName>
        <UserPassword>1q2w3e4r</UserPassword>
      <ClientSourceIP></ClientSourceIP> 
 </AuthenticationDetails>;
    <ServiceDetails>
        <ServiceName>UpdateCardholder</ServiceName>
        <UniqueRequestId>167565446597669</UniqueRequestId>
    </ServiceDetails>
    <Origin>
        <OriginType>ExtAPI</OriginType>
    </Origin>
    <ServiceParams>
        <CardNumber></CardNumber>
        <FirstName>dana</FirstName>
        <MiddleInitial>S</MiddleInitial>
        <LastName>dana</LastName>
        <AddressLine1>Questions</AddressLine1>
        <AddressLine2>lala</AddressLine2>
        <City>ACO</City>
        <State>AL</State>
        <Zip>12348</Zip>
        <Country>US</Country>
        <Phone>1234568</Phone>
        <Fax>1234568</Fax>
        <Email>sharon@gmail.com</Email>
        <IsReceiveSms>Enabled</IsReceiveSms>
        <MobilePhone>9729999994</MobilePhone>
        <DocType>SSN</DocType>
        <DocIssuer></DocIssuer>
        <DocId>123456789</DocId>
        <DateOfBirth>1944-01-20</DateOfBirth>  
        <ShippingAddressLine1></ShippingAddressLine1>
        <ShippingAddressLine2></ShippingAddressLine2>
        <ShippingCity></ShippingCity>
        <ShippingState></ShippingState>
        <ShippingZIP></ShippingZIP>
        <ShouldUpdateUserDefined>Y</ShouldUpdateUserDefined>
        <UserDefined1></UserDefined1>
        <UserDefined2></UserDefined2>
        <UserDefined3></UserDefined3>
        <UserDefined4></UserDefined4>
        <UserDefined5></UserDefined5>
        <UserDefined6></UserDefined6>
        <UserDefined7></UserDefined7>
        <UserDefined8></UserDefined8>
        <UserDefined9></UserDefined9>
        <UserDefined10></UserDefined10>
        <UserDefined11></UserDefined11>
        <UserDefined12></UserDefined12>
        <UserDefined13></UserDefined13>
        <UserDefined14></UserDefined14>
        <UserDefined15></UserDefined15>
        <VerificationRequest>UpdateAndVerify</VerificationRequest>
    </ServiceParams>
</PraxellXMLRequest>
```

```json
<?xml version="1.0" ?>
<PraxellXMLResponse>
    <ResponseDetails>
        <ServiceName>UpdateCardholder</ServiceName>
        <SessionId></SessionId>
        <StatusCode>0</StatusCode>
        <StatusName>StatusOK</StatusName>
        <StatusDescription>NA</StatusDescription>
        <ServiceDate>2007-05-27 06:17:54</ServiceDate>
        <ServiceId>64303207200728062</ServiceId>
    </ResponseDetails>
    <ResponseParams>
        <VerificationID></VerificationID>
        <VerificationStatus></VerificationStatus>
        <VerificationAttempts></VerificationAttempts>
        <OOW>
          <OOWSet>
            <QuestionSequence></QuestionSequence>
            <QuestionPrompt></QuestionPrompt>
            <QuestionType></QuestionType>
            <AnswerOptionSet>
                <AnswerOption></AnswerOption>
            </AnswerOptionSet>
           <OOWSet>
         </OOW>
        <OOWEligible></OOWEligible>
        <FreeTextErrors></FreeTextErrors>
        <CardHolderState></CardHolderState>
    </ResponseParams>
</PraxellXMLResponse>
```

```json
<?xml version="1.0"?>
<PraxellXMLResponse>
  <ResponseDetails>
    <ServiceName>UpdateCardholder</ServiceName>
    <SessionId>07071612200737105</SessionId>
    <StatusCode>70008</StatusCode>
    <StatusName>InvalidIssuer</StatusName>
    <StatusDescription>InvalidIssuer</StatusDescription>
    <ServiceDate>2021-10-01 12:37:50</ServiceDate>
    <ServiceId>07071612200737105</ServiceId>
  </ResponseDetails>
  <ResponseParams>
  </ResponseParams>
</PraxellXMLResponse>
```
