Get the contract

This optional call allows you to preview the contract before signing, as a PDF.

Request

Endpoint

Sandbox: https://api.sandbox.soisy.it/api/shops/{shopId}/requests/{fiscalCode}/contracts/{contractId}
Production: https://api.soisy.it/api/shops/{shopId}/requests/{fiscalCode}/contracts/{contractId}

The {contractId} parameter was returned to the certificate request.

Accepted methods

GET

Authentication

This API requires authentication via shopId and headerX-Auth-Token.

Prerequisites

To access this endpoint, you must have requested the terms of the contract of the customer.

Response

The API returns a PDF file.

HTTP Error codes

Code Description
204 Request completed successfully
400 Syntax or domain error
403 The request could not be authenticated
500 System error

Error response

The JSON object returned in the event of an error varies depending on the HTTP response code.

Error 400

The description of the message error will change depending on the error generated by the Certification Authority.

 {
     "errors": {
         "domain": [
             {message}
         ]
      }
 }

Error 403

The request sent contains invalid credentials. Check the shopId and the X-Auth-Token header. Find more info on credentials in the paragraph about authentication.

 {
     "errors": {
         "domain": [
             "The user has no access to this resource"
         ]
      }
 }

Error 500

Replies with this HTTP code indicate that a system error has occurred.

{
    "errors": {
        "system": [
            {message}
        ]
    }
}