---
title: "Get a purchase by reference"
method: GET
path: "/v1/sdk/purchases/{purchaseRef}"
tags: ["Purchases"]
---

# Get a purchase by reference

`GET /v1/sdk/purchases/{purchaseRef}`

Retrieves a single purchase including plan snapshot, usage, and billing details.

## Path parameters

- `purchaseRef` string, required

## Response `200`

Purchase retrieved successfully

- SdkPurchaseResponse
  - `amount` number, required — Amount in USD cents (normalised for aggregation)
  - `autoRenew` boolean — Auto-renew enabled
  - `billingCycle` 'weekly' | 'monthly' | 'quarterly' | 'yearly' — Billing cycle
  - `cancellationReason` string — Cancellation reason
  - `cancelledAt` string — Cancelled at
  - `createdAt` string, required — Created at
  - `currency` string, required — Original payment currency code
  - `customerEmail` string, required — Customer email
  - `customerRef` string, required — Customer reference
  - `endDate` string — End date
  - `exchangeRate` number — Exchange rate from original currency to USD
  - `isRecurring` boolean, required — Is recurring
  - `metadata` object — Arbitrary metadata attached to the purchase
  - `nextBillingDate` string — Next billing date
  - `originalAmount` number — Original amount in the payment currency (cents/pence)
  - `paidAt` string — Paid at timestamp
  - `planSnapshot` SdkPlanSnapshotDto
    - `billingCycle` string, nullable — Billing cycle
    - `creditsPerUnit` number — Credits per usage unit (integer, >= 1)
    - `currency` string, required — Currency code
    - `features` object, nullable — Plan features
    - `freeUnits` number — Number of free units included
    - `limit` number — Usage limit for the meter
    - `limits` object, nullable — Usage limits
    - `meterRef` string — Meter reference
    - `name` string — Plan name captured at purchase time
    - `planType` string, required — Plan type
    - `price` number, required — Plan price in cents
    - `reference` string — Plan reference
  - `productName` string — Product name
  - `productRef` string, required — Product reference
  - `reference` string, required — Purchase reference
  - `startDate` string, required — Start date
  - `status` string, required — Purchase status
  - `usage` UsageBillingDto
    - `overageCost` number, required — Overage cost in cents
    - `overageUnits` number, required — Units exceeding the plan limit
    - `periodEnd` string — Period end date
    - `periodStart` string — Period start date
    - `used` number, required — Units consumed in current period

## Other responses

- `404` — Purchase not found

---

[API](https://skmtc.net/solvapay/apis/solvapay-rest-api.md) · [All operations](https://skmtc.net/solvapay/apis/solvapay-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solvapay/solvapay-rest-api/versions/bbc2ff2bc849/schema)
