Direct Debits

List direct debit batch approval tasks

Changed on

List all approval tasks for the given batch.

get/payments/v2beta/direct-debit-batches/{id}/approval-tasks

Request

Path parameters

idstring required

Atlar resource ID or External ID. Prefix External IDs with external:.

Query parameters

tokenstring

If a query response contains a non-empty nextToken, use that value as token query parameter to continue pagination.

limitinteger

Limit the number of items in resulting query response.

Response

A list of approval tasks.

nextTokenstring required

Pagination token for next page. The value will be a non-empty string if there are more resources to be fetched. The value will be an empty string if there are no more resources to be fetched.

tokenstring required

The pagination token that was used for this request. The value will be an empty string if no token query parameter was provided with the request.

limitinteger required

The page limit that was used for this request.

Example response

{
  "items": [
    {
      "id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
      "organizationId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
      "starterUserId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
      "starterRoleId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
      "errors": [
        {
          "code": "invalid_value",
          "error": "Must be one of [direct_debits mandates payments]",
          "field": "filter.0.resource",
          "metadata": {
            "resource": "credit_transfers",
            "method": "read"
          }
        }
      ],
      "created": "2022-05-04T18:31:12.889104898Z",
      "updated": "2022-05-04T18:47:32.213842599Z",
      "version": 1,
      "input": {
        "batchId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
        "action": "APPROVE",
        "approver": {
          "userId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8"
        }
      }
    }
  ],
  "nextToken": "eyIxIjogIlRoaXMgaXMgYSBkdW1teSBwYWdpbmF0aW9uIHRva2VuLiJ9",
  "token": "eyIwIjogIlRoaXMgaXMgYSBkdW1teSBwYWdpbmF0aW9uIHRva2VuLiJ9",
  "limit": 100
}

Changes