The following SOAP methods are provided specifically for interaction with payroll accounting.
getAccount
Query invoice for account
bool getAccount( int customer_id )
Parameters
- int customer_id: ID of the client for which the invoice is to be queried. For global users, the global invoice is output with the ID 0, for client users the invoice of the client.
Please note that global users who have switched to a client via the system interface are considered to be client users from that point on and ignore the parameter customer_id until the global user has switched back to the "Global Overview" via the system interface.
Return value
- discount: Description, Percent and Price
- accounting_types: no response in case of a successful entry, error message if the entry already exists
Required rights
Use
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:evalanche:soap:v1:accounting">
<soapenv:Header/>
<soapenv:Body>
<urn:GetAccountIn>
<CustomerId>MANDANTEN_ID</CustomerId>
</urn:GetAccountIn>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:evalanche:soap:v1:accounting">
<SOAP-ENV:Body>
<ns1:GetAccountOut>
<Discount>
<Description/>
<Percent></Percent>
<Price></Price>
</Discount>
<AccountingTypes>
<TypeId>TYPE_ID</TypeId>
<Amount>AMOUNT</Amount>
<Price>PRICE</Price>
<Currency>CURRENCY</Currency>
<AccountingItems>
<Description>DESCRIPTION</Description>
<CustomerId>MANDANTEN_ID</CustomerId>
<AccountingDate>ACCOUNTING_DATE</AccountingDate>
<ChargeCount>CHARGE_COUNT</ChargeCount>
</AccountingItems>
[...]
</AccountingTypes>
</ns1:GetAccountOut>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The following Accounting_Types are output:
1: Mailing sent
2: number of profiles
3: andanten existing
4: andanten generated
5: ruins existing
6: ebservice (XMLRPC API)
7: DFs generated
8: reading service
9: calls for species
10: Geocoding
11: ClientChecks
12: Eye Tracking Checks
13: Internal
14: Internal
15: Internal
16: Internal
17: Calls from social networks
18: Calls from Rss/Atom Feeds
19: Internal
20: User accounts
21: Internal
22: Web space
23: Text analysis
24: Mail size overrun
25: Profile Backups
26: Security Keys
27: Internal
28: Clients copied
29: Calling up dynamic images
30: Web service (Reporting Api)
31: Generated print mailings
32: Web service (SOAP API)
33: Post-address validation