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 | 
|---|---|---|---|
| 
 | UUID1 | The organization ID. | Yes | 
| 
 | UUID1 | The user ID. | Yes | 
Fields
| Name | Type | Description | 
|---|---|---|
| Object | Contains all the information from  | 
Example
Load an invoice data based on the user ID:
