Checkout
The checkout page reads this to draw the session's product, price and quantity. The merchant's metadata is never returned here.
publishableKeyX-Sorai-Key<token>A store's publishable key, spk_….
id*stringStore id. Must match a store-scoped key.
uuidtoken*stringThe session parameter from the checkout link.
The session.
application/jsonproduct_id*stringuuidprice_id*stringuuidquantity*integerbuyer_email*stringPrefills the email field; empty when the merchant set none.
allow_discount_codes*booleanFalse hides the discount code field; the checkout refuses a code.
expires_at*stringdate-timestatus*stringcompleted once an order from this link was paid; the link
then takes no further payment.
"open""expired""completed"curl -X GET 'https://api.sorai.ai/v1/public/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/checkout-sessions/string'{ "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1", "price_id": "5eff5d89-979e-4e4f-aa76-6cbbbf11362c", "quantity": 0, "buyer_email": "string", "allow_discount_codes": true, "expires_at": "2019-08-24T14:15:22Z", "status": "open"}