Skip to main content
POST
https://app-stage.agdejar.sa
/
tenant
/
v1
/
contracts
curl --request POST \
  --url /tenant/v1/contracts \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {access_token}' \
  --data '{
    "duration": 1,
    "contract_type": "residential",
    "parties": [
      {
        "role": "lessor",
        "id": 1
      },
      {
        "role": "tenant",
        "id": 2
      }
    ],
    "unit_id": "1945",
    "rental_fee": {
      "total_units_rent": 10000,
      "billing_type": "monthly"
    },
    "terms": {
      "residential_auto_renewal": 0,
      "notice_period_in_days": 30
    }
  }'

Headers

Accept
string
required
Must be “application/json”

Body

duration
integer
required
Contract duration in years
contract_type
string
required
Type of contract (residential, commercial)
parties
array
required
Array of parties involved in the contract
unit_id
string
required
ID of the unit being contracted
rental_fee
object
required
Rental fee details including total_units_rent and billing_type
terms
object
Contract terms and conditions
curl --request POST \
  --url /tenant/v1/contracts \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {access_token}' \
  --data '{
    "duration": 1,
    "contract_type": "residential",
    "parties": [
      {
        "role": "lessor",
        "id": 1
      },
      {
        "role": "tenant",
        "id": 2
      }
    ],
    "unit_id": "1945",
    "rental_fee": {
      "total_units_rent": 10000,
      "billing_type": "monthly"
    },
    "terms": {
      "residential_auto_renewal": 0,
      "notice_period_in_days": 30
    }
  }'