Captures

Required scope: <code style="background:#e8f0fe;color:#1a73e8;padding:2px 8px;border-radius:12px;font-size:0.85em">capture:read</code>

get/capture

Request

  • Base URL
    https://api.test.easypay.pt/2.0
  • Auth
    API key in header AccountId and API key in header ApiKey

Query parameters

cursor, string

The cursor parameter is used for pagination. It specifies the pointer to the start of the next set of results in a sequence of paginated data. Typically, this is a unique identifier of the last item from the previous response. If not provided, the API fetches the first page of results.

limit, number

The limit parameter is used for pagination. It specifies the maximum number of entries to return in a single page of results. Max 100.

created_at, string
Example:interval(2006-01-02 15:04,2006-01-02 15:04)

Filter records by creation datetime interval in UTC. Maximum allowed range is 30 days. Format: interval(YYYY-MM-DD HH:MM,YYYY-MM-DD HH:MM).

updated_at, string
Example:interval(2006-01-02 15:04,2006-01-02 15:04)

Filter records by update datetime interval. Maximum range of 30 days. Format: interval(YYYY-MM-DD HH:MM,YYYY-MM-DD HH:MM)

Response

OK

CaptureGetListResponse required
metadata, MetadataCursor

An object containing additional information about the response. It includes details that help manage and navigate the retrieved data.

data, object[]

The Capture object contains all the necessary information for executing a fund capture action. It defines how and where the funds should be routed upon capturing a transaction. This object is essential for finalizing transactions and ensuring the correct allocation of funds.

Example response

{
  "metadata": {
    "next_cursor": "lL_j7ilk7rc",
    "count": 10
  },
  "data": [
    {
      "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb",
      "account": {
        "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb"
      },
      "splits": [
        {
          "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb",
          "value": 10.49,
          "margin_account": {
            "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb"
          },
          "margin_value": 12.6,
          "reverts": [
            {
              "id": "c6056234-a3f9-42de-b944-3ed793fcb6bb"
            }
          ]
        }
      ],
      "value": 15.32
    }
  ]
}

Changes

    • warning

      added the new failed enum value to the data/items/splits/items/status response property for the response status

    • warning

      added the new reverted enum value to the data/items/splits/items/status response property for the response status