import CheckoutIntents from 'checkout-intents';const client = new CheckoutIntents({ apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted});const checkoutIntent = await client.checkoutIntents.retrieve('id');console.log(checkoutIntent);
Returns checkout intent information if the lookup succeeds.
GET
/
api
/
v1
/
checkout-intents
/
{id}
JavaScript
Copy
Ask AI
import CheckoutIntents from 'checkout-intents';const client = new CheckoutIntents({ apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted});const checkoutIntent = await client.checkoutIntents.retrieve('id');console.log(checkoutIntent);