Get the contract terms

Request a list of terms and conditions that the user must accept in order to obtain a digital signature certificate.

Request

Endpoint

Sandbox: http://api.sandbox.soisy.it/api/shops/{shopId}/requests/{fiscalCode}/terms-and-conditions
Production: https://api.soisy.it/api/shops/{shopId}/requests/{fiscalCode}/terms-and-conditions

Accepted Methods

POST

Authentication

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

Response

Returns a JSON object containing clauses and links. The clauses returned by this call must be explicitly sent with a value of true in the sign-contracts call.

HTTP Response codes

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

Valid response

{
    "clauses": {
      "termAndCondition": "Il/La sottoscritto/a, consapevole delle sanzioni penali previste...",
      "misleadingClaims": "Il/La sottoscritto/a, ai sensi e per gli effetti degli artt. 1341 e 1342 c.c, dichiara...",
    },
    "links": [
      {"url": "https://docs.namirialtsp.com/documents/Mod.NAMCA01D_ITA.pdf", "name": "Condizioni generali di contratto (Mod.NAMCA01D_ITA)"},
      {"url": "https://docs.namirialtsp.com/documents/Mod.NAM_CA22D.pdf", "name": "Modulo di richiesta (Mod.NAM_CA22D)"},
    ]
}

Error response

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