getInvoicesDetails

This query retrieves invoice details by ID. This is currently used by microservice.

General Pattern

query{
    getInvoicesDetails(invoiceID: "UUID1"){
    field_1
    field_2 {
       nested_field_1
       ...
    }
  }
}

Sample Query

query{
  getInvoiceDetails(invoiceID:"7871ac88-15e3-4899-a336-0dbc13c9c5c9"){
    userName
    invoiceID
    invoiceNumber
    invoiceCreatedAt
    externalPaymentID
    externalUserID
    internalUserID
    items{
      invoiceItemID
      collectionItemID
      collectionTitle
      collectionItemTitle
      destinationAddress
      units
      unitPrice
      buyersPremium
      overheadPremium
      totalPrice
      saleDate
      taxes
      salesTaxRate
    }
    status
    paymentID
  }
}

Sample response

{
  "data": {
    "getInvoiceDetails": {
      "userName": "demobidder1",
      "invoiceID": "7871ac88-15e3-4899-a336-0dbc13c9c5c9",
      "invoiceNumber": 6983,
      "invoiceCreatedAt": "2022-05-10T16:37:22Z",
      "externalPaymentID": "",
      "externalUserID": "auth0|5e1cd5d367ed990e88f647f3",
      "internalUserID": "196f2a18-30d8-4781-a372-83cdc966004f",
      "items": [
        {
          "invoiceItemID": "30d256e4-7a27-4657-8426-79e0d6a7bdb3",
          "collectionItemID": "62d523a1-978c-48d9-b371-fd8e20da0e15",
          "collectionTitle": "LFC Heroes Club",
          "collectionItemTitle": "LFC Heroes",
          "destinationAddress": "",
          "units": 33,
          "unitPrice": 75,
          "buyersPremium": 0,
          "overheadPremium": 0,
          "totalPrice": 2475,
          "saleDate": "2022-05-10T16:37:22Z",
          "taxes": 0,
          "salesTaxRate": 0
        }
      ],
      "status": "Expired",
      "paymentID": "00000000-0000-0000-0000-000000000000"
    }
  }
}

Arguments

Name

Type

Description

Required

invoiceID

UUID1

The invoice 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 the invoice detail using invoice ID: