DOCS

New!

/

5 minute read

October 5, 2019

ACH Verification

Use this view endpoint to retrieve ACH verification data aggregated by transaction. The data is derived from the transaction-related messages sent to and from the Marqeta platform. It is available only for programs that are configured to use Automated Clearing House (ACH) bank accounts.

This endpoint supports multiple response formats, query filtering, field filtering, sorting, and pagination. For more information about response options, see Response Customization.

Retrieve ACH verification data (JSON)

Action: GET
Endpoint: /views/achverifications

Retrieve ACH verification data aggregated by transaction. This endpoint returns a JSON object that contains an array of records matching your filter query.

Sample response body

The following sample shows a representative response for a GET request to the views/achverifications?program=my_program&date_sent_for_verification=2016-01-01..2016-01-02&fields=acting_user_token,verification_amount1,verification_amount2 endpoint.

{
    "total": 10,
    "is_more": false,
    "count": 10,
    "info": {},
    "start_date": "2016-02-01T00:00:00+0000",
    "end_date": "2017-05-02T00:00:00+0000",
    "last_run_time": "2018-03-09T18:03:16Z",
    "schema": [
        {
            "field": "acting_user_token",
            "type": "character varying(128)",
            "display": "Acting User Token",
            "units": null,
            "hasTotal": false,
            "is_filter_only": false
        },
        {
            "field": "verification_amount1",
            "type": "numeric(14,2)",
            "display": "Verification Amount1",
            "units": "USD",
            "hasTotal": true,
            "is_filter_only": false
        },
        {
            "field": "verification_amount2",
            "type": "numeric(14,2)",
            "display": "Verification Amount2",
            "units": "USD",
            "hasTotal": true,
            "is_filter_only": false
        }
    ],
    "records": [
        {
            "acting_user_token": "user_83742987",
            "verification_amount1": 0.3,
            "verification_amount2": 0.15
        },
        {
            "acting_user_token": "user_99283299",
            "verification_amount1": 0.4,
            "verification_amount2": 0.1
        },
        {
            "acting_user_token": "user_92734127",
            "verification_amount1": 0.46,
            "verification_amount2": 0.47
        },
        {
            "acting_user_token": "user_18344480",
            "verification_amount1": 0.46,
            "verification_amount2": 0.23
        },
        {
            "acting_user_token": "user_88324773",
            "verification_amount1": 0.15,
            "verification_amount2": 0.34
        },
        {
            "acting_user_token": "user_43823773",
            "verification_amount1": 0.34,
            "verification_amount2": 0.02
        },
        {
            "acting_user_token": "user_47228874",
            "verification_amount1": 0.41,
            "verification_amount2": 0.01
        },
        {
            "acting_user_token": "user_83254782",
            "verification_amount1": 0.2,
            "verification_amount2": 0.07
        },
        {
            "acting_user_token": "user_11824778",
            "verification_amount1": 0.01,
            "verification_amount2": 0.47
        },
        {
            "acting_user_token": "user_03824783",
            "verification_amount1": 0.23,
            "verification_amount2": 0.41
        }
    ]
}

Is this helpful?

Retrieve ACH verification (file export)

Action: GET
Endpoint: /views/achverifications/{export_type}

Retrieve ACH verification data aggregated by transaction. This endpoint asynchronously generates a file in the specified format and returns a job token for retrieving the file when it is completed. The file contains a list of records matching your filter query.

URL path parameters

Fields Description

export_type

string, required

File format in which to export the data.

Allowable Values: csv

Query parameters

Fields Description

compress

string, optional

Type of file compression for the exported file.

Allowable Values: gz, zip

Default value: gz

Sample response body

{
    "token":"111122226c444d8888888a9999ae11111db63da4.csv.gz"
}

Is this helpful?

Retrieve ACH verification schema

Action: GET
Endpoint: /views/achverifications/schema

Retrieve a JSON representation of the ACH verification view schema for data aggregated by transaction. The schema object contains an array of objects that describe the available columns and the data type of each column.

Sample response body

The following sample shows a representative response for a GET request to the /views/achverifications/schema?program=my_program endpoint. The schema can vary based on the data aggregation level and the data you are authorized to access (based on the credentials you provide in your request).

[
    {
        "field": "created_time",
        "type": "timestamp without time zone",
        "display": "Created Time",
        "units": null,
        "hasTotal": false,
        "date_format": "YYYY-MM-DD HH:mm:ss",
        "is_filter_only": false
    },
    {
        "field": "acting_user_id",
        "type": "integer",
        "display": "Acting User Id",
        "units": null,
        "hasTotal": false,
        "is_filter_only": false
    },
    {
        "field": "acting_user_token",
        "type": "character varying(128)",
        "display": "Acting User Token",
        "units": null,
        "hasTotal": false,
        "is_filter_only": false
    },
    {
        "field": "acting_uai",
        "type": "character varying(50)",
        "display": "Acting Uai",
        "units": null,
        "hasTotal": false,
        "is_filter_only": false
    },
    {
        "field": "verification_status",
        "type": "character varying(50)",
        "display": "Verification Status",
        "units": null,
        "hasTotal": false,
        "is_filter_only": false
    },
    {
        "field": "date_sent_for_verification",
        "type": "timestamp without time zone",
        "display": "Date Sent For Verification",
        "units": null,
        "hasTotal": false,
        "date_format": "YYYY-MM-DD HH:mm:ss",
        "is_filter_only": false
    },
    {
        "field": "date_verified",
        "type": "timestamp without time zone",
        "display": "Date Verified",
        "units": null,
        "hasTotal": false,
        "date_format": "YYYY-MM-DD HH:mm:ss",
        "is_filter_only": false
    },
    {
        "field": "verification_attempts",
        "type": "integer",
        "display": "Verification Attempts",
        "units": "USD",
        "hasTotal": true,
        "is_filter_only": false
    },
    {
        "field": "verification_amount1",
        "type": "numeric(14,2)",
        "display": "Verification Amount1",
        "units": "USD",
        "hasTotal": true,
        "is_filter_only": false
    },
    {
        "field": "verification_amount2",
        "type": "numeric(14,2)",
        "display": "Verification Amount2",
        "units": "USD",
        "hasTotal": true,
        "is_filter_only": false
    }
]

Is this helpful?

Have any feedback on this page?

If you feel we can do anything better, please let our team know.

We strive for the best possible developer experience.