#get list payments
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.payment.get_list' \
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; full_name=Ha%20Duy%20Lam; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; system_user=yes; user_id=lamhd%40gmail.com; user_image=/files/avatar_0986788766_1763627962.jpg' \
--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \
--header 'Content-Type: application/json' \
--data '{
  "limit_page_length" : 0,
  "limit_start" : 0

}'
#response
{
    "message": [
        {
            "name": "ACC-PAY-2025-00020",
            "posting_date": "2025-11-25",
            "paid_amount": 1130365.328,
            "mode_of_payment": null,
            "invoice_id": null,
            "order_id": "SAL-ORD-2025-00120"
        },
        {
            "name": "ACC-PAY-2025-00019",
            "posting_date": "2025-11-25",
            "paid_amount": 1153434.0,
            "mode_of_payment": "Chuyển khoản",
            "invoice_id": "ACC-SINV-2025-00026",
            "order_id": null
        },
        {
            "name": "ACC-PAY-2025-00018",
            "posting_date": "2025-11-24",
            "paid_amount": 2580258.0,
            "mode_of_payment": null,
            "invoice_id": "ACC-SINV-2025-00025",
            "order_id": null
        },
        {
            "name": "ACC-PAY-2025-00017",
            "posting_date": "2025-11-24",
            "paid_amount": 1000000.0,
            "mode_of_payment": null,
            "invoice_id": "ACC-SINV-2025-00025",
            "order_id": null
        }
    ]
}

#get payment detail
curl --location 'https://land.dbiz.com//api/method/building_material.building_material.api.payment.get_detail' \
--header 'Cookie: sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; full_name=Ha%20Duy%20Lam; sid=a0cbe3ea6f9a7e9cf083bbe3139eada68d2357eac0167bcc66cda17d; system_user=yes; user_id=lamhd%40gmail.com; user_image=/files/avatar_0986788766_1763627962.jpg' \
--header 'X-Frappe-Csrf-Token: 6ff3be4d1f887dbebf86ba4502b05d94b30c0b0569de49b74a7171a9' \
--header 'Content-Type: application/json' \
--data '{
    "name" : "ACC-PAY-2025-00020"
}'

#response
{
    "message": {
        "name": "ACC-PAY-2025-00020",
        "posting_date": "2025-11-25",
        "paid_amount": 1130365.328,
        "mode_of_payment": null,
        "invoice_id": null,
        "order_id": "SAL-ORD-2025-00120"
    }
}