TOP

UpdateGiftCard()

Part Of: Gift Card Webservice 3.0

WSDL:

https://webservices.vin65.com/V300/GiftCardService.cfc?wsdl

Australian URL:

https://webservices.aus.vin65.com/V300/GiftCardService.cfc?wsdl

Description:

Use the UpdateGiftCard() function to update parameters of the gift card.  (Please note you can not adjust the CurrentBalance or Initial Amount through this function - adjust the CurrentBalance by Adding a GiftCard Transaction. Required fields are indicated by a '*'

Parameters:

Attribute Data Type Default Description
WebsiteID UUID    
GiftCardID* UUID   UUID of the Vin65 Gift Card
CardNumber Integer    
Code* String 50    
Title* String 100    
InitialAmount Numeric   Controlled by Vin65 System
CurrentBalance Numeric   Controlled by Vin65 System 
Notes String    
ExpiryDate Date    
IsActive* Boolean    
DateAdded DateTime   Controlled by Vin65 System
DateModified DateTime   Controlled by Vin65 System

Sample Request:

<soap:Envelope xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema">
<soap:Body>
  <UpdateGiftCard>
    <Request>
      <Security>
        <Username>//Your Username//</Username>
        <Password>//Your Password//</Password>
      </Security>
      <GiftCard>
        <WebsiteID>02FC83E3-5EB4-4AA7-A64A-9710BFD9A12A</WebsiteID>
        <GiftCardID>acd3e3cf-1cc4-81ae-7 514-d559e0de28aa</GiftCardID>
        <CardNumber>1066</CardNumber>
        <Code>6TABEHSZZQUSANPX</Code>
        <Title>Sample Gift Card Title</Title>
        <Notes>Sample Gift Card Notes</Notes>
        <IsActive>true</IsActive>
      </GiftCard>
    </Request>
  </UpdateGiftCard>
</soap:Body>
</soap:Envelope>  

Sample Response:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="https://schemas.xmlsoap.org/soap/envelo pe/" xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
  <UpdateGiftCardResponse>
    <UpdateGiftCardReturn>
      <Errors></Errors>
      <IsSuccessful>true</IsSuccessful>
      <RecordCount>1</RecordCount>
    </UpdateGiftCardReturn>
  </UpdateGiftCardResponse>
</soapenv:Body>
</soapenv:Envelope> 

Page Top