I am trying to update my Subscriber status in the All Subscribers list using SOAP.
I am using the following payload, you can see within my code I am using two different variations to try and update the Status (at different times, merged in this code for post purpose):
<?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">insertAccessTokenHere</fueloauth>
</soapenv:Header>
<soapenv:Body>
<UpdateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options>
<SaveOptions>
<SaveOption>
<PropertyName>*</PropertyName>
<SaveAction>UpdateOnly</SaveAction>
</SaveOption>
</SaveOptions>
</Options>
<Objects xsi:type="Subscriber">
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<!-- variation 1 start -->
<Status>Active</Status>
<Lists>
<PartnerKey xsi:nil="true" />
<ID>51</ID>
</Lists>
<!-- variation 1 end -->
<!-- variation 2 start -->
<Attributes>
<Name>Status</Name>
<Value>Active</Value>
</Attributes>
<Lists>
<PartnerKey xsi:nil="true" />
<ID>51</ID>
</Lists>
<!-- variation 2 end -->
<SubscriberKey>mysubkey</SubscriberKey>
</Objects>
</UpdateRequest>
</soapenv:Body>
</soapenv:Envelope>
Both payloads return a success message, but nothing actually happens. The status is still whatever it was before the update.
Can anyone advise?
Edit: This is the most recent variation of the code I am using but still am not seeing any results.
<?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">mykeygoeshere</fueloauth>
</soapenv:Header>
<soapenv:Body>
<UpdateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options>
<SaveOptions>
<SaveOption>
<PropertyName>*</PropertyName>
<SaveAction>UpdateAdd</SaveAction>
</SaveOption>
</SaveOptions>
</Options>
<Objects xsi:type="Subscriber">
<PartnerKey xsi:nil="true" />
<ObjectID xsi:nil="true" />
<Status>Active</Status>
<EmailAddress>[email protected]</EmailAddress>
<SubscriberKey>11223344556677</SubscriberKey>
</Objects>
</UpdateRequest>
</soapenv:Body>
</soapenv:Envelope>