Run with Postman

Marche Temporali (1.0.0)

This web service allows you to purchase time stamps and time stamp documents.

Marche

Calls for the purchase and control of time stamps

List of your time stamps

This method shows you the list of all purchased timestamps

Authorizations:

Responses

Response Schema: application/json
Array of objects (Marca) [ items ]
success
boolean
message
string
error
integer

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.marchetemporali.com/marche");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "success": true,
  • "message": "",
  • "error": null
}

Purchase of time stamps

This method allows you to purchase time stamps

Authorizations:
path Parameters
type
required
string
Default: "<string>"
Enum: "infocert" "aruba"
Example: aruba

Type of time stamps

qty
required
string
Default: "<string>"
Example: 50

Quantity of time stamps

Responses

Response Schema: application/json
object
success
boolean
message
string
error
integer

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.marchetemporali.com/marche/%7Btype%7D/%7Bqty%7D");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
{
  • "data": {
    },
  • "message": "Marca erogata",
  • "success": true,
  • "error": null
}

Availability of time stamps

This method allows you to check if a certain type of time stamps are available for purchase

Authorizations:
path Parameters
type
required
string
Default: "<string>"
Enum: "infocert" "aruba"
Example: aruba

Type of time stamps

qty
required
string
Default: "<string>"
Example: 50

Quantity of time stamps

Responses

Response Schema: application/json
object
success
boolean
message
string
error
integer

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://ws.marchetemporali.com/availability/%7Btype%7D/%7Bqty%7D");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

CURLcode ret = curl_easy_perform(hnd);

Response samples

Content type
application/json
{
  • "data": {
    },
  • "success": true,
  • "message": "",
  • "error": null
}

Control over consumption

This method allows you to check, in relation to a specific batch, how many timestamps you have used and how many you have left

Authorizations:
Request Body schema: application/json
username
required
string
Default: "<string>"

name assigned to use the time stamp batch

password
required
string
Default: "<string>"

password assigned to use the time stamp batch

type
string
Default: "<string>"
Enum: "infocert" "aruba"

brand of time stamp; if not passed it is 'infocert' by default

Responses

Response Schema: application/json
object
success
boolean
message
string
error
integer

Request samples

Content type
application/json
{
  • "username": "J0xxxx57",
  • "password": "R6xxxh5X"
}

Response samples

Content type
application/json
{
  • "data": {
    },
  • "message": "DESCR = Marche per J0xxxx57; disponibili 250 consumate 0",
  • "success": true,
  • "error": null
}

Marcatura

Calls for time stamping, analysis and verification of documents

Time stamp a document

This method allows you to mark a document in time; if you do not have our timestamps you can still mark a document by passing only 'file' parameter.

Authorizations:
Request Body schema: application/json
username
string
Default: "<string>"

name of the time stamp batch

password
string
Default: "<string>"

password of the time stamp batch

file
required
string
Default: "<string>"

file you want to mark: you can pass the remote url of the file or the content encoded in base64 or sha256

mime
boolean
Default: "<boolean>"

if false returns only the timestamp on the file, if true a file in mime format containing original file and timestamp

type
string
Default: "<string>"
Enum: "infocert" "aruba"

brand of time stamp; if not passed it is 'infocert' by default

Responses

Response Schema: application/json
object (Marcatura)
success
boolean
message
string
error
integer

Request samples

Content type
application/json
{}

Response samples

Content type
application/json
{
  • "data": {