GetPettyAccounts
This call is to retrieve an array of PettyAccount objects for the location.
Request Parameters
- accessToken
string— Your access token (passed in SOAP body, not headers). - locationToken
string— Your location token (passed in SOAP body, not headers).
Response Parameters
-
Message
string— Returns a PAR POS Error message if the request did not go through. Otherwise, this field will be null. -
ResultCode
int— Returns one of the following:- 0 — Success
- 1 — Unknown Error
- 3 — Server Unavailable
- 4 — Access Denied
-
PettyAccounts
Array of PettyAccount— Array of PettyAccount objects for this location.PettyAccount Properties
- AccountType
PettyAccountType— Returns one of the following:- CashIn — Cash in transaction
- CashOut — Cash out transaction
- Id
int— Unique Id of this PettyAccount - Name
string— Name of this PettyAccount
- AccountType
Headers
- Type: stringS
O A P Action required
Body
required
application/json
SOAP envelope containing the GetPettyAccounts request with accessToken and locationToken in body.
Responses
- text/xml; charset=utf-8
Request Example for post/GetPettyAccounts
cURL
curl --request POST \
--url 'https://{server_name_goes_here}.parpos.com/Settings.svc?Settings_GetPettyAccounts' \
--header 'Content-Type: text/xml; charset=utf-8' \
--header 'SOAPAction: "http://tempuri.org/ISettingsWebService/GetPettyAccounts"' \
--data '<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:GetPettyAccounts>
<tem:accessToken>AccessToken</tem:accessToken>
<tem:locationToken>LocationToken</tem:locationToken>
</tem:GetPettyAccounts>
</soapenv:Body>
</soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<Settings_GetPettyAccountsResponse xmlns="http://tempuri.org/">
<Settings_GetPettyAccountsResult>
<Message>Success</Message>
<ResultCode>0</ResultCode>
<PettyAccounts>
<PettyAccount>
<AccountType>0</AccountType>
<Id>1</Id>
<Name>Office Supplies</Name>
</PettyAccount>
</PettyAccounts>
</Settings_GetPettyAccountsResult>
</Settings_GetPettyAccountsResponse>
</s:Body>
</s:Envelope>