Get Gift Card DesignsWhen sending out email gift cards a gift card design must be specified. This operation retrieves all the available GlobalGiving gift card designs to select from. This is a secure request as indicated by the '/secure/' element in the URL path, therefore, an access token (authentication) is required. HTTP Method:GET Content Type:xml, json Accept Type:xml, json Path:https://api.globalgiving.org/api/secure/givingservice/giftcarddesigns Query String Parameters:&api_key described in the API Key section, required &api_token described in the Access Token section, required Query String Example:/api/secure/givingservice/giftcarddesigns?api_key=YOUR_API_KEY&api_token= SOME_API_TOKEN HTTP GET Request using cURL:
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "https://api.globalgiving.org/api/secure/givingservice/giftcarddesigns?api_key=YOUR_API_KEY&api_token=SOME_API_TOKEN"
XML Response:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<giftCardDesigns>
<giftCardDesign>
<active>true</active>
<addressRequired>false</addressRequired>
<amountRequired>true</amountRequired>
<cardType>giftcertificate</cardType>
<custom>false</custom>
<emailRequired>true</emailRequired>
<giftCertificate>true</giftCertificate>
<id>28</id>
<imageUrl>http://www.globalgiving.org/img/giftCards/ecard_green.gif</imageUrl>
<media>electronic</media>
<name>The Gift of Green</name>
<previewImageUrl>http://www.globalgiving.org/img/giftCards/ecard_green_preview.gif</previewImageUrl>
<quantityRequired>false</quantityRequired>
<sendToRequired>true</sendToRequired>
<thumbnailUrl>http://www.globalgiving.org/img/giftCards/ecard_green_preview.gif</thumbnailUrl>
</giftCardDesign>
.
.
</giftCardDesigns>
NOTE: The <giftCardDesign> elements are repeating. Get Gift Card Designs Structure
Element Definitions For Get Gift Card Designs Response
|

