WEBActivityGetPurchasedDownoadableProductsByCustomer
| Initial Build | n/a |
| xWeb | Web Method |
| Response Type | XML node |
The WEBActivityGetPurchasedDownoadableProductsByCustomer web method returns a list of any Downloadable Products purchased by specified customer.
This method returns only active, non-expired downloadable products for non-cancelled, non-returned invoices.
Parameters
CustomerKey (guid). The Customer Key.
Response
XmlNode
Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>**********************</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBActivityGetPurchasedDownoadableProductsByCustomer>
<ns:CustomerKey>87bcff5f-273f-4df2-b700-2502dc7ffd73</ns:CustomerKey>
</ns:WEBActivityGetPurchasedDownoadableProductsByCustomer>
</soapenv:Body>
</soapenv:Envelope>
Sample Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>8487a60a-b919-4dab-8a4a-92aeae0ad2af</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBActivityGetPurchasedDownoadableProductsByCustomerResponse xmlns="http://www.avectra.com/2005/">
<WEBActivityGetPurchasedDownoadableProductsByCustomerResult>
<Results recordReturn="2">
<Result>
<ivd_key>83a0a063-862d-4ee9-8e51-3ab9d386d7f3</ivd_key>
<inv_code>68735</inv_code>
<ivd_add_date>10/24/2011 11:46:16 AM</ivd_add_date>
<prd_code>DLD_DL</prd_code>
<prd_name>DLD Download</prd_name>
<ivd_price>10.00</ivd_price>
<prd_download_url>teleseminar-2010-11-11-001.mp3</prd_download_url>
<daysleft>351</daysleft>
</Result>
<Result>
<ivd_key>5b73202a-0016-405a-825f-6c734a1b0b05</ivd_key>
<inv_code>68735</inv_code>
<ivd_add_date>10/24/2011 11:46:16 AM</ivd_add_date>
<prd_code>DLD_DL</prd_code>
<prd_name>DLD Download</prd_name>
<ivd_price>5.00</ivd_price>
<prd_download_url>teleseminar-2010-11-11-001.mp3</prd_download_url>
<daysleft>351</daysleft>
</Result>
</Results>
</WEBActivityGetPurchasedDownoadableProductsByCustomerResult>
</WEBActivityGetPurchasedDownoadableProductsByCustomerResponse>
</soap:Body>
</soap:Envelope>
JSON Method
Get a list of downloadable products for the customer.
-
Links will be relative to the base eWeb URL.
-
Note: Yes. This is spelled wrong. That is how it is spelled in the xWeb API.
GET /xweb/JSON/WEBActivityGetPurchasedDownoadableProductsByCustomer?CustomerKey=9F3FEA75-3F8D-4BF3-83E1-64ADC3AF3113
POST /xweb/JSON/WEBActivityGetPurchasedDownoadableProductsByCustomer
DATA: JSON{
"WEBActivityGetPurchasedDownoadableProductsByCustomer": {
"CustomerKey": "9F3FEA75-3F8D-4BF3-83E1-64ADC3AF3113"
}
}
SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON{
"Results": {
"@recordReturn": "3",
"Result": [
{
"ivd_key": "9ac89bb2-5d59-4193-be45-67e53dffccc7",
"inv_code": "160492",
"ivd_add_date": "12/23/2014 1:48:58 PM",
"prd_code": null,
"prd_name": "Webinar Recording: Debriefing Suppliers and Avoiding Protests 111810",
"ivd_price": " 0.00",
"prd_download_url": "uploads/DebriefingSuppliersAvoidingProtests111810.wmv",
"daysleft": "n/a"
},
{
"ivd_key": "b41701a9-7a5c-4b4c-b86f-abc524233145",
"inv_code": "160493",
"ivd_add_date": "12/23/2014 1:55:05 PM",
"prd_code": "009",
"prd_name": "Webinar Recording: How to Ask for What You Want: Selecting the Right Method for Your Procurement 051211",
"ivd_price": " 0.00",
"prd_download_url": "uploads/HowtoAskforWhatYouWant051211.wmv",
"daysleft": "n/a"
},
{
"ivd_key": "e48aad5a-a20d-4142-b640-9848d1d20f17",
"inv_code": "160495",
"ivd_add_date": "12/23/2014 2:02:11 PM",
"prd_code": "013",
"prd_name": "Webinar Recording: Finding, Understanding and Using BLS Price Indexes 012110",
"ivd_price": " 0.00",
"prd_download_url": "uploads/FindingUnderstandingCPIBLS012110.wmv",
"daysleft": "n/a"
}
]
}
}