This query used to get Invoice Events
Sample Query
subscription {
getInvoiceEvents(
orgId: "d086ea16-d40d-454c-84a4-64b5e940670a"
dropID: "57bc6c9a-788b-4e60-83ff-a69aca3496ad"
method: [CREATED, EXPIRED, CANCELLED, PROCESSING, COMPLETED]
) {
lotID
type
onChain
offChain
date
tax
units
token {
id
name
metadataArweaveTxId
metadataArweaveTxLink
onChainId
ethereumTxId
}
availableQuantity
totalQuantity
status
}
}
Sample Response
{
"data": {
"getInvoiceEvents": {
"lotID": "8fb128bd-f55d-4bcc-8b6c-0beb684e4d4e",
"onChain":false,
"offChain":true,
"tax":0.2,
"units":1,
"token":{
"id":"d086ea16-d40d-454c-84a4-64b5e940670a",
"name":Nansen21",
"metadataArweaveTxId":"2xlLWT9N-UIi1tqb-ClW1WZxbMh-8hJyBizbsJ3_pXc",
"metadataArweaveTxLink":"rH8GwJYOM7PpBWy5wuzSJd2MdvqvowxGyMvQrkklx9M",
"onChainId":1,
"ethereumTxId":"0x042603fb559f41b7a11bb543a4c7cae3b22c725f42568f1e0b2536edcbb15980"
}
"availableQuantity": 4,
"totalQuantity":5,
}
}
}
Authorization Required
Name | Type | Description | Required |
---|---|---|---|
orgId | UUID1 | The organiztion Id. | Yes |
dropID | UUID1 | The Drop ID | No |
lotID | UUID1 | The Lot ID | No |
method | invoiceEventMethods | Subscription Events | Yes |