getMyInvoices

This query retrieves invoices that are owned by a user.

General Pattern

query{
    getMyInvoices{
    field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample Query

query{
  getMyInvoices{
    invoiceID
    invoiceNumber
    invoiceCreatedAt
    externalUserID
    internalUserID
    items{
      collectionItemID
      collectionTitle
      collectionItemTitle
      destinationAddress
    }
    status
    paymentID
    externalPaymentID
  }
}

Sample Response

{
  "data": {
    "getMyInvoices": [
      {
        "invoiceID": "378ea7aa-9638-46e2-a4d0-0592644af12a",
        "invoiceNumber": 795,
        "invoiceCreatedAt": "2022-03-10T03:17:11Z",
        "externalUserID": "",
        "internalUserID": "196f2a18-30d8-4781-a372-83cdc966004f",
        "items": [
          {
            "collectionItemID": "62d523a1-978c-48d9-b371-fd8e20da0e15",
            "collectionTitle": "",
            "collectionItemTitle": "LFC Heroes",
            "destinationAddress": ""
          }
        ],
        "status": "Pending",
        "paymentID": "00000000-0000-0000-0000-000000000000",
        "externalPaymentID": ""
      },
      {
        "invoiceID": "1c7fc10d-2dbe-4451-9669-28c5078e22e8",
        "invoiceNumber": 748,
        "invoiceCreatedAt": "2022-03-09T17:45:06Z",
        "externalUserID": "",
        "internalUserID": "196f2a18-30d8-4781-a372-83cdc966004f",
        "items": [
          {
            "collectionItemID": "62d523a1-978c-48d9-b371-fd8e20da0e15",
            "collectionTitle": "",
            "collectionItemTitle": "LFC Heroes",
            "destinationAddress": ""
          }
        ],
        "status": "Canceled",
        "paymentID": "00000000-0000-0000-0000-000000000000",
        "externalPaymentID": ""
      },
      {
        "invoiceID": "913d452f-125f-49ab-b91e-942e01c6889a",
        "invoiceNumber": 739,
        "invoiceCreatedAt": "2022-03-09T16:23:03Z",
        "externalUserID": "",
        "internalUserID": "196f2a18-30d8-4781-a372-83cdc966004f",
        "items": [
          {
            "collectionItemID": "62d523a1-978c-48d9-b371-fd8e20da0e15",
            "collectionTitle": "",
            "collectionItemTitle": "LFC Heroes",
            "destinationAddress": ""
          }
        ],
        "status": "Canceled",
        "paymentID": "00000000-0000-0000-0000-000000000000",
        "externalPaymentID": ""
      },
      {
        "invoiceID": "78be8874-179e-48bc-bc07-4ffb853868bb",
        "invoiceNumber": 738,
        "invoiceCreatedAt": "2022-03-09T16:16:35Z",
        "externalUserID": "",
        "internalUserID": "196f2a18-30d8-4781-a372-83cdc966004f",
        "items": [
          {
            "collectionItemID": "62d523a1-978c-48d9-b371-fd8e20da0e15",
            "collectionTitle": "",
            "collectionItemTitle": "LFC Heroes",
            "destinationAddress": ""
          }
        ],
        "status": "Pending",
        "paymentID": "00000000-0000-0000-0000-000000000000",
        "externalPaymentID": ""
      },
      {
        "invoiceID": "af7649f8-5c6e-4de4-b688-20a97b316726",
        "invoiceNumber": 737,
        "invoiceCreatedAt": "2022-03-09T16:13:22Z",
        "externalUserID": "",
        "internalUserID": "196f2a18-30d8-4781-a372-83cdc966004f",
        "items": [
          {
            "collectionItemID": "62d523a1-978c-48d9-b371-fd8e20da0e15",
            "collectionTitle": "",
            "collectionItemTitle": "LFC Heroes",
            "destinationAddress": "0xAc14D1dd976B5FE763d50a6e5fDfF0675431AD0F"
          }
        ],
        "status": "Paid",
        "paymentID": "00000000-0000-0000-0000-000000000000",
        "externalPaymentID": ""
      }
    ]
  }
}

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 with basic information: