Skip to main content

Retrieve a Checkout Session

Retrieve a CheckoutSession resource by ID.

A CheckoutSession can only be retrieved from the server side using a secret API key.


Endpoint​

GET /checkout_sessions/:id

Sample code​

const client = require('payrex-node')('insert your PayRex Secret API key.');

const checkoutSession = await client.checkoutSessions.retrieve('<ID of a CheckoutSession resource>');

Returns​

Returns a Checkout Session resource.