---
title: "List of debt"
method: GET
path: "/shops/{SHOP_ID}/debt"
tags: ["Debt"]
---

# List of debt

`GET /shops/{SHOP_ID}/debt`

Get list of debts

## Path parameters

- `SHOP_ID` integer, required

## Query parameters

- `page` integer
- `page_size` integer
- `status` -1 | 0 | 1 | 2
- `shop_customer_id` string

## Response `200`

Success

- object
  - `data` Debt[] — List of debts
    - `id` string — Debt ID
    - `display_id` integer — Debt ID
    - `name_debt` string — Debt name
    - `description` string — Description
    - `status` -1 | 0 | 1 | 2 — Status
    - `type` integer — Debt type (0: Debt must pay / 1: Debt must collect)
    - `money_must_pay_or_collect` integer — Total amount to be paid / Total amount to be collected
    - `money_payed_or_collected` integer — Paid amount / Collected amount
    - `currency` string — Currency
    - `shop_id` integer — Shop ID
    - `shop_customer_id` string — Customer ID
    - `shop_customer` object — Customer information
      - `id` string
      - `name` string
      - `phone_numbers` string[]
      - `customer` object
        - `id` string
        - `name` string
        - `fb_id` string
        - `global_id` string
        - `psid` string
    - `order_id` integer — Order ID
    - `order` object — Order information
      - `id` integer
      - `display_id` integer
      - `custom_id` string
      - `total_price` integer
      - `cod` integer
      - `assigning_seller_id` string
      - `assigning_seller` object
      - `items` unknown[]
        - unknown
    - `purchase_id` string — Purchase ID
    - `export_id` string — Export ID
    - `supplier_products_id` integer — Supplier products ID
    - `transaction_id` string — Transaction ID
    - `partner_id` string — Partner ID
    - `creator_id` string — Creator ID
    - `last_editor_id` string — Last editor ID
    - `user` object — Creator information
      - `id` string
      - `name` string
      - `fb_id` string
      - `phone_number` string
    - `inserted_at` string, date-time — Inserted at
    - `updated_at` string, date-time — Updated at
    - `expired_at` string, date-time — Expired at
    - `is_locked` boolean — Debt locked
    - `link` string, uri — Link
  - `page_number` integer — Page number
  - `page_size` integer — Page size
  - `success` boolean — Success status
  - `total_entries` integer — Total entries
  - `total_pages` integer — Total pages
  - `sum` integer — Sum

---

[API](https://skmtc.dev/pancake/apis/pancake-pos-open-api.md) · [All operations](https://skmtc.dev/pancake/apis/pancake-pos-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pancake/pancake-pos-open-api/revisions/acb70aa4b3f5/schema)
