🎒Batch Methods
Last updated
Last updated
Batch methods are used to start the process of signing, upload files, which are meant to be signed, download signed files and delete the batch from the cache.
A batch is a package that contains files for sign or validation. The package format is ZIP (without directories).
POST
/api/CreateBatch/{processId}
Method is used to create new batch with an assigned processID.
Name | Type | Description |
---|---|---|
POST
/api/upload/{batchId}
Method is used to upload a file to the batch. The BatchId value generated and returned during the CreateBatch (2.1.1) operation. The contents of the zip file should be sent as a binary octet stream (https://www.iana.org/assignments/media-types/application/octet-stream)
GET
/api/BatchStatus/{batchId}
Use this method to get an information about the status of the batch. Possible statuses below.
DELETE
/api/BatchDeleteCache/{batchId}
This method removes the batch from the cache on the server side
POST
/api/AcceptBatch
This method accepts batch, starts the signature/validation process
GET
/api/batchfile/{batchId}
This method provides a signed package for download
Exaple response:
binary octet stream (https://www.iana.org/assignments/media-types/application/octet-stream)
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Id | Value | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
processId*
Integer
batchId*
Integer
<binary-octet-stream>
<binary-octet-stream>
batchId
Integer
0
NEW
New batch successfully created
1
ACCEPTED
Batch successfully created
2
READY
For internal use
3
IN_PROGRESS
Signing/stamping process in progress
4
FINISHING
For internal use
5
CLOSED
Batch closed, ready for download
6
DELETED
Batch romoved from cache
batchId*
Integer
batchId
Integer
batchId
Integer