Developer Q&A

Ask a Question
Back to All

ApStatusChangeCommand

Hello, May I know the right SOAP in executing ApStatusChangeCommand ? Getting response 500 using this SOAP. Thank you!

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<m:CorrigoNetOptions xmlns:m="http://corrigo.com/integration/">
<m:ImposeConcurrencyId>true</m:ImposeConcurrencyId>
<m:UpdateLastModified>true</m:UpdateLastModified>
<m:CanDeleteMissingEntity>true</m:CanDeleteMissingEntity>
<m:LockOnDataRetrieval>Default</m:LockOnDataRetrieval>
</m:CorrigoNetOptions>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:Execute xmlns:m="http://corrigo.com/integration/">
<m:commandRequest xsi:type="m:ApStatusChangeCommand"
<m:WorkOrderId>7908350</m:WorkOrderId>
<m:VendorInvoiceStatusId>Exported</m:VendorInvoiceStatusId>
</m:commandRequest>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>