For the complete documentation index, see llms.txt. This page is also available as Markdown.

Products

client.products.create(params)

// FIAT product (USD pricing, converted at checkout)
const product = await client.products.create({
  name: "Pro Plan",
  description: "Monthly subscription",
  price: 49.00,
  currency_type: "FIAT",
});

// CRYPTO product (fixed token amount)
const nftPass = await client.products.create({
  name: "NFT Pass",
  price: 1.00,
  currency_type: "CRYPTO",
  token: "USDC",
  network: "BASE",
});

console.log(product.share_link);
// => "https://pay.byastra.ai/products/b2c3d4e5"

client.products.list()


client.products.get(id)


client.products.update(id, params)


client.products.delete(id)

Last updated