Get List Rejected Records
GET https://restapi.actonsoftware.com/api/1/list/rejectedUploadRecords
This endpoint allows you to download the CSV file that contains the records that failed when attempting to upload to a list.
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | False | Required | String | Insert your generated access token. (Bearer {access token}) |
filename | Path | False | Required | String | Use the name of the file in the response of the endpoint "Get List Upload Status" if there were records to failed. |
Response
"Reason","E-mail Address","FIRSTNAME","LASTNAME" "DUPLICATE IN COPY DESTINATION","[email protected]","John","Doe" "DUPLICATE IN COPY DESTINATION","[email protected]","Jane","Doe"
Code Examples
cURLPython
curl -X GET https://restapi.actonsoftware.com/api/1/list/rejectedUploadRecords?filename=api_upload_42152_362447_10.11.8.30_8898121968559577662.dat_bad.csv -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs"
import requests url = "https://restapi.actonsoftware.com/api/1/list/rejectedUploadRecords?filename=api_upload_42152_362447_10.11.8.30_8898121968559577662.dat_bad.csv" payload = {} headers = { 'Authorization': 'Bearer 12345678-9abc-defg-hijk-lmnopqrs' } response = requests.request("GET", url, headers=headers, data = payload) print(response.text.encode('utf8'))