Initiates the restructuring of one or multiple loans

Time Status User Agent
Make a request to see history.

URL Expired

The URL for this request expired after 30 days.

Request Body Structure

account_id
string
required
ID of the Account

Body of request to restructure one or multiple loans

restructured_loans_ids
array of strings
required
length ≤ 10
The IDs of the loans to be restructured

restructured_loans_ids*
ADD string

line_item_id
string
^(?!can_).*$
The ID associated to be with the restructured loan for future requests. If not provided on line item creation, Canopy will generate this field.

description
string
A description of this particular line item if any.

interest_policies
object | null
Policies for interest on this new loan. If none are specified, the account interest policies will be applied.

interest_policies
object | null

Allowed:
AM, AM_INTEREST

fee_policies
object | null
Policies for an origination fee related to this loan

fee_policies
object | null

interest_and_fee_handling
string
enum
required
The strategy to handle outstanding interest and fee balances on the original loans.

Allowed:
TRANSFER, OFFSET, CAPITALIZE

Preview
boolean
Flag to decide if this is a preview

Response Codes

``202 Loan/s restructuring successfully scheduled.

``303 See Other.

``401 Unauthorized.

``403 Forbidden.

``404 Account not found

``422 Invalid input

``429 Too many requests.

``default Unexpected Error.

Example Request (curl)


curl --request POST \
     --url https://contact/%20sales%20to%20enable%20your%20sandbox/accounts//line_items/restructures/loans \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '{

"interest_policies": {
    "interest_percent": 0,
    "is_limited_to_loan_duration": false
  },

"fee_policies": {
    "origination_fee_cents": 0,
    "origination_fee_percent": 0,
    "is_origination_fee_lesser_value": false,
    "is_origination_fee_amortized": false
  },

"interest_and_fee_handling": "CAPITALIZE"
}

'

Click Try It! to start a request and see the response here! Or choose an example:


303

Updated 6 months ago