---
title: "Retrieve the order associated to the payment session"
method: GET
path: "/payment_sessions/{paymentSessionId}/order"
tags: ["has_one", "orders"]
---

# Retrieve the order associated to the payment session

`GET /payment_sessions/{paymentSessionId}/order`

## Request

- Base URL: `https://{your_organization_slug}.commercelayer.io/api`
- URL: `https://{your_organization_slug}.commercelayer.io/api/payment_sessions/{paymentSessionId}/order`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/commercelayer/apis/commerce-layer-api/docs/payment_sessions/:paymentSessionId/order/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve the order associated to the payment session

## Path parameters

- `paymentSessionId` string, required

## Response `200`

The order associated to the payment session

## Changes

- **2026-11-10** `c0599144bd79`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/commercelayer/apis/commerce-layer-api/changes/payment_sessions/:paymentSessionId/order/get.md)

---

[API](https://skmtc.dev/commercelayer/apis/commerce-layer-api.md) - [All operations](https://skmtc.dev/commercelayer/apis/commerce-layer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/commercelayer/apis/commerce-layer-api/revisions/c0599144bd79?raw)
