Secure Payments API Export

General

Before you export, you should search Secure Payments (formerly PCI Wallet).

Export

Search results can be exported to a report in comma-separated values (CSV) format. Simply specify export=true as a query parameter:

Request:

curl -X POST --header 'Content-Type: application/json' --header
'Accept: application/json' --header 'secret: yor-secret' --header
'authorization: your-token' -d '{"search": {"query": {"match_all":
{}}, "size": 1, "from": 2, "sort": [{"created": {"order": "asc"}}]}}' 'https://pciwallet.simnang.com/api/search/import?export=true'

Response:

{
"result": [
{
"_index": "5_1459192127767",
"_type": "import",
"_id": "5",
"_score": null,
"_source": {
"id": 5,
"import_bucket": "test import bucket",
"import_key": "",
"verify_bucket": "test verify bucket",
"verify_key": "test verify key",
"imported": false,
"created": "2016-3-28 19:09:34",
"updated": "2016-3-28 19:09:34"
},
"sort": [
"09"
]
}
],
"url": "https://s3.amazonaws.com/easypay-search-export/5/2016-03-30/import-2016-03-30.csv?AWSAccessKeyId=AKIAJGQGUJA7YYQOD6SQ&Expires=1459367966&Signature=Q5%2BXVa6Uq7Mo8hUByEA2Lvnkbzs%3D"}

The response is appended a new key url with the search report.


How did we do?


Powered by HelpDocs (opens in a new tab)