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.
arrayBorrower data
mixed
putBorrower(array $data) : mixed
Edit a borrower's information
arrayBorrower data
mixed
deleteBorrower(string $borrowerId) : mixed
Delete a borrower from the current company
stringID 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.
arrayNew 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.
arrayUser data
mixed
getCompanyDetails(string $expand) : mixed
Get company details. The expand property is used to get a particular company section.
stringThe 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.
arrayRoll 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()}
arrayRoll schedule template data
mixed
deleteRollScheduleTemplate(string $templateId) : mixed
Delete an existing roll schedule template.
stringThe template to delete
mixed
postRollScheduleTemplateLine(array $data) : mixed
Add a new template line to an existing roll schedule template.
arrayTemplate line data
mixed
putRollScheduleTemplateLine(array $data) : mixed
Edit an existing template line.
arrayTemplate line data
mixed
deleteRollScheduleTemplateLine(string $templateId, string $templateLineId) : mixed
Delete an existing template line from a roll schedule template.
stringID of the template containing the line to delete
stringID of the line to delete
mixed
api