- Home
- API reference
- Payments
- Get a payment timeline
Get a payment timeline
Lists each status change in time order, with its timestamp and the actor that caused it.
/v1/payments/{id}/timelinepayments:read permission.Path parameters
Section titled “Path parameters”idstringrequiredThe id of the payment (pay_…).
Example: pay_01k7q3m8x2v5t9n4b6c1d0e7fa
Prefixed with pay_.
Response (200)
Section titled “Response (200)”dataarray of objectrequiredThe returned object, or an array of objects for a list.
atstringrequiredWhen it happened (RFC 3339, UTC).
Example: 2026-10-26T03:04:05.000Z
Format: date-time
eventstringrequiredWhat happened, as a short name.
Example: payment_paid
from_statusstring | nullrequiredThe status before; null for the first entry.
Example: pending
to_statusstringrequiredThe status after.
Example: paid
actorstringrequiredWho caused it: merchant, staff (Baiyar), provider (the payment provider) or system.
Example: provider
Possible values: merchant, staff, provider, system
metaobjectrequiredRequest details such as its id and pagination cursor.
request_idstringrequiredThe id of this request. Quote it when you ask support about it.
Example: req_Hy3k9QzT2LmN8vXa
A failed request answers with the common error shape; see Errors.
curl "https://api.baiyar.com/v1/payments/{id}/timeline" \ -H "Authorization: Bearer $BAIYAR_KEY"{ "data": [ { "at": "2026-10-26T03:04:05.000Z", "event": "payment_paid", "from_status": "pending", "to_status": "paid", "actor": "provider" } ], "meta": { "request_id": "req_Hy3k9QzT2LmN8vXa" }}