Retreive Booking Updates
A - Checking NFT Status & Ownership via GET Request
const URI = "https://staging-api.takyon.io/v2";
const nft_id = "503dda97-5a1b-4b17-a831-2f18a45c80ed"
const apikey = "1fed1306-3645-42d0-97d5-a39afa3195fa";
// SINGLE GET
(async () => {
const rawRes = await fetch(URI + "/nft/" + nft_id, {
headers: {
API_KEY: apikey,
},
});
const res = await rawRes.json();
console.log(res);
})();
// PAGINATION GET
(async () => {
const rawRes = await fetch(URI + "/nft/paginate" + '?page=1&size=5', {
headers: {
API_KEY: apikey,
},
});
const res = await rawRes.json();
console.log(res);
})();
// RESPONSE
{
...,
accessStatus: "OPEN" // OR "REDEEMED",
owner: "[email protected]",
guests: [
{
"firstName": "Cody",
"secondName": "Martin",
"email": "[email protected]"
},
...
]
}
B - Retrieving Events regarding the Booking in the Takyon Platform via Webhook
Decrypted Data
Key
Value Type
Description
Last updated