---
title: "Retrieve a sale"
method: GET
path: "/v1/sales/{id}"
tags: ["Sales"]
---

# Retrieve a sale

`GET /v1/sales/{id}`

## Request

- Base URL: `https://api.affiliaterail.com`
- URL: `https://api.affiliaterail.com/v1/sales/{id}`
- Auth: HTTP bearer

**Scope:** `read`

## Path parameters

- `id` string, required: Prefixed id (`sale_…`)

## Query parameters

- `expand[]` union: Relations to embed: partner, customer
  - string
  - string[]
- `include[]` union: Nothing to include on this resource
  - string
  - string[]

## Response `200`

The sale

- Sale
  - `id` string, required: Prefixed id (`sale_…`)
  - `object` 'sale', required
  - `program_id` string, required: Prefixed id (`prg_…`)
  - `customer_id` string, required: Prefixed id (`cus_…`)
  - `partner_id` string, required: Prefixed id (`part_…`)
  - `external_charge_id` string, required
  - `external_payment_intent_id` string, nullable, required
  - `processor` 'stripe' | 'paddle' | 'chargebee' | 'manual' | 'api', required
  - `amount_minor` integer, required: Integer minor units (cents, pence). Never a float, never a string.
  - `tax_minor` integer, nullable, required: Integer minor units (cents, pence). Never a float, never a string.
  - `currency` string, required: ISO-4217
  - `billing_type` 'one_time' | 'subscription', required
  - `interval` 'day' | 'week' | 'month' | 'year' | 'null', nullable, required
  - `product_id` string, nullable, required
  - `product_name` string, nullable, required
  - `is_first_sale` boolean, required
  - `occurred_at` string, date-time, required: ISO-8601, UTC
  - `refunded_at` string, date-time, nullable, required: ISO-8601, UTC
  - `metadata` object, nullable, required: Your own key/value data, stored as given
  - `created_at` string, date-time, required: ISO-8601, UTC
  - `updated_at` string, date-time, required: ISO-8601, UTC

## Other responses

- `400`: Invalid request
- `401`: Missing or unknown API key
- `403`: Key lacks the required scope
- `404`: No such object in your organization
- `422`: The request was understood and refused
- `429`: Rate limited: see Retry-After

---

[API](https://skmtc.dev/affiliaterail/apis/affiliaterail-api.md) · [All operations](https://skmtc.dev/affiliaterail/apis/affiliaterail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/affiliaterail/apis/affiliaterail-api/revisions/ea41f345c092?raw)
