PPylon Developers
ApiPayments

List payment sessions

Returns a paginated list of payment sessions for the current tenant.

GET
/api/v1/payments/sessions
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Query Parameters

page?integer
Default1
Formatint32
pageSize?integer
Default20
Formatint32
status?string

Response Body

application/json

curl -X GET "https://loading/api/v1/payments/sessions"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
      "mode": "string",
      "status": "string",
      "currency": "string",
      "totalAmount": 0.1,
      "paidAmount": 0.1,
      "totalDiscountAmount": 0.1,
      "appliedCreditAmount": 0.1,
      "captureMethod": "string",
      "partialCompletionPolicy": "string",
      "expiresAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "completedAt": "2019-08-24T14:15:22Z",
      "intents": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "payerEmail": "string",
          "payerName": null,
          "amount": 0.1,
          "netAmount": 0.1,
          "status": "string",
          "paidAt": "2019-08-24T14:15:22Z"
        }
      ]
    }
  ],
  "meta": {
    "totalCount": 0,
    "page": 0,
    "pageSize": 0,
    "totalPages": 0,
    "hasNext": true,
    "hasPrevious": true
  },
  "links": null
}