Scan&Paste logo
  • Home
  • API
  • How it works
  • Office Add-ins
  • Contact
  • Scan & Paste Business
Home > API > Get >

api/BundleManager/GetByCAK

This method returns detailed information about the bundle with data needed for browsing the contents. This method requires configurationAccessKey, bundle’s origin configuration identification and ID of the bundle.

Parameters

Name Description Type Required
id Bundle ID integer True
configurationID Configuration ID string True
configurationAccessKey Configuration AccesKey allows an access to the bundles of a given configuration. string False

Responses

Status Description
The content of the bundle.
Parameters are incorrect.
Configuration AccessKey does not exist.
Lack of credtis, bundle can not be downloaded.
Configuration AccesKey is blocked by an owner of the configuration.
A bundle of a given ID does not exist.
Internal server error

Sample of using

using (WebClient client = new WebClient())
{
    var url = "https://scanandpaste.com/api/BundleManager/GetByCAK?id=247&configurationID=af7a6ac0-d58b-439e-b278-41729d3fe8ee&configurationAccessKey=292a22ed-b361-43cd-bacf-32ec69db186e";
    string response = client.DownloadString(url);
    Console.WriteLine(response);
}
import urllib2

url = 'https://scanandpaste.com/api/BundleManager/GetByCAK?id=247&configurationID=af7a6ac0-d58b-439e-b278-41729d3fe8ee&configurationAccessKey=292a22ed-b361-43cd-bacf-32ec69db186e'
response = urllib2.urlopen(url).read()
print response
URL url = new URL("https://scanandpaste.com/api/BundleManager/GetByCAK?id=247&configurationID=af7a6ac0-d58b-439e-b278-41729d3fe8ee&configurationAccessKey=292a22ed-b361-43cd-bacf-32ec69db186e");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
BufferedReader br = new BufferedReader(new InputStreamReader(
        (conn.getInputStream())));
String output;
while ((output = br.readLine()) != null) {
    System.out.println(output);
}
conn.disconnect();

JSON Response

{
  "ID": 416,
  "StorageID": "f449571f-ad3c-4ded-a2e0-101aa3162b43",
  "ConfigurationID": "29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b",
  "FormID": "3efdcd59-9929-4cff-8927-05f189f4d443",
  "DeviceID": "353339060471054",
  "FormName": "NewOne",
  "Thumbnail": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2_0.thumb.jpg",
  "Description": null,
  "UserInfo": null,
  "GPS": "52°26'8\"N 16°54'44\"E",
  "UsedCredits": 0.021,
  "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/bundle.zip",
  "Modules": [
    {
      "ID": "dbfd7ccc-1b54-4795-9cf6-3454c895b51b",
      "Type": "PolicyOCR",
      "Label": "Policy OCR",
      "Values": [],
      "URLs": []
    },
    {
      "ID": "afb47c4a-2f21-4600-9338-32c808a635cc",
      "Type": "Aztec",
      "Label": "Aztec",
      "Values": [],
      "URLs": []
    },
    {
      "ID": "629be504-870b-4787-b242-40a88444cbaf",
      "Type": "InvoiceOCR",
      "Label": "Invoice OCR",
      "Values": [],
      "URLs": []
    },
    {
      "ID": "52bbddea-7287-4a53-8e52-28aee1db84f2",
      "Type": "Document",
      "Label": "Document",
      "Values": [],
      "URLs": [
        {
          "Thumbnail": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2_0.thumb.jpg",
          "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2_0.jpg",
          "Name": "Document.jpg",
          "Type": "Photo",
          "ExifOrientation": 1
        },
        {
          "Thumbnail": null,
          "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2.zip",
          "Name": "Document.zip",
          "Type": "Zip",
          "ExifOrientation": 0
        },
        {
          "Thumbnail": null,
          "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2.pdf",
          "Name": "Document.pdf",
          "Type": "Pdf",
          "ExifOrientation": 0
        },
        {
          "Thumbnail": null,
          "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2.pdf",
          "Name": "Document.pdf",
          "Type": "Document",
          "ExifOrientation": 0
        }
      ]
    },
    {
      "ID": "97eb6707-8f42-4dbe-8810-a2f475e89d2b",
      "Type": "Photo",
      "Label": "Photo",
      "Values": [],
      "URLs": []
    }
  ],
  "Status": 200,
  "InputDate": "2016-11-23T13:24:23.6166081Z"
};
Copyright 2025 Scan&Paste  |  License Agreement
Realization: Creandi.pl