Get the contract

Retrieve a PDF containing a preview of the contract the user is about to sign.

Request

Endpoint

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

Accepted Methods

GET

Authentication

This API requires authorization with shopId and X-Auth-Token header .

Prerequisites

A contractId returned by the call to request-signature-certificate.

Response

This API returns a PDF byte stream.

HTTP Response codes

Code Description
204 Returned when successful
400 A domain error occurred
403 Forbidden
500 System error

Error response

{
     "errors": {
         "domain": [
             0: "Invalid fiscalCode."
         ]
     }
 }