Erstellt eine kurze Checkout-URL mit einem benutzerdefinierten Slug für ein Produkt. Verwendet im Hintergrund eine statische Checkout-URL.
POST
/
products
/
{id}
/
short_links
JavaScript
Kopieren
KI fragen
import DodoPayments from 'dodopayments';const client = new DodoPayments({ bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted});const shortLink = await client.products.shortLinks.create('id', { slug: 'slug' });console.log(shortLink.full_url);
import DodoPayments from 'dodopayments';const client = new DodoPayments({ bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted});const shortLink = await client.products.shortLinks.create('id', { slug: 'slug' });console.log(shortLink.full_url);