---
search:
  tags:
    - checkoutSessions
    - GET
seo:
  description: >-
    Reference for the GET /v1/checkout/sessions/{checkoutSessionId} endpoint in
    the Vortex Payments API.
sidebar:
  label: GET /v1/checkout/sessions/{checkoutSessionId}
  badge: GET
title: GET /v1/checkout/sessions/{checkoutSessionId}
type: openapi-operation
---
`GET /v1/checkout/sessions/{checkoutSessionId}`

**curl**

```bash
curl "https://api.vortex.nyc/v1/checkout/sessions/{checkoutSessionId}?environment=sandbox&merchantAccountId=..." \
  -X GET \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
```

**TypeScript**

```ts
import { getCheckoutSession, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await getCheckoutSession({
  client: vortex,
  path: { checkoutSessionId: "..." },
  query: { environment: "sandbox", merchantAccountId: "..." },
});
```

**Responses**

- `200` — Success

Response example, 200:

```json
{
  "data": {
    "checkoutSessionId": "string",
    "paymentRequestId": "string",
    "checkoutUrl": "string",
    "token": "string",
    "mode": "payment",
    "status": "open",
    "customerId": "string",
    "customerExternalId": "string",
    "billingAccountId": "string",
    "currency": "string",
    "amountTotal": 0,
    "amountRemaining": 0,
    "invoiceNumbers": [
      "string"
    ],
    "expiresAt": "string",
    "createdAt": "string",
    "subscriptionId": "string",
    "externalCustomerRef": "string",
    "successUrl": "string",
    "cancelUrl": "string",
    "returnUrl": "string",
    "paymentMethodId": "string",
    "customerEmail": "string",
    "billingAddressCollection": "auto"
  },
  "requestId": "string"
}
```
