Company module
Access all of the API endpoints under the 'company' 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->calc->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.
postBorrower(array $data) : mixed
Create a new user and assign it to the current company. If the user already exists (if the email and/or SSN already exists) it will not be created. The user is not associated to any loan.
array
Borrower data
mixed
putBorrower(array $data) : mixed
Edit a borrower's information
array
Borrower data
mixed
deleteBorrower(string $borrowerId) : mixed
Delete a borrower from the current company
string
ID of the borrower to delete
mixed
putBorrowerSettings(array $data) : mixed
Update user settings for the specified loan. These are loan access and enrollment options that can be controlled at the loan and user level.
array
New user settings
mixed
postUser(array $data) : mixed
Create a new user and assign it to the current company. If the user already exists (if the email and/or SSN already exists) it will not be created. The user will be associated to the specified loan.
array
User data
mixed
getCompanyDetails(string $expand) : mixed
Get company details. The expand property is used to get a particular company section.
string
The company section to retrieve
mixed
getPaymentMethods() : mixed
Get the payment methods available to the current company, including custom payment methods.
mixed
getFlooringCustomers() : mixed
Get the available flooring customers for the current company.
mixed
getChecklist() : mixed
Get the current company checklist items.
mixed
getRollScheduleTemplates() : mixed
Get the roll schedule templates available for the current company.
mixed
postRollScheduleTemplate(array $data) : mixed
Create a new roll schedule template in the current company.
array
Roll schedule template data
mixed
putRollScheduleTemplate(array $data) : mixed
Edit an existing roll schedule template. Only the title may be edited. To add a new template {@link postRollScheduleTemplateLine()}
array
Roll schedule template data
mixed
deleteRollScheduleTemplate(string $templateId) : mixed
Delete an existing roll schedule template.
string
The template to delete
mixed
postRollScheduleTemplateLine(array $data) : mixed
Add a new template line to an existing roll schedule template.
array
Template line data
mixed
putRollScheduleTemplateLine(array $data) : mixed
Edit an existing template line.
array
Template line data
mixed
deleteRollScheduleTemplateLine(string $templateId, string $templateLineId) : mixed
Delete an existing template line from a roll schedule template.
string
ID of the template containing the line to delete
string
ID of the line to delete
mixed
api