---
title: "List Payment Method Imports"
method: GET
path: "/payment_method_imports"
tags: ["Payment Method Imports"]
---

# List Payment Method Imports

`GET /payment_method_imports`

## Request

- Base URL: `https://api.justifi.ai/v1`
- URL: `https://api.justifi.ai/v1/payment_method_imports`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/justifi/apis/justifi-api-documentation/docs/payment_method_imports/get.ts> (a function with typed inputs; its response is checked against the schema)

List the payment method imports run across your platform, newest first. To list only one sub account's
imports, send its id in the `Sub-Account` header or the `sub_account_id` parameter. This endpoint supports
[pagination](https://docs.justifi.tech/api-spec#section/Pagination).

## Query parameters

- `sub_account_id` string
- `status` 'created' | 'processing' | 'successful' | 'failed'
- `provider` 'authorize_net' | 'braintree' | 'datacap' | 'ez_facility' | 'mind_body' | 'neon_pay' | 'paragon' | 'paya' | 'stripe'
- `created_before` string, date-time
- `created_after` string, date-time
- `limit` integer
- `before_cursor` string
- `after_cursor` string

## Headers

- `Authorization` string, required
- `Sub-Account` string

## Response `200`

Successfully list payment method imports

- object
  - `id` number: the object id
  - `type` string: the object type, or array of objects
  - `data` PaymentMethodImportResponse[]: the list of objects
    - `id` string: unique id of the payment method import
    - `error_code` 'missing_required_headers' | 'invalid_file' | 'internal_error', nullable: why the import failed. Only present once status is failed. - `missing_required_headers`: the file is missing columns the provider requires - `invalid_file`: the file could not be read as CSV or JSON, or is not UTF-8 - `internal_error`: any other failure; contact support
    - `provider` 'authorize_net' | 'braintree' | 'datacap' | 'ez_facility' | 'mind_body' | 'neon_pay' | 'paragon' | 'paya' | 'stripe': the processor the payment methods were migrated from
    - `status` 'created' | 'processing' | 'successful' | 'failed': current status of the import
    - `report_file_path` string, nullable: key of the row-by-row results file, written once processing finishes
    - `report_file_url` string, nullable: presigned URL to download report_file_path, valid for 15 minutes. Only present once status is successful
    - `account_id` string: sub account the imported payment methods belong to
    - `platform_account_id` string: platform account that owns the sub account
    - `retry_of_payment_method_import_id` string, nullable: id of the import this one retries, if any
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `page_info` PageInfo
    - `end_cursor` string: the encoded id of the last record in the current list
    - `has_next` boolean: true if the collection contains records following the current list
    - `has_previous` boolean: true if the collection contains records ahead of the current list
    - `start_cursor` string: the encoded id of the first record in the current list

---

[API](https://skmtc.dev/justifi/apis/justifi-api-documentation.md) - [All operations](https://skmtc.dev/justifi/apis/justifi-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/justifi/apis/justifi-api-documentation/revisions/dd9f3fed7e46?raw)
