Avatar · SOAP Services
Perishable Logistics AI Agent
0.01% Better each day

Purchase Orders

← Back to Purchase Orders  |  Service Description (WSDL)

saveExpected

Submits purchase orders as an XML/DataSet payload (dsDatosExp) plus an importer code and a bearer token. Reuses the same ingestion logic as the REST endpoint POST /purchase_orders/ (deduplication, code mapping, account validation and persistence).

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /purchase_orders/purchase_orders.asmx HTTP/1.1
Host: clientsws.avatarflower.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "saveExpected"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <saveExpected xmlns="http://tempuri.org/">
      <dsDatosExp>anyType</dsDatosExp>
      <importer>string</importer>
      <token>string</token>
    </saveExpected>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <saveExpectedResponse xmlns="http://tempuri.org/">
      <saveExpectedResult>anyType</saveExpectedResult>
    </saveExpectedResponse>
  </soap:Body>
</soap:Envelope>