Javascript
import CheckoutIntents from 'checkout-intents'; const client = new CheckoutIntents({ apiKey: 'My API Key', }); const checkoutIntent = await client.checkoutIntents.retrieve('id'); console.log(checkoutIntent);
{ "variantSelections": [ { "value": "Small, Red, XS, L, etc.", "label": "Size, Color, etc." } ], "buyer": { "postalCode": "10001", "country": "United States", "province": "NY", "city": "New York", "address2": "Apt 1", "address1": "123 Main St", "phone": "+1234567890", "email": "john.doe@example.com", "lastName": "Doe", "firstName": "John" }, "quantity": 123, "productUrl": "<string>", "createdAt": "2023-11-07T05:31:56Z", "id": "<string>", "state": "retrieving_offer" }
Retrieve a checkout intent by id
Returns checkout intent information if the lookup succeeds.
Rye API key
The id of the checkout intent to look up
Checkout intent information
Show child attributes
retrieving_offer
Was this page helpful?