Metafields
Information about an Event or Course created in Shopify Bookings is available via the bookings.metafieldsobject on the corresponding Shopify Product's Variant object.
Course (JSON)
{
"bookable_id":"4d4d9b8f-18fa-43a1-b132-dfefe9202adc",
"bookable_type":"Course",
"sessions":[
{
"starts_at":"2021-05-20T22:30:00.000Z",
"ends_at":"2021-05-21T01:30:00.000Z",
"resources":[
{
"given_name":"Nina",
"family_name":"Simone",
"formatted_name":"Nina Simone",
"avatar":"https://via.placeholder.com/150"
}
]
},
{
"starts_at":"2021-05-13T22:30:00.000Z",
"ends_at":"2021-05-14T01:30:00.000Z",
"resources":[
{
"given_name":"Nina",
"family_name":"Simone",
"formatted_name":"Nina Simone",
"avatar":"https://via.placeholder.com/150"
}
]
},
{
"starts_at":"2021-05-06T22:30:00.000Z",
"ends_at":"2021-05-07T01:30:00.000Z",
"resources":[
{
"given_name":"Nina",
"family_name":"Simone",
"formatted_name":"Nina Simone",
"avatar":"https://via.placeholder.com/150"
}
]
},
]
}Event (JSON)
Last updated
Was this helpful?