Skip to content

Get the most recent payouts list

GET https://api.leapa.co/v2/payouts

This endpoint needs your API key

Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.

Request

curl -X GET "https://api.leapa.co/v2/payouts?payoutPageFilter=<payoutPageFilter>" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "object": "string",
  "page": 0,
  "size": 0,
  "live": false,
  "total_elements": 0,
  "total_pages": 0,
  "data": [
    {
      "id": "obj_5f21c8a40b",
      "object": "string",
      "amount": 45000,
      "currency": "BIF",
      "description": "Room 204, two nights",
      "reversal": "string",
      "status": "paid",
      "type": "bank",
      "automatic": false,
      "liveMode": false,
      "arrival_date": 0,
      "created_date": 0,
      "account_id": "acc_62f3a8d15b",
      "failure_code": "account_closed",
      "failure_message": "string",
      "live": false,
      "modified_date": 0,
      "processing_id": "string"
    }
  ]
}

Query parameters

Appended to the URL after a `?`.

  • payoutPageFilterPageFilterPayoutrequired

Response

application/json
  • objectstring

    Array

  • pageinteger<int32>

    The current page returned

  • sizeinteger<int32>

    The total size in a page

  • liveboolean

    Flag to indicate whether this is live mode or not

  • total_elementsinteger<int32>

    The total elements

  • total_pagesinteger<int32>

    The total pages

  • dataarray of PayoutResponserequired

    List of Payouts

Status codes

  • 200OK
  • 400Bad request
  • 401Unauthorized
  • 402Payment required
  • 403Forbidden
  • 404Not found
  • 428Precondition required
  • 500Server error

Request

curl -X GET "https://api.leapa.co/v2/payouts?payoutPageFilter=<payoutPageFilter>" \
  -H "Authorization: Bearer $LEAPA_API_KEY" \
  -H "Accept: application/json"

Response

OK

{
  "object": "string",
  "page": 0,
  "size": 0,
  "live": false,
  "total_elements": 0,
  "total_pages": 0,
  "data": [
    {
      "id": "obj_5f21c8a40b",
      "object": "string",
      "amount": 45000,
      "currency": "BIF",
      "description": "Room 204, two nights",
      "reversal": "string",
      "status": "paid",
      "type": "bank",
      "automatic": false,
      "liveMode": false,
      "arrival_date": 0,
      "created_date": 0,
      "account_id": "acc_62f3a8d15b",
      "failure_code": "account_closed",
      "failure_message": "string",
      "live": false,
      "modified_date": 0,
      "processing_id": "string"
    }
  ]
}