Update an applicant on a creditor application
PUT/applications/:applicationId/creditors/:creditorId/creditor-applicant/:creditorApplicantId
Updates one applicant's information in CreditApp after the application has been submitted to the creditor. This is separate from the worksheet update, which changes the deal structure (vehicle and financing), and from updating the application itself (PUT /applications/{applicationId}).
Nothing is sent to the creditor. The update changes CreditApp's record. It does not notify the creditor or re-send the application; the creditor receives the new details only when the deal is next sent to it. POST /applications/{applicationId}/submit cannot do that: it answers 400 for a creditor the application was already submitted to.
The personal details are shared by every creditor. The same applicant appears on each creditor's copy of the application. Title, names, date of birth, phone number, email, language, marital status, applicant type and business details are written to every copy, not only the one for the creditor in the path, so a change made through one creditor also changes what the others hold. The SIN, address history and employment history are kept per creditor. A co-applicant added through POST …/creditor-applicant is on this creditor's copy only, so its updates stay there.
The personal details are replaced, not merged. Every detail field you omit is cleared, so send all the details you want to keep, not only the ones that changed. Two exceptions: an omitted languagePreference keeps the applicant's current language, and an omitted sin does not erase a SIN already on file. applicantType and the business fields are cleared too: updating a commercial applicant without sending applicantType: COMMERCIAL and its business details again turns it into a consumer applicant with no business details, on every creditor's copy. The list endpoint returns all of these fields, so the safe way to change a few is to read the applicant from the list, change those fields, and send the entry back.
Address and employment are optional blocks. When primaryAddress is omitted, the address history is left as it is and addressHistory and noPreviousAddress are ignored. When it is sent, the whole address history is replaced by primaryAddress followed by addressHistory, and noPreviousAddress is reset unless it is sent as true. primaryEmployment works the same way for employmentHistory and noPreviousEmployment. Entries are given new IDs on every update.
A 400 can follow a partial update. The details, the address history and the employment history are saved one after another. If the details are accepted but the address or employment history is rejected, the response is 400 and the new details stay saved. After a 400, read the list again rather than assuming nothing changed.
Validation depends on whether the application is read-only. For an editable application, consumer applicants need firstName, lastName and a dateOfBirth between 10 and 100 years ago, every applicant needs a valid phoneNumber and email, and a sin, when sent, must be a valid Canadian SIN. The application's own applicant rules are then applied as well. Commercial applicants (applicantType: COMMERCIAL) need businessName; business fields are rejected on consumer applicants.
A read-only application is one a creditor's integration created through the API with isReadOnly: true. Only that same integration can change its applicants. Every other caller, including any retailer integration, receives 400 with the message Forbidden (not 403). The read-only request validation is looser: phoneNumber and email are optional and sin is not checked.
Request
Responses
- 200
- 400
- 401
- 403
- 404
The applicant was updated. Read the list again to see the saved values; the change can take a moment to appear.
Bad Request - The request failed validation, the application is archived, or the application is read-only and this caller did not create it (message Forbidden). The details may already have been saved when the address or employment history is the part rejected; read the list again.
Unauthorized
Access denied - the caller does not hold the permission to edit creditor applicants
Not Found - A missing application, an application the caller cannot see, and a creditorApplicantId that is not on this creditor application (including one that has been removed) all answer the same response.