I'm trying to figure out how to use the SOAP API to check if a Subscriber has unsubscribed from any List that they appear on.
I'm using the example SOAP envelope provided for Retrieving All Lists a Subscriber is On but I don't get the subscription status in the response. Any ideas?
Request
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<fueloauth xmlns="http://exacttarget.com">accessTokenHere</fueloauth>
</soapenv:Header>
<soapenv:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>ListSubscriber</ObjectType>
<Properties>ListID</Properties>
<Properties>Status</Properties>
<Filter xsi:type="ns1:SimpleFilterPart" xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI">
<Property>SubscriberKey</Property>
<SimpleOperator>equals</SimpleOperator>
<Value>999999</Value>
</Filter>
</RetrieveRequest>
</RetrieveRequestMsg>
</soapenv:Body>
</soapenv:Envelope>
Response
<?xml version="1.0" encoding="utf-8"?>
<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"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<wsa:Action>RetrieveResponse</wsa:Action>
<wsa:MessageID>urn:uuid:a70527a2-79b8-4ed2-b3ec-5adb828620c1</wsa:MessageID>
<wsa:RelatesTo>urn:uuid:8686747c-f7cc-459b-8256-2603eb13e3a2</wsa:RelatesTo>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-56623383-47ec-4cf0-b6e4-67cc30e1427e">
<wsu:Created>2015-01-29T03:45:13Z</wsu:Created>
<wsu:Expires>2015-01-29T03:50:13Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<RetrieveResponseMsg
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<OverallStatus>OK</OverallStatus>
<RequestID>2035f0c1-1ec7-41e2-a1db-b40c3a5ac399</RequestID>
<Results xsi:type="ListSubscriber">
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<ListID>372</ListID>
</Results>
<Results xsi:type="ListSubscriber">
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<ListID>13638</ListID>
</Results>
</RetrieveResponseMsg>
</soap:Body>
</soap:Envelope>