Customers
Retrieve all charges for a customer
get/customers/{id}/charges
Path parameters
idinteger required
The SamCart ID for the customer
Query parameters
created_at_minstring date-time
Filter by created at date/time at or after given value. Accepts ISO 8601/RFC 3339 format with timezone (e.g., 2025-01-16T14:30:00Z) or date-only (e.g., 2025-01-16). Date-only values use 00:00:00 UTC.
created_at_maxstring date-time
Filter by created at date/time at or before given value. Accepts ISO 8601/RFC 3339 format with timezone (e.g., 2025-01-16T14:30:00Z) or date-only (e.g., 2025-01-16). Date-only values use 23:59:59 UTC.
test_modeboolean
Filter by test mode
Response
Successful operation. Response will return an array of 0 or more charges
Example response
[
{
"id": 1337,
"customer_id": 1234,
"affiliate_id": 1001,
"order_id": 1001,
"subscription_rebill_id": 1001,
"test_mode": true,
"processor_name": "Stripe",
"processor_transaction_id": "01234ABCD",
"currency": "USD",
"charge_refund_status": "partially_refunded",
"order_date": "2021-03-08 00:18:35",
"created_at": "2021-03-08 00:18:35",
"total": 10025
}
]Changes
No recorded changes to this endpoint across all 1 revision of this API.