Skip to main content
GET
/
v1
/
checkout
/
session
/
{id}
TypeScript SDK
import { Solifyn } from 'solifyn';

const solifyn = new Solifyn({ apiKey: 'your_private_api_key_here' });

// Retrieve checkout session details
const session = await solifyn.checkout.getSession('sess_019e56a1...');
console.log('Session Status:', session.status);
{
  "id": "ch_XXXXXXXXXXX",
  "price": 10,
  "currency": "USD",
  "storeName": "Official Store",
  "status": "pending",
  "billingAddress": {},
  "customFields": {},
  "session_id": "ch_XXXXXXXXX",
  "paymentId": "pay_XXXXXXXXX",
  "checkoutUrl": "https://solifyn.com/checkout/prod_XXXXXXXXX?checkout_id=019e56ba-9832-72ae-XXXXXXXXXXX",
  "product": {
    "id": "prod_9z8x7c6v5b4n",
    "name": "Enterprise SaaS Plan",
    "price": 99,
    "currency": "USD",
    "status": "ACTIVE",
    "imageUrl": "https://assets.solifyn.com/images/products/saas-enterprise.png",
    "taxCategory": "saas",
    "pricingType": "one_time",
    "discount": 0,
    "hasLicenseKey": true,
    "hasDigitalDelivery": false,
    "isTaxInclusive": false,
    "billingPeriod": null,
    "trialPeriodDays": null,
    "expirationDays": null,
    "statementDescriptor": "SOLIFYN*SAAS",
    "payWhatYouWant": false,
    "metadata": {
      "tier": "enterprise",
      "department": "engineering"
    },
    "customFields": [
      {
        "id": "57aa2241-eae4-43dc-b9ae-36069b84b2da",
        "name": "Discord Username",
        "order": 0,
        "required": true,
        "field_type": "text",
        "placeholder": "e.g. your_discord#1234"
      },
      {
        "id": "c86da32a-a967-457c-815b-c3440294d70b",
        "name": "Company Name",
        "order": 1,
        "required": false,
        "field_type": "text",
        "placeholder": "e.g. Acme Corp (Optional)"
      }
    ],
    "stock": null,
    "activationLimit": 5,
    "isListed": true,
    "isFree": false,
    "createdAt": "2026-05-18T12:00:00.000Z",
    "updatedAt": "2026-05-18T12:00:00.000Z",
    "isPermanentlyDeleted": false,
    "brandId": "brd_4e29285b8sdf34ff51e07d4",
    "digitalLink": null,
    "instructions": "Log in to your Solifyn developer dashboard and enter your license key to activate the premium SaaS resources.",
    "activationMessage": "Activation successful. Welcome to the Solifyn Enterprise Plan!",
    "expiryHours": 8760,
    "businessId": "biz_4r5t6y7u8i9o",
    "description": "Unlock premium API integration, custom webhooks, dedicated server bandwidth, and priority 24/7 business-critical support tiers."
  }
}

Path Parameters

id
string
required

Internal database checkout session ID

Example:

"ch_XXXXXXXXXXX"

Response

200 - application/json

Checkout session details resolved.

id
string
required

Checkout session identifier

Example:

"ch_XXXXXXXXXXX"

price
number
required

Total purchase amount

Example:

10

currency
string
required

ISO currency code of the purchase

Example:

"USD"

storeName
string
required

Title or name of the merchant/store selling the item

Example:

"Official Store"

status
string
required

Current status of the checkout session

Example:

"pending"

billingAddress
object

Customer billing address details

customFields
object

Custom fields collected during purchase

session_id
string

The payment partner session ID

Example:

"ch_XXXXXXXXX"

paymentId
string

Database payment transaction ID

Example:

"pay_XXXXXXXXX"

checkoutUrl
string

Checkout session redirect URL if loaded in link mode

Example:

"https://solifyn.com/checkout/prod_XXXXXXXXX?checkout_id=019e56ba-9832-72ae-XXXXXXXXXXX"

product
object

The details of the product being purchased