Operation setTreasury sets name of merchant treasury.

With this operation merchant can choose his treasury – user who will receive money when it exceeds selected threshold or sendMoneyToTreasuryRequest message is sent. Threshold can be enabled and set using setTreasuryParameters request.
Attention: money cannot be transferred back automatically. In such case merchant has to ask the trusted user (treasury) to send it back.

Example SOAP request:

<soapenv:Envelope xmlns:xsi="" xmlns:xsd="" 
xmlns:soapenv="" xmlns:ns1="ns1">
      <ns1:setTreasury soapenv:encodingStyle="">
         <treasuryName xsi:type="xsd:string">my_treasury</treasuryName>
         <password xsi:type="xsd:string">passwd</password>


Example SOAP response:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:SOAP-ENC="" xmlns:xsi="" xmlns:xsd="" xmlns:ns1="ns1">
   <SOAP-ENV:Body SOAP-ENV:encodingStyle="">
            <requestStatusDescription>Request succeeded.</requestStatusDescription>


Request parameters:

parameter type description
treasuryName string name of treasury (trusted user)
password string password of logged user


Response parameters:

name type description
requestStatus string result of request
requestStatusDescription string status description


Possible errors:

error description
ERR_INVALID_USERNAME invalid username
ERR_INVALID_PASSWORD invalid password
Was this article helpful to you? Yes No

How can we help?