Batch
Upload batch file to execute loyalty activities
Summary
Update customers' point balances in bulk by uploading a designated file containing the necessary information by using S3 Direct (Nodejs) method.
Use cases
Some of the reasons to use Batch method:
Handle a large volume of data at once, making it more efficient than processing individual transactions, especially when dealing with bulk updates to user point balances.
Rectify errors in point allocation that might occur with real-time processing.
Reduce the load on your server during peak hours, ensuring a smoother user experience for other functions of your application.
Schedule batch processes to run at specific times, allowing you to perform routine tasks, such as updating user point balances, during non-peak hours without manual intervention.
How to upload file
To submit the file, follow these steps:
Make sure to handle errors and adjust the access permissions on your S3 objects as needed. Also, ensure that your AWS credentials have the necessary permissions to perform these operations on the S3 bucket.
File format
Error code
Error detail and explanation when triggering issues for file uploading:
Code
Message
UNSUPPORTED_FILE_FORMAT
Unsupported file format
INVALID_PARAMETER
Invalid data
Last updated
Was this helpful?