Skip to main content

Expire a CheckoutSession

Expire a CheckoutSession resource.


Endpoint

POST /checkout_sessions/:id/expire

Sample code

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

const checkoutSession = await client.checkoutSessions.expire(
// Checkout Sesssion ID to expire.
'<ID of a CheckoutSession resource>',
)

Returns

Returns a CheckoutSession resource.