Create a new batch
POST /business/batches
Creates a new certificate batch with the provided CSV file and template.
Authorizations
Request Body required
object
Name of the batch
Class 10th, 2024UUID of the certificate template to use
9e3b101f-c264-4f97-945f-20dfa7163768CSV file containing recipient information. Must include headers RecipientsEmail and RecipientsName.
Optional array of signatories for the certificates
object
UUID of the institution user who will sign
66c9c977-f379-4692-9d5c-f989c17543eeOrder index of the signature (starting from 1, must be sequential without gaps)
1Responses
201
Batch created successfully
object
object
Unique identifier for the batch
9e7860e3-7c0a-401f-98f6-b98e316934f4Name of the batch
Class 10th, 2024Current status of the batch
completedID of the certificate template used
9d76a768-d016-4364-b18b-32c647adad0cTotal number of certificates in the batch
1Number of successfully processed certificates
1Number of failed certificates
Progress percentage (0-100)
100When the batch was completed
2025-03-14T13:04:03.000000ZCreation timestamp
2025-03-14T13:02:19.000000ZLast update timestamp
2025-03-14T13:04:03.000000Zobject
Unique identifier for the template
9e3b101f-c264-4f97-945f-20dfa7163768ID of the institution that owns this template
3Name of the template
Certificate 2URL to the template screenshot
https://api.vec.digital/storage/certificate_templates/67ca927729685_1741329015.pngCreation timestamp
2025-02-17T04:05:07.000000ZLast update timestamp
2025-03-07T06:30:15.000000ZWhether this batch requires signatures
trueWhether this batch requires the current user’s signature
401
Authentication failed
object
Error message
Unauthorized - Invalid API token403
Permission denied
object
Error message
Forbidden - Insufficient permissionsRequired permission to access this resource
batches:view422
Batch creation validation failed
object
Error summary
The name field is required. (and 2 more errors)Detailed validation errors
object
{ "name": [ "The name field is required." ], "template_id": [ "The selected template id is invalid." ], "csv_file": [ "The csv file field is required." ], "signatories": [ "The same signatory cannot be assigned to multiple positions." ], "signatories.0.index": [ "Signatory indices must start from 1." ], "signatories.1.index": [ "Signatory indices must be sequential starting from 1 without gaps." ]}500
Server error
object
Error message
An unexpected error occurred. Our team has been notified.Error code
SERVER_ERROR