Manage Checkout Session
Let's look at some of the features available for managing a checkout session. The endpoint list below demonstrates how various APIs can be used to manage checkout sessions.
The following are the checkout sessions API endpoints for creating, deactivating, updating, retrieving and retrieving a checkout session by payment ID.
- Create a checkout session → POST → /checkout-sessions
- Deactivate a checkout session → POST → /checkout-sessions/{id}/deactivate
- Update a checkout session→ POST→ /checkout-sessions/{id}
- Retrieve a checkout session→ GET→ /checkout-sessions/{id}
- Retrieve a checkout session by payment ID→ GET→ /checkout-sessions/payments/{id}
Request headers
As of now, there are two versions (2022-04-15 and 2022-10-15). Version 2022-10-15 supports both on-chain and lightning payment methods. Whereas the 2022-04-15 version only supports lightning payments. In this string header speed-version
, you can specify any version you want with all of the above APIs.
Updated 24 days ago