---
title: "Get repayment hierarchy"
method: GET
path: "/v2/repayment-hierarchies/{hierarchyCode}"
tags: ["Repayment hierarchy"]
---

# Get repayment hierarchy

`GET /v2/repayment-hierarchies/{hierarchyCode}`

## Request

- Base URL: `https://sandbox.pismolabs.io/lending`
- URL: `https://sandbox.pismolabs.io/lending/v2/repayment-hierarchies/{hierarchyCode}`
- Auth: HTTP bearer

Get a repayment hierarchy by its code, including the hierarchy order and current status.

## Path parameters

- `hierarchyCode` string, required

## Response `200`

Repayment hierarchy retrieved successfully.

- GetRepaymentHierarchyV2Response
  - `hierarchy` string[], required: List that defines the repayment priority order using the order items are listed. Determines which loan components are paid first during repayment processing. All seven items are required.
  - `hierarchy_code` string, required: Repayment hierarchy code. Must be unique and can contain alphanumeric characters, hyphens, and underscores.
  - `status` 'ENABLED' | 'DISABLED' | 'DELETED', required: Repayment hierarchy status

## Other responses

- `400`: A validation error occurred.
- `404`: Repayment hierarchy not found.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/pismo/apis/lending.md) - [All operations](https://skmtc.dev/pismo/apis/lending/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/lending/revisions/a288022e3d8b?raw)
