Skip to main content

Akoya
Documentation

Testing Endpoint Responses

Validate responses from API endpoints.

The /accounts-info endpoint

Test case

Task(s)

Expected result(s)

Return all accounts.

Omit the accountIds parameter with the /accounts-info endpoint.

HTTP 200: OK with non-empty JSON payload

Return one account.

Set accountIds query param to an accountId retrieved in /accounts-info payload.

Validate fetch for 1.

Return N accounts.

Set accountIds query param to more than one accountId (comma separated) retrieved in /accounts-info payload.

Validate fetch for N.

The /transactions endpoint

Test case

Task(s)

Expected result(s)

Get an account’s transactions.

Call /transactions.

HTTP 200: OK with non-empty JSON payload

Filter transactions based on start/end time.

Provide values for the startTime and endTime query parameters.

startTime / endTime parameters are functioning as expected; Akoya uses ISO8601. See transactions documentation for example payloads.

Paginate through transactions.

Call the /transactions endpoint using a Mikomo test account that has a very large (paginated) payload.

Pagination functions as expected for payloads large enough to require it. See our documentation on pagination.

Get an account with no transactions.

Call the /transactions endpoint using a Mikomo test account that has no transactions.

The following HTTP response: HTTP 200: OK Payload: { "transactions": [] }

The /customer endpoint

Test case

Task(s)

Expected result(s)

Get an account’s customer info.

Call /customers.

HTTP 200: OK with non-empty JSON payload. See Customer info

The /payment-enablement endpoint

Test case

Task(s)

Expected result(s)

Get an account’s payment network info.

Call /payments.

HTTP 200: OK with non-empty JSON payload See Payment networks

CTRL + K

Table of contents