API - signature retrieves the contract, signature and OTP

Retrieve the contract

This call, optional, allows you to get the preview of the contract before signing, in Pdf.

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

The parameter{contractId} it was returned to you when you requested the certificate.

				
					GET

				
			

This API requires authentication viashopId and headerX-Auth-Token .

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

Sign the contract

With this call the user accepts the contract. To validate the acceptance, you will need to send us the OTP, sent to the user via SMS at the end of the previous API call, and the explicit acceptance by the user of the clauses that we have returned to you in the previous API.

				
					Sandbox: https://api.sandbox.soisy.it/api/shops/{shopId}/requests/{fiscalCode}/sign-contracts
Produzione: https://api.soisy.it/api/shops/{shopId}/requests/{fiscalCode}/sign-contracts
				
			
				
					POST

				
			

This API requires authentication viashopId and headerX-Auth-Token .

To access this endpoint you need to have requested the certificate.

ParameterMandatoryTypeFormatDescription
clausesYesSubjectThe clauses accepted by the user. See example.
otpYesIntegerOTP code sent via SMS to the user in the previous API call.

You will have to transmit all the clauses received in the previous call with all the conditions set totrue .

The API returns a PDF file.

				
					{
    "otp": 12345,
    "clauses": {
        "termsAndConditions": true,
        "privacyPolicy": true,
        "sddStatement": true,
    }
}
				
			

Request a new OTP

In case the user has not received the OTP as a result of the contract signing call, a new one can be requested with this API.

				
					Sandbox: https://api.sandbox.soisy.it/api/shops/{shopId}/requests/{fiscalCode}/send-new-otp
Produzione: https://api.soisy.it/api/shops/{shopId}/requests/{fiscalCode}/send-new-otp
				
			
				
					POST
				
			

This API requires authentication viashopId and headerX-Auth-Token .

To access this endpoint you must have requested a certificate signing.

The API does not return any content on success.

Here is a summary of the response codes

CodeDescription
204Request completed successfully
400Syntax or domain error
403Failed to authenticate the request
500System error

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

The description of the errormessaggio it will change according to the error generated by the Certification Authority.

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

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

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

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

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

Ciao!

Siamo on line dal lunedì al venerdì dalle 9.30 alle 12.30 e dalle 14.30 alle 17.30

Scrivici in questi orari, grazie!