[Authenticated] This Query fetches the claimed status and nft information against invoice ID using the API getInvoiceDetails{}
General Pattern
query {
getInvoiceDetails(invoiceID: "UUID1") {
InvoiceDetails
}
}
Sample Variables
{
"invoiceID": "53b65864-436a-48a7-b12e-f8da316ca0f7"
}
Sample Query
query getInvoiceDetails($invoiceID: UUID1!) {
getInvoiceDetails(invoiceID: $invoiceID) {
invoiceID
invoiceNumber
internalUserID
userName
status
items {
collectionTitle
collectionItemTitle
collectionItemImage
collectionItemDescription
transactionHash
transactionStatus
nftDetails {
title
description
onChainId
contractAddress
balance
metadataJSON
networkId
networkChainID
tokenMetadata {
name
description
image
}
}
}
}
}
Sample Response 1
{
"data": {
"getInvoiceDetails": {
"invoiceID": "53b65864-436a-48a7-b12e-f8da316ca0f7",
"invoiceNumber": 41003,
"internalUserID": "140cfe2d-e83a-4e6a-be0a-0098f6636da0",
"userName": "4a0c5b84-44ad-4881-b2f9-74d8101c5de4",
"status": "Paid",
"items": [
{
"collectionTitle": "Mercedes Claim Drops",
"collectionItemTitle": "Benz Claimable Sale",
"collectionItemImage": "https://storage.googleapis.com/mojito-prod-public/organizations/d4191c0a-8020-4a6a-bdb9-461d92b8c2de/images/e102a987-9484-4954-a193-e69db9f3c8d6.jpg?z=1",
"collectionItemDescription": "Benz Claimable Sale - Exclusive items from Benz",
"transactionHash": "0x9b97bf8b458d4e48406b7611fd555122674fa5b957b3c8c1bfb4d4af62c1b734",
"transactionStatus": "Processing",
"nftDetails": {
"title": null,
"description": null,
"onChainId": null,
"contractAddress": "0x46c5660bfd170532593c1e99cceaea33c83ec670",
"balance": null,
"metadataJSON": null,
"tokenMetadata": null,
"networkId": "9ca86d5b-60a5-416f-ac37-7b209653dbed",
"networkChainID": 11155111
}
}
]
}
}
}
Sample Response 2
{
"data": {
"getInvoiceDetails": {
"invoiceID": "53b65864-436a-48a7-b12e-f8da316ca0f7",
"invoiceNumber": 41003,
"internalUserID": "140cfe2d-e83a-4e6a-be0a-0098f6636da0",
"userName": "4a0c5b84-44ad-4881-b2f9-74d8101c5de4",
"status": "Paid",
"items": [
{
"collectionTitle": "Mercedes Claim Drops",
"collectionItemTitle": "Benz Claimable Sale",
"collectionItemImage": "https://storage.googleapis.com/mojito-prod-public/organizations/d4191c0a-8020-4a6a-bdb9-461d92b8c2de/images/e102a987-9484-4954-a193-e69db9f3c8d6.jpg?z=1",
"collectionItemDescription": "Benz Claimable Sale - Exclusive items from Benz",
"transactionHash": "0x9b97bf8b458d4e48406b7611fd555122674fa5b957b3c8c1bfb4d4af62c1b734",
"transactionStatus": "Delivered",
"nftDetails": {
"title": "Benz Collectible - Exclusive Access",
"description": "Benz Collectible - Exclusive Access for claiming your favourite set of NFT from Benz",
"onChainId": "7",
"contractAddress": "0x46c5660bfd170532593c1e99cceaea33c83ec670",
"balance": "",
"metadataJSON": "{\"name\":\"Benz Collectible - Exclusive Access\",\"description\":\"Benz Collectible - Exclusive Access for claiming your favourite set of NFT from Benz\",\"image\":\"https://gateway.arweave.net/IUFJb6V3Ll1cahKYCt3SZ1iuY1uysPy0-uhh7bK3aoA\"}",
"tokenMetadata": {
"name": "Benz Collectible - Exclusive Access",
"description": "Benz Collectible - Exclusive Access for claiming your favourite set of NFT from Benz",
"image": "https://gateway.arweave.net/IUFJb6V3Ll1cahKYCt3SZ1iuY1uysPy0-uhh7bK3aoA"
},
"networkId": "9ca86d5b-60a5-416f-ac37-7b209653dbed",
"networkChainID": 11155111
}
}
]
}
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
invoiceID | UUID1 | This invoice ID is the unique reference id generated when the earnable api is hit | Yes |
Field
Name | Type | Description |
---|---|---|
InvoiceDetails | Object | Contains the all information from InvoiceDetails |