Secure Payments API – Import GET All


Importing data using data fields is one of the import functions of the Secure Payments API.

This article explains how to get a list of all your imports.

How To

To get information regarding all of the import files in Secure Payments, send a GET request to the following endpoint:


There will be no body for the request; just your token and secret in the header are needed.

Here's a sample cURL request:

curl -X GET --header 'Accept: application/json' --header 'secret: your-secret' --header 'authorization: your-token' ''

And here's a sample response:

"id": 1,
"import_key": "",
"verify_key": "credit-card-import-1459549632504.csv",
"source_key": "import-source-credit-card-1459549631771.csv",
"imported": false,
"verified": false,
"created": "2016-4-01 22:27:12",
"updated": "2016-4-01 22:27:12"
"id": 2,
"import_key": "credit-card-import-1459549992528.csv",
"verify_key": "credit-card-import-verify-1459549734455.csv",
"source_key": "import-source-credit-card-1459549733689.csv",
"imported": true,
"verified": true,
"created": "2016-4-01 22:28:54",
"updated": "2016-4-01 22:33:12"

In the response above, two import files were submitted. The one with id: 1 was a credit card import (note the verify_key name), but it didn’t verify correctly (verified =  false). The one with id: 2 did verify correctly and was later submitted for import, which it completed successfully also.

Once a file is imported, its imported value is set to true and the import_key contains a non-empty string.

Imports can be searched by name, status and date range; see our Search article to learn how to do so.

How did we do?

Powered by HelpDocs (opens in a new tab)