Get all withdrawals [DEPRECATED: Use transaction routes]

GET /api/v1/plans/{plan_uuid}/withdrawals/{subAccount}

Path parameters

Query parameters

  • Filter by a comma separated list of UUIDs.

  • sort string

    Field to sort by. Valid fields are [created_at, updated_at, withdrawn_at]. Negative sign to denote DESC. Defaults to '-withdrawn_at'.

  • per_page integer

    Number of results to return with pagination (Default 15. Max 500).

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
GET /api/v1/plans/{plan_uuid}/withdrawals/{subAccount}
curl \
 -X GET https://api.plannrcrm.com/api/v1/plans/plan_uuid/withdrawals/subAccount \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json"
Response examples (200)
{
  "data": [
    {
      "uuid": "fbce8477-ec38-40e2-b0e8-e4f20b8e673f",
      "value": {
        "amount": {
          "example": "4000",
          "description": "Money amount at their lowest denominator (for example: pennies)"
        },
        "currency": {
          "example": "GBP",
          "description": "Currency of the money"
        },
        "formatted": {
          "example": "£40.00",
          "description": "Money amount formatted with currency"
        }
      },
      "created_at": "2024-10-16T11:10:16+01:00",
      "updated_at": "2024-10-16T11:10:16+01:00",
      "withdrawn_at": "2024-10-16T11:10:16+01:00"
    }
  ]
}