Charges
Paginated revenue charge rows for the authenticated project with optional calendar bounds on charged-at times.
Inclusive lower calendar date for filtering charges by charged-at time (YYYY-MM-DD).
Inclusive upper calendar date for filtering charges by charged-at time (YYYY-MM-DD). Must be on or after date_from when both are provided.
Maximum number of records to return per page.
Success
Object containing response data for this resource.
Indicates whether the request completed successfully.
Short code or application-level status code for this resource.
GET /project/charges HTTP/1.1
Host: api.moregoodreviews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
{
"success": true,
"code": 200,
"data": [
{
"amount": 15000,
"charged_at": "2026-04-28T15:30:00+00:00",
"currency": "USD",
"customer_id": 101,
"id": 8801,
"project_id": 42
}
],
"pagination": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/project/charges",
"per_page": 50,
"to": 1,
"total": 1
}
}Record a customer revenue event from an external billing system.
Object containing response data for this resource.
Charge amount in the smallest currency unit.
Email address for the person or customer.
Phone number for the person or customer.
Three-letter ISO currency code.
Slug of an existing project location. Returns 404 if the slug is not found.
Optional instant for request bodies: Unix timestamp as integer (seconds), or a date/time string of at most 50 characters that PHP Carbon can parse. For strings, ISO-8601 / RFC 3339 (for example 2026-04-28T15:30:00Z) is the recommended format in examples and client integrations. Invalid values fail validation. When the field is omitted or null, the API uses the current server time where that behavior is documented on the operation.
Unix timestamp in seconds since the Unix epoch.
Date/time string parseable by Carbon; prefer ISO-8601 / RFC 3339; maximum 50 characters.
Success
Object containing response data for this resource.
Indicates whether the request completed successfully.
Short code or application-level status code for this resource.
POST /project/charges HTTP/1.1
Host: api.moregoodreviews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"amount": 15000,
"email": "alex.johnson@example.com",
"phone": "+15551234567",
"currency": "USD",
"location_slug": "downtown",
"charged_at": "2026-04-28T15:30:00Z"
}Success
{
"success": true,
"code": 200,
"data": {
"email": "alex.johnson@example.com",
"phone": "+15551234567",
"amount": 15000,
"currency": "USD",
"charged_at": "2026-04-28T15:30:00+00:00"
}
}Permanently remove a mistaken charge row scoped to this project’s customers.
Unique numeric identifier for this charge row.
Success
Object confirming the charge row was deleted.
Indicates whether the request completed successfully.
Application-level status code returned by this API.
DELETE /project/charges/{id} HTTP/1.1
Host: api.moregoodreviews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
{
"success": true,
"code": 200
}Last updated