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. Required headers: RecipientsEmail, RecipientsName. Optional reserved header: IssueDate (format DD-MM-YYYY, e.g. 15-02-2025). If omitted, the current date is used. Any additional columns are treated as custom certificate data.
Optional array of signatories. Required if the template has signatory fields and no default signatories are configured. Indices must start from 1 and be sequential without gaps. The same user cannot appear in multiple positions. If omitted and the template has default signatories configured, they will be used automatically.
object
UUID of the institution user who will sign. The user must have a signature uploaded and must not be archived.
66c9c977-f379-4692-9d5c-f989c17543eePosition 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.pngWhether this template has signatory fields. If true, signatories must be provided (or default signatories configured) when creating a batch.
trueWhether this template has default signatories configured. If true, you can create a batch without providing signatories.
True when the template has signatory fields but no default signatories are configured. You must provide signatories explicitly when creating a batch with this template.
trueList of signatory field identifiers defined in the template canvas.
[ "signatory_1", "signatory_2"]Default signatories configured for this template. Only present when has_default_signatories is true.
object
113Faizan AliSoftware Developerobject
366c9c977-f379-4692-9d5c-f989c17543eeFaizanAlifaizan@example.comFaizan AliSoftware DeveloperCreation 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