Skip to Content

List events and their delivery

Newest first. delivery is the delivery to your current endpoint, or null when none was made.

Authorization

apiKey
headerAuthorizationBearer <token>

lbp_test_... or lbp_live_...

Query Parameters

type?string
delivery_status?string
Value in"pending""delivered""failed"
payment_id?string

Only this payment's events, including its refunds' events.

limit?integer
Range1 <= value <= 100
Default20
starting_after?string

Response Body

A page of events

application/json
  1. response
object?"list"
Value in"list"
data?array<>
has_more?boolean
Example Request
curl -X GET 'https://pay.piti.id/v1/events'
Example Response
{  "object": "list",  "data": [    {      "id": "string",      "object": "event",      "type": "payment.paid",      "mode": "test",      "app_id": "string",      "created_at": "2019-08-24T14:15:22Z",      "data": {},      "delivery": {        "status": "pending",        "attempts": 0,        "last_status_code": 0,        "last_error": "string",        "delivered_at": "2019-08-24T14:15:22Z",        "next_attempt_at": "2019-08-24T14:15:22Z"      }    }  ],  "has_more": true}