buy_url. Create the button in the merchant portal first.expires_in_seconds). Create a new session for each customer visit.metadata is attached to the resulting checkout and returned on checkout responses and webhooks undermeta_data.embed.signed. Trust only signed; meta_data.embed.client comes from the browser.{"detail"} without error_code.curl --location '/api/v1/merchants/checkout-buttons/5b2c7e1a-3d4f-4a6b-9c8d-0e1f2a3b4c5d/embed-session' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"metadata": {
"order_id": "ORD-7842",
"plan": "pro",
"seats": 5
}
}'{
"data": {
"buy_url": "https://app.kutanaafrica.com/public/buy/5b2c7e1a-3d4f-4a6b-9c8d-0e1f2a3b4c5d?embed=Xq3v9TzL0bN2kR7sW4yH8mJ1cF6dA5eG0pU3iO2nV9w",
"embed_token": "Xq3v9TzL0bN2kR7sW4yH8mJ1cF6dA5eG0pU3iO2nV9w",
"expires_in_seconds": 900
},
"message": "Embed session created",
"status": "success"
}