This query retrieves the invoices list for a given user. This can be called by an organization admin.
General Pattern
query{
getInvoicesByUserID(orgID: "UUID1", userID: "UUID1"){
field_1
field_2 {
nested_field_1
...
}
}
}
Sample Query
query{
getInvoicesByUserID(orgID: "a1dc174d-abf4-47d3-be3c-9281c6eba456", userID: "32d036c3-642b-488b-ba10-e82580d66bd7"){
invoiceID
invoiceCreatedAt
externalUserID
internalUserID
}
}
Sample Response
{
"data": {
"getInvoicesByUserID": []
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
orgID | UUID1 | The organization ID. | Yes |
userID | UUID1 | The user ID. | Yes |
Fields
Name | Type | Description |
---|---|---|
InvoiceDetails | Object | Contains all the information from InvoiceDetails such as the ID, the invoice ID, the invoice created ID, the external user ID, the internal user ID, and etc. |
Example
Load an invoice data based on the user ID: