---
title: "Get one of the current buyer's membership purchases"
method: POST
path: "/account/membership/purchases/{id}/detail"
tags: ["Membership"]
---

# Get one of the current buyer's membership purchases

`POST /account/membership/purchases/{id}/detail`

## Request

- Base URL: `https://api.session.services`
- URL: `https://api.session.services/account/membership/purchases/{id}/detail`
- Auth: API key in header `x-tenant-id`

Returns the purchase and, once payment is confirmed, the membership pass with its member number.

## Path parameters

- `id` string, required

## Response `200`

OK

- object
  - `purchase` object, required: A checkout attempt for a membership program
    - `id` string, required: Membership purchase ID
    - `programId` string, required
    - `teamId` string, required
    - `state` 'PENDING' | 'COMPLETED' | 'DUPLICATE', required: PENDING until the provider confirms payment. DUPLICATE means a payment arrived for a user who already held an active pass and needs a manual refund.
    - `price` integer, required
    - `currency` string, required
    - `termsUrl` string, uri, required
    - `expiresAt` string, date-time, required: When the provider abandons an unpaid attempt
    - `passId` string
  - `pass` object: A durable membership owned by one user
    - `id` string, required: Membership pass ID
    - `programId` string, required
    - `teamId` string, required
    - `userId` string, required
    - `memberNumber` integer, required: Sequential number identifying the pass within its program. The first pass receives 200.
    - `state` 'ACTIVE' | 'SUSPENDED' | 'INACTIVE', required
    - `active` boolean, required: True while the pass is ACTIVE and its paid term has not ended
    - `paidThrough` string, date-time, required: End of the latest paid annual term
    - `cancelAt` string, date-time: Present when renewal is scheduled to stop. Benefits continue until paidThrough.
    - `complimentary` boolean, required: True while the current term was granted by staff for free. It never renews; a paidThrough of MEMBERSHIP_NO_END means it has no end date.
    - `createdAt` string, date-time, required

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403
- `404`: 404
- `409`: 409
- `412`: 412
- `422`: 422
- `429`: 429
- `500`: 500
- `501`: 501
- `503`: 503

## Changes

- **2026-11-09** `38649d1c1ac7`: 1 warning
  - for the `path` request parameter `id`, the maxLength was set to `128`
- **2026-11-09** `24b4e38e7054`: 9 breaking
  - the `purchase/currency` response property's maxLength was unset from `3` for the response status `200`
  - the `purchase/currency` response property's minLength was decreased from `3` to `0` for the response status `200`
  - the `pass/cancelAt` response's property format changed from `date-time` to no format for status `200`
  - the `pass/createdAt` response's property format changed from `date-time` to no format for status `200`
  - …5 more
- **2026-09-26** `b06650f199b3`: 1 info
  - added the required property `pass/complimentary` to the response with the `200` status
- **2026-09-21** `ec5d8889f2d0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/session/apis/session-services-api/changes/account/membership/purchases/:id/detail/post.md)

---

[API](https://skmtc.dev/session/apis/session-services-api.md) - [All operations](https://skmtc.dev/session/apis/session-services-api/llms.txt) - [OpenAPI document](https://skmtc.dev/session/apis/session-services-api/revisions/9346dc3eea56?raw)
