Feature #103
openFE - phân trang 5 item mỗi trang payment history
0%
Updated by Hoodie Le about 1 year ago
- Status changed from New to In Progress
- Assignee changed from Hoodie Le to Linh Nguyễn Xuân
FE đã sửa nhưng có vẻ BE vẫn đang trả về cố định 10 items -> cần kiểm tra lại api
https://api-dev.doctransgpt.com/api/v1/orders?itemsPerPage=5&page=1
{
"success": true,
"total": 39,
"result": [
{
"id": "150",
"uuid": "97ccc062-74c3-11ee-8f52-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0002",
"name": "Professional plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 100,
"max_file_size": 62914560,
"price_divide_100": 1,
"base_token": 5000000,
"bonus_token": 3500000,
"days_of_valid": 7,
"paypal_plan_id": "P-88V67659RE406861XMU6MERA"
},
"status": "2",
"external_order_id": "9A794743JV806870N",
"amount": 3000,
"amount_divide_100": 30,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-27T12:23:10",
"updated_at": "2023-10-27T12:23:10"
},
{
"id": "137",
"uuid": "9c4685d2-73e8-11ee-8bda-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0002",
"name": "Professional plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 100,
"max_file_size": 62914560,
"price_divide_100": 1,
"base_token": 5000000,
"bonus_token": 3500000,
"days_of_valid": 7,
"paypal_plan_id": "P-88V67659RE406861XMU6MERA"
},
"status": "2",
"external_order_id": "6G542354CB669060A",
"amount": 3000,
"amount_divide_100": 30,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-26T10:15:38",
"updated_at": "2023-10-26T10:15:38"
},
{
"id": "136",
"uuid": "7cadc54e-7345-11ee-ab79-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0002",
"name": "Professional plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 100,
"max_file_size": 62914560,
"price_divide_100": 1,
"base_token": 5000000,
"bonus_token": 3500000,
"days_of_valid": 7,
"paypal_plan_id": "P-88V67659RE406861XMU6MERA"
},
"status": "2",
"external_order_id": "8EG10257B46043718",
"amount": 3000,
"amount_divide_100": 30,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-25T14:47:57",
"updated_at": "2023-10-25T14:47:57"
},
{
"id": "93",
"uuid": "20dbe15e-6e83-11ee-8207-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0002",
"name": "Professional plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 100,
"max_file_size": 62914560,
"price_divide_100": 1,
"base_token": 5000000,
"bonus_token": 3500000,
"days_of_valid": 7,
"paypal_plan_id": "P-88V67659RE406861XMU6MERA"
},
"status": "2",
"external_order_id": "03261139J4061005R",
"amount": 3000,
"amount_divide_100": 30,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-19T13:26:36",
"updated_at": "2023-10-19T13:26:36"
},
{
"id": "92",
"uuid": "1c786e7a-6e83-11ee-8207-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0001",
"name": "Starter plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 20,
"max_file_size": 31457280,
"price_divide_100": 1,
"base_token": 1000000,
"bonus_token": 500000,
"days_of_valid": 7,
"paypal_plan_id": "P-5EX69960EW4366836MU3XT4I"
},
"status": "2",
"external_order_id": "7WG05792EN634634K",
"amount": 600,
"amount_divide_100": 6,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-19T13:26:29",
"updated_at": "2023-10-19T13:26:29"
},
{
"id": "91",
"uuid": "1b911444-6e83-11ee-8207-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0003",
"name": "Premium plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 999999999999,
"max_file_size": 104857600,
"price_divide_100": 1,
"base_token": 17000000,
"bonus_token": 17000000,
"days_of_valid": 7,
"paypal_plan_id": "P-46D85280R0580670XMU6ME5Q"
},
"status": "2",
"external_order_id": "1CL22956TL1055341",
"amount": 10000,
"amount_divide_100": 100,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-19T13:26:27",
"updated_at": "2023-10-19T13:26:27"
},
{
"id": "86",
"uuid": "345fd848-6dc5-11ee-8c34-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0001",
"name": "Starter plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 20,
"max_file_size": 31457280,
"price_divide_100": 1,
"base_token": 1000000,
"bonus_token": 500000,
"days_of_valid": 7,
"paypal_plan_id": "P-5EX69960EW4366836MU3XT4I"
},
"status": "2",
"external_order_id": "91171178418926414",
"amount": 600,
"amount_divide_100": 6,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-18T14:47:04",
"updated_at": "2023-10-18T14:47:04"
},
{
"id": "85",
"uuid": "bb9cad66-6dbd-11ee-880a-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0001",
"name": "Starter plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 20,
"max_file_size": 31457280,
"price_divide_100": 1,
"base_token": 1000000,
"bonus_token": 500000,
"days_of_valid": 7,
"paypal_plan_id": "P-5EX69960EW4366836MU3XT4I"
},
"status": "2",
"external_order_id": "57690683V70092649",
"amount": 600,
"amount_divide_100": 6,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-18T13:53:35",
"updated_at": "2023-10-18T13:53:35"
},
{
"id": "81",
"uuid": "ca661e4c-6d0c-11ee-880a-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0003",
"name": "Premium plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 999999999999,
"max_file_size": 104857600,
"price_divide_100": 1,
"base_token": 17000000,
"bonus_token": 17000000,
"days_of_valid": 7,
"paypal_plan_id": "P-46D85280R0580670XMU6ME5Q"
},
"status": "2",
"external_order_id": "51L17067FR3380308",
"amount": 10000,
"amount_divide_100": 100,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-17T16:46:59",
"updated_at": "2023-10-17T16:46:59"
},
{
"id": "80",
"uuid": "c22bda96-6d0c-11ee-880a-0a58a9feac02",
"user_id": "8",
"order_product": {
"id": "PP0003",
"name": "Premium plan",
"type": 1,
"max_quantity": 1,
"max_monthly_total_file": 999999999999,
"max_file_size": 104857600,
"price_divide_100": 1,
"base_token": 17000000,
"bonus_token": 17000000,
"days_of_valid": 7,
"paypal_plan_id": "P-46D85280R0580670XMU6ME5Q"
},
"status": "2",
"external_order_id": "1EJ049105R387750S",
"amount": 10000,
"amount_divide_100": 100,
"quantity": 1,
"type": "2",
"platform": "Paypal",
"created_at": "2023-10-17T16:46:45",
"updated_at": "2023-10-17T16:46:45"
}
]
}