Presort

Presort Route return the Postage Price, post_office_drop_date, number_of_items_mailed and other Presort information.

Resource URI

POST /presorts

Input Parameters

@param validation_type {string} Address validation_type //Provided in the address validation API response
@param original_address_list_csv {string} original address CSV file url //Provided in the Direct Mail Address Validation API response
@param precleanlist_csv {string} clean list CSV file url //Provided in the Direct Mail Address Validation API response
@param validation_report_pdf {string} validation report pdf file url //Provided in the Direct Mail Address Validation API response
@param statement_id {string} statement_id //Provided in the Direct Mail Address Validation API response
@param crid {integer} crid // any random number (3-12 digits range), required in case of Postage Class - Non-Profit
@param resource_uuids {array} option_uuids of a product


Note: validation_type, original_address_list_csv, precleanlist_csv, validation_report_pdf, statement_id provided in the response from the /files route response after the Direct Mail Address Validation is done.

original_address_list_csv: This likely refers to a CSV file that contains a list of addresses in their original format.
precleanlist_csv: It contains addresses that have been "pre-cleaned" or processed to remove errors, duplicates. 
statement_id: This is likely an identifier for a specific statement or record.

JSON

{
    "validation_type": "NONE",
    "original_address_list_csv": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.us-west-1.amazonaws.com/OriginalMailingAddress-yUyFl86Ls0vkn6CgJpDuglkyrO3Werf.csv",
    "precleanlist_csv": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.us-west-1.amazonaws.com/precleanlist_csv-gQQN52hEh2RrcA42lrBfYndsdrtrgd.csv",
    "validation_report_pdf": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.us-west-1.amazonaws.com/validation_report_pdf-yUyFl86Ls0vkn6CgJpDuglkyrO3Werf.pdf",
    "resource_uuids": [
        "6f4fd47a-f70f-4f3d-84f8-a78ef9a62a5a",
        "121bb7b5-3b4d-429f-bd8d-bbf80e953313",
        "4d0c12ba-13c5-4851-ac98-d5908a8da60b",
        "2fd6ad29-756c-4927-a66f-b0c0116e31f9",
        "3359c49b-ecae-4694-8901-edec09a31a0d",
        "ddaf65eb-d2a3-4542-874d-03a289d9d07b",
        "ac3f81af-b99a-489d-b2e3-b192e9eaa96a",
        "9f85d0c4-d344-4088-a719-86f8f84d504d",
        "52e3d710-0e8f-4d4d-8560-7d4d8655be69",
        "f169e8b1-5d3f-408a-81fd-c857f7b9c37b"
    ],
    "statement_id": "6Lfy0olDwH7vvOsciNcPoDW7P9Eho9Xw",
    "crid":"123456"
}

Sample Response

JSON

{
    "clean_mailing_address_list_csv": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.amazonaws.com/cleanlist-6Lfy0olDwH7vvOsciNcPoDW7P9Eho9Xw.csv",
    "crid": "",
    "drop_zip_code": "33152-9996",
    "eligibility_discount": "",
    "mail_piece_type": "postcard",
    "maildat_zip": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.amazonaws.com/maildat-6Lfy0olDwH7vvOsciNcPoDW7P9Eho9Xw.zip",
    "mailing_usps_status_report_pdf": "",
    "number_of_items_mailed": 998,
    "original_mailing_list_csv": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.us-west-1.amazonaws.com/OriginalMailingAddress-yUyFl86Ls0vkn6CgJpDuglkyrO3Werf.csv",
    "permit_number": "3666",
    "piece_height": "3.5",
    "piece_multiplier": "1",
    "piece_size": "",
    "piece_stock": null,
    "piece_thickness": 0.016,
    "piece_turnaround": 4,
    "piece_weight": 0.229075,
    "piece_width": "8.5",
    "post_office_drop_date": "2024-08-28",
    "postage_price": 397.5480000000032,
    "preclean_mailing_list_csv": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.us-west-1.amazonaws.com/precleanlist_csv-gQQN52hEh2RrcA42lrBfYndsdrtrgd.csv",
    "presort_class": "firstClass",
    "presort_location": "fl",
    "presort_mail_summary_report": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.amazonaws.com/storePdfPresortingMailSummaryReport_pdf-6Lfy0olDwH7vvOsciNcPoDW7P9Eho9Xw.",
    "presort_pdf": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.amazonaws.com/presort_report_AWS-6Lfy0olDwH7vvOsciNcPoDW7P9Eho9Xw.pdf",
    "presort_tray_labels_pdf": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.amazonaws.com/presort_tray_labels_report_AWS-6Lfy0olDwH7vvOsciNcPoDW7P9Eho9Xw.pdf",
    "project_id": "becc9d2c-be5d-40cd-8386-bc386140a3e9",
    "runsize": "1000",
    "satori_template_class": "firstClass-postcard",
    "satori_validation_pdf": "https://8b887e04-4eb5-46f4-b35f-e466e7723fbe.s3.us-west-1.amazonaws.com/validation_report_pdf-yUyFl86Ls0vkn6CgJpDuglkyrO3Werf.pdf",
    "sqfootage": 29.75,
    "statement_id": "6Lfy0olDwH7vvOsciNcPoDW7P9Eho9Xw",
    "statement_usps_job_id": "ASIIXMV",
    "validation_type": "NONE"
}