PricingSales

List sales

GET
/v1/sales

Every purchase and renewal made for a customer, newest first, with what it cost you and what the customer pays at the prices in force at the time.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Query Parameters

limit?integer

How many to return

Range1 <= value <= 100
Default25
cursor?string

nextCursor from the previous page

customerId?string
product?string
Value in"number""domain""domain_privacy""licence""mailbox"
priceListId?string

Only sales priced from this list

level?string

What set the price: the item's own price (override), the customer's contract, their price list, or none when you have no list and the customer pays wholesale

Value in"override""contract""list""none"
from?string

Only sales made at or after this moment

Formatdate-time
to?string

Only sales made before this moment

Formatdate-time
invoiced?string

false for sales not on an invoice yet, true for those that are

Response Body

Success

application/json
  1. response

Success

data*array<>
nextCursor*|

Pass as cursor for the next page. null on the last page

total*integer

How many match across every page

Range0 <= value
curl -X GET "https://example.com/v1/sales?customerId=cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA&priceListId=prl_01K6XJ4Q8ZT3M9R5V2B7WDHNCA&from=2026-10-07T11%3A04%3A31.000Z&to=2026-11-01T00%3A00%3A00.000Z"
{  "data": [    {      "id": "sal_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "customerId": "cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "product": "number",      "action": "new",      "reference": {        "type": "hold",        "id": "string"      },      "description": "northwind-telecom.com, 2 years",      "term": "30d",      "quantity": 2,      "unitCost": 1440,      "cost": 1440,      "unitPrice": 1440,      "price": 1440,      "currency": "USD",      "rate": 1000000,      "priceUsd": 1440,      "priceListId": "prl_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "ruleId": "prr_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "level": "override",      "floored": true,      "creditOf": "sal_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "invoiceId": "inv_01K6XJ4Q8ZT3M9R5V2B7WDHNCA",      "createdAt": "2026-10-07T11:04:31.000Z"    }  ],  "nextCursor": null,  "total": 1}