Radial Integration | 2016
The VaultUpdateStoredValue API call updates the selected/unselected status of an existing Gift Card Vault tender.
			A vault can have multiple active gift card tenders which are all selected at the same time.
| Action | URI Template | URI Example | Non-URI Request | Response | 
|---|---|---|---|---|
| POST | /v1.0/stores/[StoreId]/payments/ vault/storedvalue/update.[format] | /v1.0/stores/TMSNA/payments/ vault/storedvalue/update.xml | XML | 200 + XML Response containing the response status of updating an existing gift card tender vault. | 
The request is a VaultUpdateStoredValueRequest message.
<?xml version="1.0" encoding="UTF-8"?>
<VaultUpdateStoredValueRequest xmlns="http://api.gsicommerce.com/schema/checkout/1.0"
      sessionId="12345">
  <VaultId>21109</VaultId>
  <VaultTenderId>123456</VaultTenderId>
  <Selected>true</Selected>
  <Notes>giftcard</Notes>
</VaultUpdateStoredValueRequest>| Element | Required | Description | Type | Restriction | 
|---|---|---|---|---|
| VaultId | Yes | Unique identifier for the vault. | String | 1 to 38 numeric characters | 
| VaultTenderId | Yes | Unique identifier for the vault tender. | String | 1 to 40 characters | 
| Selected | Yes | Indicates whether the vault tender is selected or not selected. | boolean | 1 to 40 characters | 
| Notes | No | Memo or alias associated with the specific tender; can be changed by the customer. | String | Max 512 characters | 
| sessionId | Yes | Identifies a request message; used to protect against duplicate request processing. | String | Up to 40 characters | 
The response is a VaultUpdateStoredValueReply message.
<?xml version="1.0" encoding="UTF-8"?>
<VaultUpdateStoredValueReply xmlns="http://api.gsicommerce.com/schema/checkout/1.0">
  <VaultId>123456</VaultId>
  <VaultTender>
        <VaultTenderId>654321</VaultTenderId>
        <Active>True</Active>
        <TenderClass>StoredValue</TenderClass>
        <TenderType>GS</TenderType>
        <TenderDescription>gift certificate</TenderDescription>
        <MaskedPan>811111xxxx111111</MaskedPan>
        <Selected>True</Selected>
    </VaultTender>
</VaultUpdateStoredValueReply>| Element | Required | Description | Type | Restriction | 
|---|---|---|---|---|
| VaultId | Yes | Vault identifier echoed back from the request message | String | 1 to 38 numeric characters | 
| VaultTenderId | Yes | Vault tender identifier of the gift card updated | String | 1 to 40 characters | 
| Active | Yes | The status of the vault tender: true if active; false if inactive. | Boolean | true or false | 
| TenderClass | Yes | The tender class value of the gift card. | Enum | PrivateLabelCreditCard, CreditCard, StoredValue, PayPal | 
| TenderType | Yes | The tender type value of the gift card. | String | Min 2 and max 4 characters | 
| TenderTypeDescription | Yes | Identifies the actual tender to the user. | String | Max 70 characters | 
| MaskedPan | Yes | Represents the PaymentAccountUniqueId in a masked format. | String | Max 22 characters | 
| Selected | Yes | Indicates whether a given vault tender is selected. A selected tender would be used for payments. | Boolean | true or false | 
Copyright © 2017 Radial. All rights reserved.