1. Home
  2. Application 24/7
  3. SOAP requests
  4. getMoneyFromVault

getMoneyFromVault

Operation getMoneyFromVault begins withdrawal of cash from the vault. The request should containt billonAmount and mpin.

Example SOAP request:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="ns1">
   <soapenv:Header/>
   <soapenv:Body>
      <ns1:getMoneyFromVault soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <amount xsi:type="ns1:billonAmount">
            <amount xsi:type="xsd:unsignedLong">10</amount>
            <currency xsi:type="xsd:string">PLN</currency>
            <colour xsi:type="xsd:unsignedLong">0</colour>
         </amount>
         <mpin xsi:type="xsd:string">L6UN8</mpin>
      </ns1:getMoneyFromVault>
   </soapenv:Body>
</soapenv:Envelope>

Example SOAP response:

<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" xmlns:ns1="ns1">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <ns1:getMoneyFromVaultResponse>
         <return xsi:type="ns1:vuiSoapTaskIdResponse">
            <requestStatus>SUCCESS</requestStatus>
            <requestStatusDescription>Request succeeded.</requestStatusDescription>
            <taskId>6DI8PGIL3SUGEG4WFHRPTMG8CI</taskId>
         </return>
      </ns1:getMoneyFromVaultResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Request parameters:

parameter type description
amount billonAmount amount of money to be transferred from vault
mpin string number pin (long pin) of machine

Response parameters:

name type description
taskId string id of created task
requestStatus string result of request
requestStatusDescription string status description

Possible errors:

error description
ERR_INVALID_AMOUNT invalid amount
Was this article helpful to you? Yes No

How can we help?