GET
/
v1
/
pay
/
members
/
{memberId}
/
withdrawals
curl --request GET \
  --url https://api.onsi.com/v1/pay/members/{memberId}/withdrawals \
  --header 'x-api-key: <api-key>'
{
  "withdrawals": [
    {
      "amount": {
        "amount": 1050,
        "currency": "GBP"
      },
      "fee": {
        "amount": 1050,
        "currency": "GBP"
      },
      "payCycleId": "pc_<id>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "skip": 0,
  "take": 50,
  "total": 1
}

Returns a list of the pay withdrawals for a given member, pagination is supported.

This endpoint is deprecated in favour of GET /v1/pay/withdrawals and will be removed in the next version of the API. The new endpoint also allows member-specific filtering, as well as more complex querying.

Authorizations

x-api-key
string
header
required

Path Parameters

memberId
string
required

The unique identifier for a Member, prefixed with mem_

Example:

"mem_<id>"

Query Parameters

skip
number
default:0
required
take
number
default:50
required

Response

200 - application/json

200

The response is of type object.