Sign the contract

The user accepts all contract clauses, provides the OTP sent by the certification authority to finally sign the contracts.

Request

Endpoint

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

Accepted Methods

POST

Authentication

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

Parameters

Parameter Mandatory Type Format Description
clauses Object clauses accepted by user (see example)
otp Integer OTP code sent to the user by the digital signature service

The request must pass all the clauses returned by the request-signature-certificate call with the value set to true, along with the OTP that the user receives on his/her cellphone:

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

Response

This API returns no content on success.

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."
         ]
     }
}