API Reference
Delete Payments
Remove payment records by transaction, visitor, or time range
DELETE
https://analytics.flowsery.com/paymentsDelete payment records by transaction ID, visitor, or within a date range.
Bearer Token (API key)
At least one filter required
At least one query parameter must be provided. Calling this endpoint with no filters returns a 400 error.Query parameters
| Parameter | Type | Description |
|---|---|---|
transactionId | string | Remove the payment matching a specific transaction ID. |
visitorId | string | Remove all payments tied to a specific visitor ID. |
startAt | string | ISO 8601 start timestamp (e.g., 2024-01-01T00:00:00Z). |
endAt | string | ISO 8601 end timestamp (e.g., 2024-01-31T23:59:59Z). |
Deletion behavior
<strong>Transaction ID only:</strong> Removes the specific payment record.
<strong>Visitor ID only:</strong> Removes all payments for that visitor (all time).
<strong>Time range only:</strong> Removes every payment within that period.
<strong>Visitor ID + time range:</strong> Removes payments for the visitor within the window.
<strong>Transaction ID + time range:</strong> Removes the specific transaction if it falls within the range.
Supplying <code>transactionId</code> or <code>visitorId</code> without a time range deletes ALL matching records across the entire history.
Error responses
<strong>400 Bad Request</strong> -- No filter parameters were provided.
<strong>401 Unauthorized</strong> -- API key is missing or invalid.