Get new OTP

If the user has not received the OTP following the contract signature call, it is possible to request a new one with this API.

Request

Endpoint

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

Accepted methods

POST

Authentication

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

Prerequisites

To access this endpoint, it is necessary to have requested the certificate signature.

Response

The API does not return any content if successful.

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