moov-io / ach

ACH implements a reader, writer, and validator for Automated Clearing House (ACH) files. The HTTP server is available in a Docker image and the Go package is available.
https://moov-io.github.io/ach/
Apache License 2.0
446 stars 149 forks source link

fix: Update required fields for CreateFile schema object in openapi.yaml #1410

Closed brendenehlers closed 2 months ago

brendenehlers commented 2 months ago

Issue: #1050

Updates the required fields for the CreateFile schema object in the Open API specification.

Minimal request body to create a new file:

{
    "fileHeader": {
        "immediateDestination": "226071004",
        "immediateOrigin": "0462723539",
        "fileCreationDate": "220716"
    },
    "batches": [
        {
            "batchHeader": {
                "serviceClassCode": 220,
                "companyName": "HMBradley",
                "companyIdentification": "0462723539",
                "standardEntryClassCode": "WEB",
                "companyEntryDescription": "HMBWEB",
                "ODFIIdentification": "22607100"
            },
            "entryDetails": [
                {
                    "transactionCode": 22,
                    "RDFIIdentification": "06540013",
                    "checkDigit": "7",
                    "DFIAccountNumber": "264236473264",
                    "amount": 121598,
                    "individualName": "Zach Test"
                }
            ]
        }
    ]
}