Secure Payments API Running a Validated Import

General

Running a validated import is one of the import functions of the Secure Payments (formerly PCI Wallet) API.

Running a validated import

Once an uploaded file has been validated correctly, it is eligible for import for the next 15 minutes. After 15 minutes, the file is removed for security reasons.

Request:

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'secret: your-secret' --header 'authorization: your-token' 'https://pciwallet.simnang.com/api/credit-card/import/13'

Response:

{
"report": "https://s3.amazonaws.com/easypay-import/cesarVM/output/5/2016-04-01/credit-card-import-1459546263251.csv?AWSAccessKeyId=AKIAJGQGUJA7YYQOD6SQ&Expires=1459547163&Signature=2peMxRt%2Frh2B4qqs1bFkcgOgdjE%3D",
"result": [
{
"token": "CiCVDqG5QNK+ZhpBI3fNrwHkwiWdtqO5Nb1OQctzK3SzhRKnAQEBAwB4lQ6huUDSvmYaQSN3za8B5MIlnbajuTW9TkHLcyt0s4UAAAB+MHwGCSqGSIb3DQEHBqBvMG0CAQAwaAYJKoZIhvcNAQcBMB4GCWCGSAFlAwQBLjARBAw/YCNb2vC397UkqJgCARCAO/QD5cJklY1YxWqasXfXZ5iLshH0Jgy1tPonRCtQEmCuTSgj/E78Dj+zfAlcOKG78c/X1GKya/zcsTYt.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJ1cGRhdGVkIjoxNDU5NTQ2MjYzLCJjcmVhdGVkIjoxNDU5NTQ2MjYzLCJpZCI6MjUzLCJhZGRyZXNzX2lkIjo5OCwidXNlcl9pZCI6NSwiY3VzdG9tZXJfaWQiOm51bGx9.sB2NQWgf0_klFJX4BoyVPAPDYjd9IGO0mVXG-zrrysA",
"message": "",
"id": 1
}
]
}

The report contains the URL to download the import report. It’s very important to save the import report as it contains the newly created tokens. The report is a CSV file containing one row per imported account. The id refers to the order they appear in the input file.

The same is true for checking accounts, but the endpoint changes to https://pciwallet.simnang.com/api/checking-account/import/14

Finally, to obtain both import and validation reports for a specific file previously uploaded:

{
"import": "https://s3.amazonaws.com/easypay-import/prod/output/5/2016-04-01/credit-card-import-1459546263251.csv?AWSAccessKeyId=AKIAJGQGUJA7YYQOD6SQ&Expires=1459547696&Signature=WuVWZy2qiG7dp%2F80LGapnaZzu%2Fc%3D",
"verify": "https://s3.amazonaws.com/easypay-import/prod/input/5/2016-04-01/import-source-credit-card-1459536465861.csv?AWSAccessKeyId=AKIAJGQGUJA7YYQOD6SQ&Expires=1459547696&Signature=r6mjho07%2FHt8YLnQGs4OgSyhbtU%3D"
}


How did we do?


Powered by HelpDocs (opens in a new tab)