get__subscription_payments
GET /subscriptions/payments
Get Organization Payments
Retrieve payment history for the authenticated user's organization. Supports optional date filtering to get payments within a specific time range.
Parameters
startDate
query
string
false
Start date for filtering payments (ISO 8601 format)
endDate
query
string
false
End date for filtering payments (ISO 8601 format)
TypeScript Client Library
public getPayments = async (params?: PaymentsQueryParams): Promise<PaymentsListResponse> => {
const queryParams = new URLSearchParams();
if (params?.startDate) {
queryParams.append('startDate', params.startDate);
}
if (params?.endDate) {
queryParams.append('endDate', params.endDate);
}
return this.makeRequest<PaymentsListResponse>(
`subscriptions/payments${queryParams.toString() ? `?${queryParams.toString()}` : ''}`,
'GET',
null
);
};Code Samples
Example responses
200 Response
200 Response (Empty)
400 Response (No Organization)
400 Response (Invalid Start Date)
400 Response (Invalid End Date)
400 Response (Invalid Date Range)
404 Response
500 Response
Responses
Response Schema
Status Code 200
» success
boolean
false
none
Indicates if the request was successful
» data
[object]
false
none
Array of payment records
»» id
string
false
none
Unique identifier for the payment
»» amount
number
false
none
Payment amount in the smallest currency unit
»» currency
string
false
none
Currency code (e.g., usd, eur)
»» status
string
false
none
Payment status (COMPLETED, PENDING, CANCELLED)
»» timestamp
string(date-time)
false
none
Payment timestamp (paidAt or createdAt)
Status Code 400
» success
boolean
false
none
Will be false for error responses
» error_code
string
false
none
Machine-readable error code
» message
string
false
none
Human-readable error message
Status Code 404
» success
boolean
false
none
Will be false for error responses
» error_code
string
false
none
Machine-readable error code
» message
string
false
none
Human-readable error message
Status Code 500
» success
boolean
false
none
Will be false for error responses
» error_code
string
false
none
Machine-readable error code
» message
string
false
none
Human-readable error message
Last updated
Was this helpful?