Danh sách thanh toán đơn hàng
Lấy danh sách các khoản thanh toán của đơn hàng bán
HTTP Request
[GET] /api/v6.1/sale_order_payments
Query Parameters
Filtering
| Fields | Support | Type | Description |
|---|---|---|---|
| id | eq,in | integer | Định danh |
| order_id | eq,in | integer | ID đơn hàng |
| created_at | eq,gte,lte | timestamp | Ngày tạo |
Sort
| Sort (field) | Direction |
|---|---|
| id | asc,desc |
Limit & Offset
| Type | Description | |
|---|---|---|
| Limit | integer | Lấy bao nhiêu bản ghi |
| Offset | integer | Bỏ qua bao nhiêu bản ghi |
Example
HTTP Request
GET api/v6.1/sale_order_payments?limit=10 HTTP/1.1
Host: example.getflycrm.com
Status
200 OK
Response
{
"data": [
{
"id": 1,
"order_id": 96,
"amount": 50000,
"pay_date": "2025-02-03",
"description": "Thanh toán đợt 1"
}
],
"has_more": false,
"offset": 0,
"limited": 10
}