Hi @ehsan thanks for the reply,
I may be incorrect but I believe the Hydrogen cart object from your link and AJAX API cart object from “/cart.js” have different properties at least from my own understanding and comparison.
Unless the “https://app.sesami.co/availabilities/verify-cart ” endpoint is able to accept different cart structure? If so may I know what are the crucial information this endpoint requires in order to verify the cart? Is it the sesami-experience attributes like “_reservation_token” attached to the cart lines?
Regardless, I tried to pass Hydrogen cart object as the request body, but all I could get was “400 Bad Request” error without additional information. I also tried the endpoint using Postman & Ngrok in case it was CORS but the result was still “400 Bad Request”.
The only problem Im suspecting is my cart properties which I’ll attach below in stringified format with my ‘x-sesami-origin’ header. May I please receive more guidance on this?
'x-sesami-origin': 'https://onehalf-coffee.myshopify.com'
“{\“updatedAt\”:\“2025-10-29T04:46:37Z\”,\“id\”:\“gid://shopify/Cart/hWN4f9HTzkHU47D2eTqxmFFs?key=392b6fac544e45ac6ffd5a4d1cd31bf4\”,\“checkoutUrl\”:\“https://account.onehalfcoffee.com/cart/c/hWN4f9HTzkHU47D2eTqxmFFs?key=uNAdoVyR2RlwHVKZbL6uNFz7vXvTbRVWd1DxZW2a6xFjHvRggdkdRJOsDhdgfMX4FKpiuXN4TA9n7Na-5Y40S9_R5wPl1cRpOlJg1BvdEKMRiHXEGWDoAb4d_PPpaGxkf36SfqSd2x2rhOW23Y5Hqg%3D%3D\",\“totalQuantity\”:1,\“buyerIdentity\”:{\“countryCode\”:\“MY\”,\“customer\”:{\“id\”:\“gid://shopify/Customer/8380622471381\”,\“email\”:\“jtyy1023@gmail.com\”,\“firstName\”:\“Test\”,\“lastName\”:\“Yang\”,\“displayName\”:\"Test Yang\”},\“email\”:null,\“phone\”:null},\“lines\”:{\“edges\”:[{\“node\”:{\“id\”:\“gid://shopify/CartLine/291dc19b-1a2e-4c1d-b4e0-23c71e206710?cart=hWN4f9HTzkHU47D2eTqxmFFs\”,\“quantity\”:1,\“attributes\”:[{\“key\”:\“Date\”,\“value\”:\“2025-10-29\”},{\“key\”:\“Time\”,\“value\”:\“13:00\”},{\“key\”:\“Timezone\”,\“value\”:\”\“},{\“key\”:\“Location\”,\“value\”:\”\“},{\“key\”:\”_reservation_token\“,\“value\”:\“NjkwMTljMjc0MGY0MGM5ZWE1MDY3M2M1\”},{\“key\”:\”_locale\“,\“value\”:\”\“},{\“key\”:\”_session-id\“,\“value\”:\“6v1j4118\”},{\“key\”:\“Resources\”,\“value\”:\”\“}],\“cost\”:{\“totalAmount\”:{\“currencyCode\”:\“MYR\”,\“amount\”:\“850.0\”},\“amountPerQuantity\”:{\“currencyCode\”:\“MYR\”,\“amount\”:\“1000.0\”},\“compareAtAmountPerQuantity\”:null},\“merchandise\”:{\“id\”:\“gid://shopify/ProductVariant/52255959777493\”,\“availableForSale\”:true,\“compareAtPrice\”:null,\“price\”:{\“currencyCode\”:\“MYR\”,\“amount\”:\“1000.0\”},\“requiresShipping\”:false,\“title\”:\“6 hours and 30 minutes\”,\“image\”:{\“id\”:\“gid://shopify/ProductImage/48620257870037\”,\“url\”:\“https://cdn.shopify.com/s/files/1/0699/1917/8965/files/DSCF9951_b40220f4-4548-4a55-8b52-90ee390866c8.jpg?v=1758613033\",\“altText\”:null,\“width\”:4160,\“height\”:6240},\“product\”:{\“handle\”:\“basic-brewer-course-1\”,\“title\”:\"Basic Brewer Course\”,\“id\”:\“gid://shopify/Product/9147379122389\”,\“vendor\”:\“One Half Coffee\”},\“selectedOptions\”:[{\“name\”:\“duration\”,\“value\”:\“6 hours and 30 minutes\”}]},\“sellingPlanAllocation\”:null}}]},\“cost\”:{\“subtotalAmount\”:{\“currencyCode\”:\“MYR\”,\“amount\”:\“850.0\”},\“totalAmount\”:{\“currencyCode\”:\“MYR\”,\“amount\”:\“850.0\”},\“totalDutyAmount\”:null,\“totalTaxAmount\”:null},\“note\”:\”\“,\“attributes\”:,\“discountCodes\”:}”