# Update the reference account of a credit line Updates the external reference account associated with a customer's credit line. The account is used for the payout of a credit line loan. Endpoint: PATCH /v1/persons/{person_id}/credit_lines/{credit_line_id}/reference_account Version: 1.0 ## Path parameters: - `person_id` (string, required) The person ID of the customer who has the credit line. - `credit_line_id` (string, required) The unique credit line ID, generated after a credit line is created. ## Request fields (application/json): - `iban` (string, required) The IBAN of the external reference account to be linked to the credit line. Example: "DE87110101001000057123" - `mandate_number` (string, required) The mandate number. Example: "LUUJZMGP2IWIIE" - `mandate_signature_date` (string, required) The date on which the mandate was signed. Example: "2022-02-07" - `name` (string,null) The name of the account holder. Example: "Lisa Hermann" ## Response 400 fields (application/json): - `code` (string) Example: "build_pagination_headers_failure" - `detail` (string) Example: "Cannot connect to database." - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "400" - `title` (string) Example: "Failed to build pagination headers." ## Response 403 fields (application/json): - `code` (string) Example: "unauthorized_action" - `detail` (string) Example: "Unauthorized action is not allowed." - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "403" - `title` (string) Example: "Unauthorized Action" ## Response 404 fields (application/json): - `code` (string) Example: "model_not_found" - `detail` (string) Example: "Couldn't find 'Account' for id 'DE24112233445566'." - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `status` (string) Example: "404" - `title` (string) Example: "Model Not Found" ## Response 409 fields (application/json): - `title` (string) Example: "Record Not Unique" - `status` (string) Example: "409" - `id` (string) Example: "a95f2aaf-4e0c-4d49-8021-8a16a884ed86" - `detail` (string) Example: "Could not save `terms_and_conditions_event`." - `code` (string) Example: "record_not_unique" ## Response 422 fields (application/json): - `errors` (array, required) - `errors.id` (string, required) A UUID, preferably the request ID - `errors.status` (integer, required) The HTTP status - `errors.code` (string, required) some_computer_friendly_string - `errors.title` (string, required) Some short human friendly string - `errors.detail` (string, required) Some human friendly-ish detail: field is required - `errors.backtrace` (array,null) Optional array of backtrace lines - `errors.source` (object,null) Optional computer-friendly error source description Example: {"field":"name","message":"is_required"} - `errors.source.field` (string, required) Example: "name" - `errors.source.message` (string, required) Example: "is_required"