Loan module
Access all of the API endpoints under the 'loan' path. Each module is loaded via {@link \APAPI\APLoader} and passed a reference to a {@link \APAPI\APAPI} instance to use. In practice, usage of SDK modules is as simple as:
$api->loan->initialize();
| see |
|---|
__construct($pxAPIOb)
When a module is requested via the API base class, it is automatically passed a reference to a {@link \APAPI\APAPI} instance to use.
sections() : mixed
Provides a list of all data sections available to a loan.
mixed
summary(string $pxId) : mixed
Return loan summary numbers & info.
stringLoan ID
mixed
search(string $expand = "", int $pxLimit = 50, int $pxOffset, int $pxSortReverse) : array
Search for loans registered to the current company using various criteria.
stringSearch options (JSON formatted)
intHow many results to include
intInclude results starting at this index
intSort results oldest first (0) or newest first (1)
arrayLoan results
get(string $pxId, string $expand = '') : array
Get full loan information
stringLoan ID to get the collateral data from
stringComma delimited values of loan sections to get
arrayLoan information
put(array $loanData) : array
Update a loan.
arrayLoan update data
arrayLoan information
update(array $loanData) : array
Update a loan. Same as put.
arrayLoan update data
arrayLoan information
delete(string $loanId) : array
Delete a loan.
stringThe loan to delete
arrayThe result of the loan operation
create(array $pxOptions) : mixed
Create a new loan.
arrayLoan options
mixed
post(array $pxOptions) : mixed
Create a loan. Same as create.
arrayLoan options
mixed
postPayment(array $data) : array
Log a new payment to an existing loan.
arrayPayment data
array
putPayment(array $data) : mixed
Edit an existing loan payment.
arrayPayment data
mixed
deletePayment(string $loanId, string $paymentId, string $expand = '') : mixed
Reverses a loan payment.
stringLoan with the payment to delete
stringPayment to delete
stringReverse payment options (JSON formatted)
mixed
deleteAdminPayment(string $loanId, string $paymentId) : mixed
Deletes a loan payment.
stringLoan with the payment to delete
stringPayment to delete
mixed
postCharge(array $data) : array
Log a new charge to an existing loan.
arrayCharge data
array
putCharge(array $data) : mixed
Edit an existing loan charge. All charges will be edited and NOT deleted, stats will still exist on each transaction entered into the system.
arrayCharge data
mixed
deleteCharge(string $loanId, string $chargeId, string $comment) : mixed
Reverse a charge. Only non-edited charges may be reversed.
stringID of the loan containing the charge
stringID of the charge to reverse
stringReverse comment
mixed
postLinkBorrower(array $data) : mixed
Link an existing borrower to a loan.
arrayLoan link data
mixed
deleteLinkBorrower(string $loanId, string $borrowerId) : mixed
Unlink a currently linked borrower from a loan.
stringID of the loan containing the charge
stringID of the borrower to unlink
mixed
putInitialSetup(array $data) : mixed
Edit information for this loan that is not essential for calculating payment, APR, finance charge, etc.
arrayInitial setup data
mixed
postNote(array $data) : mixed
Create a new note.
arrayNote data
mixed
postPromise(mixed $data) : mixed
Create a new promise.
mixed
mixed
deleteLink(string $loanId) : mixed
Delete all existing links for a loan.
stringID of the loan with the links to remove
mixed
putLink(array $data) : mixed
Edit an existing loan link, choosing the level of linking relationship that the accounts have. Attempting to edit a link between two loans that don't exists already does nothing.
arrayLink data
mixed
postLink(array $data) : mixed
Link loan accounts, choosing the level of linking relationship that the accounts have. Attempting to link to already linked loans does nothing.
arrayLink data
mixed
postEscrow(array $data) : mixed
Create a new escrow adjustment.
arrayEscrow data
mixed
deleteEscrow(string $loanId, string $escrowId) : mixed
Delete an existing escrow adjustment
stringID of the loan with the escrow to delete
stringID of the escrow to delete
mixed
postReference(array $data) : mixed
Add a new reference to the loan.
arrayReference data
mixed
deleteReference(string $loanId, string $referenceId) : mixed
Delete a loan reference.
stringID of the loan containing the reference to delete
stringID of the reference to delete
mixed
postPaymentMethod(array $data) : mixed
Create a new payment method.
arrayPayment method data
mixed
putPaymentMethod(array $data) : mixed
Edit an existing payment method.
arrayPayment method data
mixed
deletePaymentMethod(string $loanId, string $paymentMethodId) : mixed
Mark a currently active payment method as invalid, or a currently invalid method as valid.
stringID of the loan containing the payment method to mark as valid or invalid
stringID of the payment method to mark as valid or invalid
mixed
postAutopay(array $data) : mixed
Schedule a new autopay.
arrayAutopay data
mixed
putAutopay(array $data) : mixed
Edit an existing autopay.
arrayAutopay data
mixed
deleteAutopay(string $loanId, string $autopayId) : mixed
Delete an existing autopay
stringID of the loan containing the autopay to delete
stringID of the autopay entry to delete
mixed
activate(string $loanId) : mixed
Activate a loan.
stringID of the loan to activate
mixed
unActivate(string $loanId) : mixed
Unactivate a previously activated loan.
stringID of the loan to unactivate
mixed
deleteAdvancement(string $loanId, string $advancementId) : mixed
Delete an existing advancement.
stringID of the activated loan with the advancement to delete
stringID of the advancement to delete
mixed
postAdvancement(array $data) : mixed
Create a new advancement.
arrayAdvancement data
mixed
putAdvancement(array $data) : mixed
Edit an existing advancement.
arrayAdvancement data
mixed
deleteCredit(string $loanId, string $creditId) : mixed
Delete an existing credit.
stringID of the activated loan containing the credit to delete
stringID of the credit to delete
mixed
postCredit(array $data) : mixed
Create a new credit.
arrayCredit data
mixed
putCredit(array $data) : mixed
Edit an existing credit.
arrayCredit data
mixed
getETFBanks() : mixed
Provides a list of all ETF supported banks
mixed
getNoteCategories() : mixed
Get available note categories
mixed
getLoanArchive(string $loanId, string $period) : mixed
Get the loan archive data. The archive period may be specified to delimit the scope of the loan archive to get (in days). To get the loan archive since the beginning of the account, use 'all'.
stringID of the loan to get the archive from
stringArchive period (in days) or 'all' to get it since the beginning of the account
mixed
getPromiseType() : mixed
Get available promise types
mixed
getPaymentTypes() : mixed
Get supported payment types
mixed
getLoanStatus() : mixed
Get supported loan status
mixed
getFeeTypes() : mixed
Get supported fee types
mixed
getPayoff(string $loanId, string $date = "") : mixed
Get the 10 day loan payoff range for any starting date.
stringID of the loan to get the payoff from
stringPayoff date range (defaults to current date)
mixed
getRollPaymentOptions(string $loanId) : mixed
Get supported methods for adjustment of the desired roll payment.
stringID of the loan to get roll payment options from
mixed
getRollPayment(string $loanId, string $desiredPayment = "", string $solveWith = "") : mixed
Roll various terms of the loan to result in the desired payment.
stringID of the loan to roll payment to
stringThe desired payment (defaults to the configured loan payment amount)
stringHow to adjust in the solving for the desired payment (defaults to the first configured roll payment option)
mixed
getRollPaymentFixedTerm(string $loanId, string $useFixedTerm = "", string $fixedTerm = "") : mixed
Roll the payment amount to whatever it needs to be in order to have the fixed term value have the balance equal zero after. This is used for irregular 1st periods that would otherwise extend or shorten the term of the contract by accruing more or less interest in the 1st period due to that periods irregularity.
stringID of the loan to roll payment to
stringWhether to use fixed term or not (disabled by default)
stringThe desired rounded up whole term number (defaults to the loan term)
mixed
getForceSchedule(string $loanId) : mixed
Get the list of forced payment schedule for the current loan
stringID of the loan to get the force schedule list from
mixed
getRollSchedule(string $loanId) : mixed
Get the current roll schedule.
stringID of the loan to get the roll schedule from.
mixed
getAdvancements(string $loanId) : mixed
Get existing loan advancements.
stringID of the loan to get advancements from
mixed
getCredits(string $loanId) : mixed
Get existing loan credits.
stringID of the loan to get credits from
mixed
putInvestor(array $data) : mixed
Update investor ownership percentage of a loan.
arrayInvestor data
mixed
postInvestor(array $data) : mixed
Assign an existing investor to a loan.
arrayInvestor data
mixed
postEscrowTransaction(array $data) : mixed
Loa a new escrow transaction.
arrayEscrow transaction data
mixed
postQuickbooksReset(array $data) : mixed
This deletes the link between this account and the corresponding account in QuickBooks.
arrayQuickbooks data
mixed
postQuickbooksAccountSetup(array $data) : mixed
Send the customer information and create the account in QuickBooks. It will also send the funding check information and create an invoice for the underwriting fee.
arrayQuickbooks data
mixed
postQuickbooksSendCustomer(array $data) : mixed
Send only the customer information and create the customer account in QuickBooks.
arrayQuickbooks data
mixed
postQuickbooksAllTransactions(array $data) : mixed
Send all transactions if they have not been successfully sent to QuickBooks previously.
arrayQuickbooks data
mixed
putForceSchedule(array $data) : mixed
Edit an existing force schedule row. Force the payment schedule to a custom schedule.
arrayForce schedule data
mixed
postForceSchedule(mixed $data) : mixed
Add a new force schedule row. Force the payment schedule to a custom schedule.
mixed
mixed
deleteInvestor(string $loanId, string $investorId) : mixed
Delete an investor from a loan. If an investor is assigned to the specified loan, it will be removed from the loan investor list.
stringID of the loan with the investor to delete
stringID of the investor to delete
mixed
deletePromise(string $loanId, string $promiseId) : mixed
Delete a promise from the specified loan.
stringID of the loan with the promise to delete
stringID of the promise to delete
mixed
deleteForceSchedule(string $loanId, string $forceScheduleId) : mixed
Delete a force schedule row by ID.
stringID of the loan with the force schedule row to delete
stringID of the force schedule row to delete
mixed
deleteRollSchedule(string $loanId) : mixed
Delete the oldest roll schedule line.
stringID of the loan with the roll schedule line to delete
mixed
api