Create an order for an offer (redirect-based checkout, e.g. Stripe Checkout).
curl --request POST \
--url https://tryno.io/api/t/{handle}/pay/{slug}/order \
--header 'Content-Type: application/json' \
--data '
{
"couponCode": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({couponCode: '<string>'})
};
fetch('https://tryno.io/api/t/{handle}/pay/{slug}/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/t/{handle}/pay/{slug}/order"
payload = { "couponCode": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"amountCents": 123,
"amountCurrency": "<string>",
"status": "<string>"
}{
"error": "<string>"
}payments
Create an order for an offer (redirect-based checkout, e.g. Stripe Checkout).
POST
/
t
/
{handle}
/
pay
/
{slug}
/
order
Create an order for an offer (redirect-based checkout, e.g. Stripe Checkout).
curl --request POST \
--url https://tryno.io/api/t/{handle}/pay/{slug}/order \
--header 'Content-Type: application/json' \
--data '
{
"couponCode": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({couponCode: '<string>'})
};
fetch('https://tryno.io/api/t/{handle}/pay/{slug}/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/t/{handle}/pay/{slug}/order"
payload = { "couponCode": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"amountCents": 123,
"amountCurrency": "<string>",
"status": "<string>"
}{
"error": "<string>"
}
