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.
string
Loan ID
mixed
search(string $expand = "", int $pxLimit = 50, int $pxOffset, int $pxSortReverse) : array
Search for loans registered to the current company using various criteria.
string
Search options (JSON formatted)
int
How many results to include
int
Include results starting at this index
int
Sort results oldest first (0) or newest first (1)
array
Loan results
get(string $pxId, string $expand = '') : array
Get full loan information
string
Loan ID to get the collateral data from
string
Comma delimited values of loan sections to get
array
Loan information
put(array $loanData) : array
Update a loan.
array
Loan update data
array
Loan information
update(array $loanData) : array
Update a loan. Same as put.
array
Loan update data
array
Loan information
delete(string $loanId) : array
Delete a loan.
string
The loan to delete
array
The result of the loan operation
create(array $pxOptions) : mixed
Create a new loan.
array
Loan options
mixed
post(array $pxOptions) : mixed
Create a loan. Same as create.
array
Loan options
mixed
postPayment(array $data) : array
Log a new payment to an existing loan.
array
Payment data
array
putPayment(array $data) : mixed
Edit an existing loan payment.
array
Payment data
mixed
deletePayment(string $loanId, string $paymentId, string $expand = '') : mixed
Reverses a loan payment.
string
Loan with the payment to delete
string
Payment to delete
string
Reverse payment options (JSON formatted)
mixed
deleteAdminPayment(string $loanId, string $paymentId) : mixed
Deletes a loan payment.
string
Loan with the payment to delete
string
Payment to delete
mixed
postCharge(array $data) : array
Log a new charge to an existing loan.
array
Charge 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.
array
Charge data
mixed
deleteCharge(string $loanId, string $chargeId, string $comment) : mixed
Reverse a charge. Only non-edited charges may be reversed.
string
ID of the loan containing the charge
string
ID of the charge to reverse
string
Reverse comment
mixed
postLinkBorrower(array $data) : mixed
Link an existing borrower to a loan.
array
Loan link data
mixed
deleteLinkBorrower(string $loanId, string $borrowerId) : mixed
Unlink a currently linked borrower from a loan.
string
ID of the loan containing the charge
string
ID 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.
array
Initial setup data
mixed
postNote(array $data) : mixed
Create a new note.
array
Note data
mixed
postPromise(mixed $data) : mixed
Create a new promise.
mixed
mixed
deleteLink(string $loanId) : mixed
Delete all existing links for a loan.
string
ID 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.
array
Link 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.
array
Link data
mixed
postEscrow(array $data) : mixed
Create a new escrow adjustment.
array
Escrow data
mixed
deleteEscrow(string $loanId, string $escrowId) : mixed
Delete an existing escrow adjustment
string
ID of the loan with the escrow to delete
string
ID of the escrow to delete
mixed
postReference(array $data) : mixed
Add a new reference to the loan.
array
Reference data
mixed
deleteReference(string $loanId, string $referenceId) : mixed
Delete a loan reference.
string
ID of the loan containing the reference to delete
string
ID of the reference to delete
mixed
postPaymentMethod(array $data) : mixed
Create a new payment method.
array
Payment method data
mixed
putPaymentMethod(array $data) : mixed
Edit an existing payment method.
array
Payment method data
mixed
deletePaymentMethod(string $loanId, string $paymentMethodId) : mixed
Mark a currently active payment method as invalid, or a currently invalid method as valid.
string
ID of the loan containing the payment method to mark as valid or invalid
string
ID of the payment method to mark as valid or invalid
mixed
postAutopay(array $data) : mixed
Schedule a new autopay.
array
Autopay data
mixed
putAutopay(array $data) : mixed
Edit an existing autopay.
array
Autopay data
mixed
deleteAutopay(string $loanId, string $autopayId) : mixed
Delete an existing autopay
string
ID of the loan containing the autopay to delete
string
ID of the autopay entry to delete
mixed
activate(string $loanId) : mixed
Activate a loan.
string
ID of the loan to activate
mixed
unActivate(string $loanId) : mixed
Unactivate a previously activated loan.
string
ID of the loan to unactivate
mixed
deleteAdvancement(string $loanId, string $advancementId) : mixed
Delete an existing advancement.
string
ID of the activated loan with the advancement to delete
string
ID of the advancement to delete
mixed
postAdvancement(array $data) : mixed
Create a new advancement.
array
Advancement data
mixed
putAdvancement(array $data) : mixed
Edit an existing advancement.
array
Advancement data
mixed
deleteCredit(string $loanId, string $creditId) : mixed
Delete an existing credit.
string
ID of the activated loan containing the credit to delete
string
ID of the credit to delete
mixed
postCredit(array $data) : mixed
Create a new credit.
array
Credit data
mixed
putCredit(array $data) : mixed
Edit an existing credit.
array
Credit 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'.
string
ID of the loan to get the archive from
string
Archive 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.
string
ID of the loan to get the payoff from
string
Payoff date range (defaults to current date)
mixed
getRollPaymentOptions(string $loanId) : mixed
Get supported methods for adjustment of the desired roll payment.
string
ID 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.
string
ID of the loan to roll payment to
string
The desired payment (defaults to the configured loan payment amount)
string
How 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.
string
ID of the loan to roll payment to
string
Whether to use fixed term or not (disabled by default)
string
The 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
string
ID of the loan to get the force schedule list from
mixed
getRollSchedule(string $loanId) : mixed
Get the current roll schedule.
string
ID of the loan to get the roll schedule from.
mixed
getAdvancements(string $loanId) : mixed
Get existing loan advancements.
string
ID of the loan to get advancements from
mixed
getCredits(string $loanId) : mixed
Get existing loan credits.
string
ID of the loan to get credits from
mixed
putInvestor(array $data) : mixed
Update investor ownership percentage of a loan.
array
Investor data
mixed
postInvestor(array $data) : mixed
Assign an existing investor to a loan.
array
Investor data
mixed
postEscrowTransaction(array $data) : mixed
Loa a new escrow transaction.
array
Escrow transaction data
mixed
postQuickbooksReset(array $data) : mixed
This deletes the link between this account and the corresponding account in QuickBooks.
array
Quickbooks 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.
array
Quickbooks data
mixed
postQuickbooksSendCustomer(array $data) : mixed
Send only the customer information and create the customer account in QuickBooks.
array
Quickbooks data
mixed
postQuickbooksAllTransactions(array $data) : mixed
Send all transactions if they have not been successfully sent to QuickBooks previously.
array
Quickbooks data
mixed
putForceSchedule(array $data) : mixed
Edit an existing force schedule row. Force the payment schedule to a custom schedule.
array
Force 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.
string
ID of the loan with the investor to delete
string
ID of the investor to delete
mixed
deletePromise(string $loanId, string $promiseId) : mixed
Delete a promise from the specified loan.
string
ID of the loan with the promise to delete
string
ID of the promise to delete
mixed
deleteForceSchedule(string $loanId, string $forceScheduleId) : mixed
Delete a force schedule row by ID.
string
ID of the loan with the force schedule row to delete
string
ID of the force schedule row to delete
mixed
deleteRollSchedule(string $loanId) : mixed
Delete the oldest roll schedule line.
string
ID of the loan with the roll schedule line to delete
mixed
api