Show results for specified organization.
If this is not provided the user's individual subscription(s) will be returned.
GET
/user/v1/invoicesLists invoices.
curl https://api.userhub.com/user/v1/invoices?organizationId=org_28seyVGVL1got6 \
-H "UserHub-Api-Key: $USERHUB_USER_KEY" \
-H "Authorization: Bearer $USER_ACCESS_TOKEN"
const res = await userApi.invoices.list({
organizationId: "org_28seyVGVL1got6",
});
res, err := userApi.Invoices().List(
context.Background(),
&userapi.InvoiceListInput{
OrganizationId: "org_28seyVGVL1got6",
},
)
$res = $userApi->invoices->list(
organizationId: 'org_28seyVGVL1got6',
);
res = user_api.invoices.list(
organization_id="org_28seyVGVL1got6",
)
{
"invoices": [
{
"id": "in_4QPqKvtqkpJzP7",
"state": "OPEN",
"stateTime": null,
"number": "ACME-123",
"currencyCode": "USD",
"description": "This is a test.",
"account": {
"fullName": "Jane Doe",
"email": "[email protected]",
"phoneNumber": "+12125550123",
"address": {
"lines": [
"42 West St"
],
"city": "Brooklyn",
"state": "NY",
"postalCode": "11222",
"country": "US"
}
},
"effectiveTime": "2024-11-15T13:00:00Z",
"period": {
"startTime": "2024-11-15T13:00:00Z",
"endTime": "2024-11-15T13:00:00Z"
},
"subtotalAmount": "9",
"discountAmount": "1",
"balance": {
"startAmount": "100",
"endAmount": "200",
"appliedAmount": "-100"
},
"taxAmount": "2",
"dueAmount": "10",
"dueTime": "2024-11-15T13:00:00Z",
"paidAmount": "0",
"paymentIntent": null,
"items": [
{
"id": "ii_35kH3awC",
"product": null,
"price": null,
"quantity": 2,
"subtotalAmount": "10",
"discountAmount": "1",
"description": "This is a test item.",
"period": null
}
],
"changes": [],
"createTime": "2024-11-15T13:00:00Z",
"updateTime": "2024-11-15T13:00:00Z"
}
],
"nextPageToken": ""
}