Configuring Pay Run Destinations

Updated

Pay Run Destinations can be configured to allow automatic delivery of generated Pay Run files via Email, SFTP, or to an Amazon S3 bucket.

Pay Run Destinations allow automatic delivery of generated Pay Run files via Email, SFTP, or to an Amazon S3 bucket. The Destination object doesn't control the files that are generated or when they're delivered, but instead only defines where (and how) generated files can be delivered. Once a Destination is created, it can be attached to a Pay Run Schedule, which will then automatically deliver any output files that the Schedule generates to the configured Destination.

Pay Run Schedules don't need a Destination to be set for them to run, and they can still generate files which can be downloaded from the web application.

Creating a new Destination

To create a new Pay Run Destination in Audata Promo (assuming you are signed in as a User with appropriate permissions):
  1. Open the Administration panel.
  2. In the left sidebar menu, navigate to Finance and then Destinations.
  3. Click on New Destination.
  4. Enter a Name for the destination and press "Tab" to automatically populate the API Name field.
  5. From the Delivery Method dropdown menu, select the desired delivery method.
  6. Insert your configuration settings in the Delivery Params editor. You can copy & paste the below examples as templates, and then insert your own desired parameters.
  7. Click Save Destination.

Example Delivery Parameters

The delivery params should be a JSON object, with only one property, named either email, sftp, or s3, which should be an object also.

Email Delivery Parameters
{
  "email": {
    "to": ["accounts.payable@example.com"],
    "cc": ["john.smith@example.com"],
    "bcc": ["aaron.robinson@example.com"],
    "subject": "SUBJECT",
    "zip_files": true,
    "zip_password": "PASSWORD"
  }
}

  • to: An array of email addresses for the email "To" field.
  • cc: An array of email addresses for the email "CC" field (optional).
  • bcc: An array of email addresses for the email "BCC" field (optional).
  • subject: A custom subject line of the email (optional).
  • zip_files: Boolean: whether to combine multiple files into a compressed ZIP (defaults to false).
  • zip_password: A password to protect the ZIP with (optional, leave blank for no password).

S3 Delivery Parameters
{
  "s3": {
    "region": "REGION",
    "bucket": "BUCKET_NAME",
    "path": "PATH_FOR_FILE",
    "authentication": {
      "access_key_id": "AMAZON_ACCESS_KEY_ID",
      "secret_access_key": "AMAZON_SECRET_ACCESS_KEY"
    },
    "zip_files": true,
    "zip_password": "helloworld123"
  }
}
  • region: The region for the AWS S3 bucket, such as eu-west-2.
  • bucket: The name of the S3 bucket.
  • path: A path to create the delivered files in the bucket (optional, leave blank to use root).\
  • authentication: A JSON object containing your AWS access_key_id and secret_access_key.
  • zip_files: Boolean: whether to combine multiple files into a compressed ZIP (defaults to false).
  • zip_password: A password to protect the ZIP with (optional, leave blank for no password).