Quote a product over x402 using query params
Same handler as x402Buy with the createOrder body supplied as query params (email, product_type, product_id, item_id, quantity, account_number, amount). Handy for a quick 402 quote from a plain GET. Add x402_version=1 for a legacy v1 quote. With no params at all it still answers 402, quoting the rail's floor with no order attached.
get/api/v1/buy
Request
- Base URL: https://kodshop.cloud
- URL: https://kodshop.cloud/api/v1/buy
- Auth: none declared
Query parameters
emailstring email required
product_type'giftcard' | 'topup' | 'esim' | 'phone_rental' required
product_idinteger
item_idinteger
x402_version'1' | '2'
Protocol version to quote in. Defaults to 2.
Headers
PAYMENT-SIGNATUREstring
X-PAYMENTstring
Response
Paid and fulfilled
Changes
No recorded changes to this operation across all 1 revision of this API.