Skip to content

TransactionsResponse

Defined in: v1/schemas.ts:182

The paginated wrapper object returned by Teachable transaction endpoints. Includes full pagination metadata.

The Teachable v1 API does not provide a single transaction endpoint. Transactions can only be retrieved via the list endpoint using filters such as userId, courseId, or date range.

Processing delay — new transactions can take up to two minutes to appear via the API from the time of sale. Do not rely on this endpoint for real-time payment confirmation.

  • output<typeof TransactionsResponseSchema>

optional meta?: { from?: number; number_of_pages?: number; page?: number; per_page?: number; to?: number; total?: number; }

Defined in: v1/schemas.ts:166

optional from?: number

optional number_of_pages?: number

optional page?: number

optional per_page?: number

optional to?: number

optional total?: number

z.infer.meta


transactions: { affiliate_fees?: number | null; affiliate_id?: number | null; amount_refunded?: number; author_fees?: number | null; author_id?: number | null; charge: number; chargeback_fee?: number | null; coupon_id?: number | null; created_at: string; currency: string; final_price: number; has_chargeback?: boolean | null; id: number; pricing_plan_id?: number; purchased_at?: string; refunded_at?: string | null; revenue?: number; sale_id?: number; status?: string | null; tax_charge?: number; user_id: number; }[]

Defined in: v1/schemas.ts:165

optional affiliate_fees?: number | null

optional affiliate_id?: number | null

optional amount_refunded?: number

optional author_fees?: number | null

optional author_id?: number | null

charge: number

optional chargeback_fee?: number | null

optional coupon_id?: number | null

created_at: string

currency: string

final_price: number

optional has_chargeback?: boolean | null

id: number

optional pricing_plan_id?: number

optional purchased_at?: string

optional refunded_at?: string | null

optional revenue?: number

optional sale_id?: number

optional status?: string | null

optional tax_charge?: number

user_id: number

z.infer.transactions