# Sign Lease

<mark style="color:orange;">`POST`</mark> /v3/leases/<mark style="color:orange;">{leaseId}</mark>/sign

## Request

The details below help you form your HTTP requests to this endpoint.

### Headers

You may need to provide specific headers.

<table><thead><tr><th>Name</th><th>Type</th><th data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td>customer-token</td><td>string</td><td>true</td><td>Customer's authentication token</td></tr><tr><td>x-version-override</td><td>string</td><td>false</td><td>N/A</td></tr></tbody></table>

### Path Parameters

The endpoint path expects parameters.

<table><thead><tr><th>Name</th><th>Type</th><th data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td>leaseId</td><td>string</td><td>true</td><td>Lease agreement identifier</td></tr></tbody></table>

### Body

You must provide a JSON payload.

<table><thead><tr><th>Name</th><th>Type</th><th data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td>ipAddress</td><td>string</td><td>true</td><td>The IP address of the device that was used to sign the lease.</td></tr><tr><td>timestamp</td><td>string</td><td>false</td><td>The date and time of the lease's signing.</td></tr><tr><td>signed</td><td>boolean</td><td>true</td><td>The signed status of the lease. Should be true</td></tr></tbody></table>

## Response

The details below help you understand the responses you could get from this endpoint.

### Samples

Below are samples of responses, with tabs corresponding to returned status code.

{% tabs %}
{% tab title="200" %}

```javascript
{
    "data": {}
}
```

{% endtab %}

{% tab title="400" %}

```javascript
{
    "error": {
        "statusCode": 400,
        "code": "UserAlreadyExists",
        "message": "User already exists with email ex@example.com",
        "data": {}
    }
}
```

{% endtab %}

{% tab title="402" %}

```javascript
{
    "error": {
        "statusCode": 402,
        "code": "PaymentRequired",
        "message": "User user must make a payment to access a requested resource",
        "data": {}
    }
}
```

{% endtab %}

{% tab title="404" %}

```javascript
{
    "error": {
        "statusCode": 404,
        "code": "LeaseNotFound",
        "message": "The lease requested was not found",
        "data": {}
    }
}
```

{% endtab %}

{% tab title="410" %}

```javascript
{
    "error": {
        "statusCode": 410,
        "code": "LeaseExpired",
        "message": "The lease expired. Please create a new lease.",
        "data": {}
    }
}
```

{% endtab %}
{% endtabs %}

### Schema

The response's schema is outlined below.

<table><thead><tr><th>Name</th><th>Type</th><th data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td>data</td><td>object</td><td>false</td><td>N/A</td></tr></tbody></table>
