Get invoices
The id of the user. If the user is not provided, it will be the current user.
The package id.
Filter by the subscription type id.
Provides the constants for the type of the invoice entity. See Link: https://docs.jframework.io/lap-trinh/thiet-ke-database/phan-loai-theo-logic/logic-tables/payment-financial-tables/invoice/hang-so
Filter by the invoice code.
Filter by the invoice name.
Filter by the invoice description.
Filter by the invoice notes.
Filter by the invoice tags.
Filter by the invoice status.
Filter by the Delivery Instructions.
Filter by the Confirmed Delivery Date.
Filter by the Invoice Date.
Filter by the Due Date.
Provides the constants for the status of the invoice entity.
Filter by the Keywords.
Filter by the test mode. By default, it is false.
The sort data field to sort. By default, the value is ID.
Specifies the sorting order type for a collection.
The page number of the pagination. Default value is 0.
The page size of the pagination. Default value is 200.
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.
YOUR_AUTH_KEY
The request was successful.
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
API call exceeded rate limit due to too many requests.
GET /api/v1/invoices HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Accept: */*
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"items": [
{
"currencyCode": "USD",
"id": "sApKpllz4sAplsmzha",
"amountDue": 0,
"amountPaid": 99,
"totalAmount": 99,
"taxAmount": 9,
"taxRate": 0.1,
"discountAmount": 10,
"subtotalAmount": 100,
"discountRate": 0.1,
"user": {
"id": "Plamxinzg18snza",
"code": "EXAMPLE",
"avatar": "https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50",
"packageId": "1Plamxinzg18snza",
"packageCode": "PACKAGE",
"emailAddress": "[email protected]",
"phoneNumber": "+123456789",
"nickName": "example",
"roles": [
"admin",
"support"
]
},
"payment": {
"code": null,
"name": null,
"amountGross": 100,
"amountFee": 10,
"amountNet": 90,
"commission": 10,
"currencyCode": "USD",
"description": "Description",
"invoiceNo": "INV-001",
"paymentType": "PaymentType",
"paymentDate": "2025-09-19T04:20:20.3852403Z",
"notes": "Notes",
"status": "Completed",
"id": "sApKpllz4sAplsmzha"
},
"packageCode": "PACKAGE_ID",
"userAddressId": "USER_ADDRESS_ID",
"subscriptionTypeId": "SUBSCRIPTION_TYPE_ID",
"type": "Provisional",
"code": "INV-20240304",
"name": "Monthly Subscription",
"description": "Invoice for the monthly subscription package.",
"notes": "Payment due within 7 days.",
"tags": "subscription, monthly",
"reminderedCount": 1,
"deliveryInstructions": "Send via email",
"confirmedDeliveryDate": "2025-09-21T04:20:20.3852422Z",
"invoiceDate": "2025-09-19T04:20:20.3852426Z",
"dueDate": "2025-09-26T04:20:20.3852428Z",
"overdueDate": "2025-10-19T04:20:20.385243Z",
"billingPeriodStartDate": "2025-09-19T04:20:20.3852432Z",
"billingPeriodEndDate": "2025-10-19T04:20:20.3852432Z",
"status": "Paid",
"testMode": false,
"items": [
{
"id": "sApKpllz4sAplsmzha",
"name": "Premium - 30 days",
"quantity": 1,
"amount": 59,
"currencyCode": "USD"
}
]
}
],
"totalItems": 1,
"pageNumber": 0,
"pageSize": 10
},
"errors": []
}
Last updated
Was this helpful?