PatronAccountDepositCredit

This method deposits credits on the Polaris patron account, with the oldest credits processed first.

  PUT /protected/{1/{AccessToken}/patron/{PatronBarcode}/account/
lumpsumdepositcredit
 

Authorization required?

Yes

Protected method?

Yes

URI Parameters

Name

Required

Description/Notes

PatronBarcode

Yes

Patron barcode

Query String Parameters

Name

Values

Required

Description/Notes

wsid

>0

Yes

ID of workstation calling this method

userid

>0

Yes

ID of user calling this method (not patron ID)

XML Body Elements

Important: XML elements must be in the order shown below.

Name

Required

Description/Notes

TxnAmount

Yes

Valid dollar amount and not greater than balance owed

FreeTextNote

 

Note to attach to payment

XML Elements Returned

The following XML elements are returned.

Name

Description/Notes

PAPIErrorCode

PAPI Error code: Negative values represent errors and are defined elsewhere.

Note: On successful completion, the PAPI error code is populated with a positive integer representing the number of rows returned.

ErrorMessage Error or information message

Example

Copy
http://localhost/PAPIService/REST/public/v1/1033/100/1/patron/21756003332022/account/lumpsumDepositcredit

Body

Copy
<PatronAccountDepositCreditData>
        <TxnAmount >1.25</TxnAmount>
        <FreeTextNote>Credited through Polaris API</FreeTextNote>
</PatronAccountDepositCreditData>

Return - Success

Copy
Return - Success
HTTP/1.1 200 OK
<PatronAccountDepositCreditResult
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <PAPIErrorCode>0</PAPIErrorCode>
    <ErrorMessage/>
</PatronAccountDepositCreditResult>

Return - Failed

Copy
Return - Failed
HTTP/1.1 200 OK
<PatronAccountDepositCreditResult
    xmlns:i="http://www.w3.org/2001/XMLSchemainstance">
    <PAPIErrorCode>-1</PAPIErrorCode>
    <ErrorMessage>Invalid workstation ID.</ErrorMessage>
</PatronAccountDepositCreditResult>