curl "https://production.methodfi.com/payments?page_limit=1&to_date=2020-12-10" \
  -H "Method-Version: 2024-04-04" \
  -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
{
  "data": [
    {
      "id": "pmt_rPrDPEwyCVUcm",
      "reversal_id": null,
      "source_trace_id": null,
      "destination_trace_id": null,
      "source": "acc_JMJZT6r7iHi8e",
      "destination": "acc_AXthnzpBnxxWP",
      "amount": 5000,
      "description": "Loan Pmt",
      "status": "pending",
      "error": null,
      "metadata": null,
      "estimated_completion_date": "2020-12-11",
      "source_settlement_date": "2020-12-09",
      "destination_settlement_date": "2020-12-11",
      "fee": null,
      "created_at": "2020-12-09T00:42:31.209Z",
      "updated_at": "2020-12-09T00:43:30.996Z"
    }
  ]
}

Core API endpoints that list records are returned in reverse chronological order, with the most recently created resource showing up first. You may optionally provide the following pagination parameters to limit the returned records.

Props

from_date
string

ISO 8601 formatted date (YYYY-MM-DD) to filter for records created on and after the date provided.

to_date
string

ISO 8601 formatted date (YYYY-MM-DD) to filter for records created on and before the date provided.

page
string

The number of the page to return.

page_cursor
string

The ID of a resource from which a page should start or end. Mutually exclusive with page.

page_limit
string

The number of records to return per page.

Returns

Returns a list of the requested resource with the applied pagination. Additionally, the following headers are returned with the response:

Response pagination headers

KeyDescription
Pagination-PageThe current page.
Pagination-Page-CountThe total number of pages available.
Pagination-Page-LimitThe number of records to return per page.
Pagination-Total-CountThe total number of records matching the request.
Pagination-Page-Cursor-PrevThe previous page cursor.
Pagination-Page-Cursor-NextThe next page cursor.
curl "https://production.methodfi.com/payments?page_limit=1&to_date=2020-12-10" \
  -H "Method-Version: 2024-04-04" \
  -H "Authorization: Bearer sk_WyZEWVfTcH7GqmPzUPk65Vjc"
{
  "data": [
    {
      "id": "pmt_rPrDPEwyCVUcm",
      "reversal_id": null,
      "source_trace_id": null,
      "destination_trace_id": null,
      "source": "acc_JMJZT6r7iHi8e",
      "destination": "acc_AXthnzpBnxxWP",
      "amount": 5000,
      "description": "Loan Pmt",
      "status": "pending",
      "error": null,
      "metadata": null,
      "estimated_completion_date": "2020-12-11",
      "source_settlement_date": "2020-12-09",
      "destination_settlement_date": "2020-12-11",
      "fee": null,
      "created_at": "2020-12-09T00:42:31.209Z",
      "updated_at": "2020-12-09T00:43:30.996Z"
    }
  ]
}