Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
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>" }
Order created.