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.
Filter by the invoice type.
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.
Filter by the Status.
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.
The sort order to sort. By default, the value is Descending.
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
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
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.
The user has exceeded the rate limit.
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": [
{
"id": "sApKpllz4sAplsmzha",
"user": {
"id": "Plamxinzg18snza",
"code": "EXAMPLE",
"avatar": "https://www.gravatar.com/avatar/205e460b479e2e5b48aec07710c08d50",
"packageId": "1Plamxinzg18snza",
"packageCode": "PACKAGE",
"emailAddress": "[email protected]",
"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",
"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-07-17T07:34:48.3555192Z",
"invoiceDate": "2025-07-15T07:34:48.3555206Z",
"dueDate": null,
"overdueDate": "2025-08-14T07:34:48.3555207Z",
"billingPeriodStartDate": null,
"billingPeriodEndDate": null,
"status": "Paid",
"testMode": false
}
],
"totalItems": 1,
"pageNumber": 0,
"pageSize": 10
},
"errors": []
}
Last updated
Was this helpful?