Checkout
The store's checkout form, with the order-bump product's name and prices filled in.
publishableKeyX-Sorai-Key<token>A store's publishable key, spk_….
id*stringStore id. Must match a store-scoped key.
uuidproduct_id?stringWhat the buyer is buying. The order bump resolves through that product's own setting when it has one; leave it off to get the store's.
uuidThe form.
application/jsonThe store's checkout form, with the order bump resolved for the product being bought. The post-payment offer is not here: it is settled when the order is created and read back from the order.
fields*array<>bump?bump_scope?stringWhich setting served the order bump - the bought product's own, or the store's.
"product""store"success_action*string"page""redirect""whatsapp"success_target*stringcurl -X GET 'https://api.sorai.ai/v1/public/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/checkout-form'{ "fields": [ { "key": "string", "label": "string", "type": "text", "required": true, "options": [ "string" ] } ], "bump": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "prices": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "currency": "str", "amount_minor": 0, "pay_what_you_want": true, "min_minor": 0 } ] }, "bump_scope": "product", "success_action": "page", "success_target": "string"}