Create / Update Booking [EXPERIENCE]
Booking NFT Creation Request
const URI = "https://staging-api.takyon.io/v2"
const nftdata =
{
"collectionId": "ce2bb8e9-ffde-4138-bc3a-bb00b879e9ec", // or your internal ID
"owner": "[email protected]",
"originalPrice": 599,
"images": [
"https://www.yourhosting.com/image.png",
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADHQA...",
],
"lockDate": "2023-02-14T22:59:00.000Z",
"guests": [
{
"firstName": "Dora",
"secondName": "Explorer",
"email": "[email protected]"
},
{
"firstName": "Indiana",
"secondName": "Jones",
"email": "[email protected]"
}
],
"lang": "en",
"webhook": "https://your-webhook.com/",
"payload": {
"type": "experience",
"reference": "x123456",
"category": "Tour in gondola", // Tour in gondola, Surfskate, Wakesurf, Snowshuttle, Enogastronomia, Com'è fatto, Chef experience, A caccia del bello, Amore, Natura, Adrenalina, Artisti e artigiani, Benessere, VIP
"date": "2023-02-14T23:00:00.000Z",
"duration": "experience duration",
"participants": "number of participants",
"description": "experience description",
"tour": [
{
"step": 1,
"name": "Meeting with the host",
"location": {"label": "via Roma 37, Milano 20147"},
"date": "2023-02-14T10:00:00.000Z",
},
{
"step": 2,
"name": "Looking at the sunset",
"location": {"label": "via Napoli 56, Milano 20147"},
"date": "2023-02-14T18:00:00.000Z",
}
],
"hostName": "host name",
"hostDescription": "host description",
"extra": "Write here what's included in the experience",
}
}
const apikey = "1fed1306-3645-42d0-97d5-a39afa3195fa";
(async () => {
const rawRes = await fetch(URI + "/nft", {
method: "post",
headers: {
"Content-Type": "application/json",
API_KEY: apikey,
},
body: JSON.stringify(nftdata),
});
const res = await rawRes.json();
console.log(JSON.stringify(res));
})();PARAMETER
DESCRIPTION
TYPE
REQUIRED
Update an existent booking
Last updated