---
title: "Get a purchase report by org. Roles: admin."
method: POST
path: "/api/memberships/{membershipId}/reports/purchases"
tags: ["Purchases", "Reports", "Organizations"]
---

# Get a purchase report by org. Roles: admin.

`POST /api/memberships/{membershipId}/reports/purchases`

## Path parameters

- `membershipId` integer, required

## Request body

- ReportCriteria
  - `startDate` string, date, required
  - `endDate` string, date, required
  - `audienceId` integer
  - `startDateTime` string, date-time
  - `endDateTime` string, date-time

## Response `200`

OK

- PurchaseReport
  - `criteria` ReportCriteria
    - `startDate` string, date, required
    - `endDate` string, date, required
    - `audienceId` integer
    - `startDateTime` string, date-time
    - `endDateTime` string, date-time
  - `totalCompletedPurchases` integer
  - `totalNetRevenue` CurrencyAndAmount[]
    - `currency` 'AED' | 'ARS' | 'AUD' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'EUR' | 'GBP' | 'INR' | 'JPY' | 'KRW' | 'MYR' | 'NZD' | 'PKR' | 'SGD' | 'USD' | 'ZAR'
    - `amount` integer
  - `productPurchases` ProductPurchaseRollup[]
    - `productId` integer
    - `productName` string
    - `productTypeCode` 'CERT' | 'COURSE' | 'EVENT'
    - `productCurrency` 'AED' | 'ARS' | 'AUD' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'EUR' | 'GBP' | 'INR' | 'JPY' | 'KRW' | 'MYR' | 'NZD' | 'PKR' | 'SGD' | 'USD' | 'ZAR'
    - `totalQuantity` integer
    - `totalBalance` integer

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

## Changes

- **2026-09-02** `870f28ba2607` — 5 info
  - added the optional property `error/errorId` to the response with the `400` status
  - added the optional property `error/errorId` to the response with the `401` status
  - added the optional property `error/errorId` to the response with the `403` status
  - added the optional property `error/errorId` to the response with the `404` status
  - …1 more

[Change history](https://skmtc.dev/mobilecoach/apis/untitled-api/changes/api/memberships/:membershipId/reports/purchases/post.md)

---

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