List All Document Acceptances for a Financial Account

Retrieve a list of all documents that have been accepted or rejected for a Financial Account. The response includes details for each acceptance, including a link to download the document.

Use the sort query parameter to sort the results, and use the page and size query parameters to limit the number of results returned.

Endpoint

GET /v1/acceptances

Authorization Header

Authorization: Bearer <access_token>

Query Parameters

financialAccountId

string (UUID)

ID of the Financial Account.

page

integer (int32)

Page number to return, based on zero-based page indexing.

size

integer (int32)

Maximum number of results to return per page.

sort

array [string]

Sort the response by any field in ascending or descending order. The default sort order is createdAt,DESC. For more information, see Sorting and Pagination.

Request Body

None

Returns

Returns a paginated response with an array of Document Acceptance objects.

SAMPLE RESPONSE

				
					{
  "totalElements": 2,
  "totalPages": 1,
  "number": 0,
  "numberOfElements": 2,
  "hasNext": false,
  "content": [
    {
      "documentId": "kor-privacy-policy",
      "documentVersion": "v1.2-4b",
      "acceptorType": "CUSTOMER",
      "acceptorId": "4a7c193e-b571-4ae0-80a3-a1a54dbec926",
      "businessAccountId": "d255a08d-8d98-41b6-b1d5-6db5aadc6461",
      "scopes": {
        "FINANCIAL_ACCOUNT_ID": "574bb046-7257-4bb4-b45b-c68974e3ea9e"
      },
      "metadata": {
        "additionalProp1": {}
      },
      "accepted": true,
      "respondedAt": "2023-08-15T18:26:57.953Z",
      "id": "9c722ece-1f71-4e2f-87d9-38c903603152",
      "createdBy": {
        "id": "f7055c44-e1ca-4e51-876b-6f8365fffd98",
        "type": "employee"
      },
      "createdAt": "2023-08-15T18:26:57.953Z",
      "downloadUrl": "https://documents.rocketkor.net/api/download/v1/documents/acceptance/privacy-policy?docVersion=1.1.1"
    },
    {...}
  ]
}
				
			
Exit mobile version