Commissions

Commission records, one per closed deal, with the installment schedule in payment_dates. Commissions cannot be deleted over the API.

Note
If your workspace has commission encryption turned on, encrypted fields come back exactly as stored (enc:…) and must be decrypted with your passphrase on your side. Leasync never sees the passphrase.

Methods: GET POST PATCH plus notes. Base URL https://www.leasync.ai/api/v1.

Endpoints#

List commissions#

GET/commissions

Returns a page of commissions with the compact column set. Combine any of the filters below; every filter is a query parameter.

Query parameters
Query parameters for GET /commissions
NameTypeDescription
limitoptionalintegerRows per page, 1 to 200. Default 50.
cursoroptionalstringThe next_cursor from the previous page. offset is accepted as an alias.
searchoptionalstringCase-insensitive partial match on the client name or space address.
statusoptionalstringPending, Partial, Complete, or Overdue.
deal_idoptionaluuidThe commission for one deal.
Request
bash
curl "https://www.leasync.ai/api/v1/commissions?limit=50" \
  -H "Authorization: Bearer lsk_live_..."
Response
json
{
  "data": [
    {
      "id": "3a8f1c6d-4e2b-4d7a-9c5e-8b6a2f1d0e77",
      "deal_id": "6f1c…",
      "total_commission": "79200",
      "installments": 2,
      "commission_per_installment": "39600",
      "payment_dates": [
        {
          "due": "2026-10-01",
          "received": true
        },
        {
          "due": "2027-01-01",
          "received": false
        }
      ],
      "space_address": "123 Spring St",
      "client_name": "Blue Bottle Coffee",
      "status": "Partial",
      "deal_split_percentage": 50,
      "agents": [
        {
          "id": "a1c2…",
          "deal_percentage": 100
        }
      ],
      "date_closed": "2026-09-20",
      "term": "10",
      "created_at": "2026-09-20T17:30:00.000Z"
    }
  ],
  "next_cursor": "50"
}

Retrieve a commission#

GET/commissions/{id}

Returns one commission with every field, including notes and tags. 404 if the record does not exist or you cannot see it.

Path parameters
Path parameters for GET /commissions/{id}
NameTypeDescription
idrequireduuidThe commission id.
Request
bash
curl https://www.leasync.ai/api/v1/commissions/3a8f1c6d-4e2b-4d7a-9c5e-8b6a2f1d0e77 \
  -H "Authorization: Bearer lsk_live_..."
Response
json
{
  "data": {
    "id": "3a8f1c6d-4e2b-4d7a-9c5e-8b6a2f1d0e77",
    "deal_id": "6f1c…",
    "total_commission": "79200",
    "installments": 2,
    "commission_per_installment": "39600",
    "payment_dates": [
      {
        "due": "2026-10-01",
        "received": true
      },
      {
        "due": "2027-01-01",
        "received": false
      }
    ],
    "space_address": "123 Spring St",
    "client_name": "Blue Bottle Coffee",
    "status": "Partial",
    "deal_split_percentage": 50,
    "agents": [
      {
        "id": "a1c2…",
        "deal_percentage": 100
      }
    ],
    "date_closed": "2026-09-20",
    "term": "10",
    "created_at": "2026-09-20T17:30:00.000Z",
    "deal_type": "lease",
    "represented_side": "tenant",
    "co_broke_broker": null,
    "free_months": "3",
    "commission_type": "percent",
    "commission_percent": "5",
    "notes": [],
    "created_by": "a1c2…",
    "allowed_users": [],
    "updated_at": "2026-09-22T09:12:40.000Z"
  }
}

Create a commission#

POST/commissions

Creates a commission from a JSON object of column values and returns the full record with status 201. Requires the write scope.

Request
bash
curl -X POST https://www.leasync.ai/api/v1/commissions \
  -H "Authorization: Bearer lsk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "deal_id": "6f1c8d20-5e3b-4a9f-b2c7-0d8e4a6b1c33",
    "space_address": "123 Spring St",
    "client_name": "Blue Bottle Coffee",
    "total_commission": "79200",
    "installments": 2,
    "commission_per_installment": "39600",
    "payment_dates": [
      {
        "due": "2026-10-01",
        "received": false
      },
      {
        "due": "2027-01-01",
        "received": false
      }
    ],
    "status": "Pending"
  }'
Response
json
{
  "data": {
    "id": "3a8f1c6d-4e2b-4d7a-9c5e-8b6a2f1d0e77",
    "deal_id": "6f1c…",
    "total_commission": "79200",
    "installments": 2,
    "commission_per_installment": "39600",
    "payment_dates": [
      {
        "due": "2026-10-01",
        "received": true
      },
      {
        "due": "2027-01-01",
        "received": false
      }
    ],
    "space_address": "123 Spring St",
    "client_name": "Blue Bottle Coffee",
    "status": "Partial",
    "deal_split_percentage": 50,
    "agents": [
      {
        "id": "a1c2…",
        "deal_percentage": 100
      }
    ],
    "date_closed": "2026-09-20",
    "term": "10",
    "created_at": "2026-09-20T17:30:00.000Z",
    "deal_type": "lease",
    "represented_side": "tenant",
    "co_broke_broker": null,
    "free_months": "3",
    "commission_type": "percent",
    "commission_percent": "5",
    "notes": [],
    "created_by": "a1c2…",
    "allowed_users": [],
    "updated_at": "2026-09-22T09:12:40.000Z"
  }
}

Update a commission#

PATCH/commissions/{id}

Send only the fields that change. Returns the full updated record. Requires the write scope.

Path parameters
Path parameters for PATCH /commissions/{id}
NameTypeDescription
idrequireduuidThe commission id.
Request
bash
curl -X PATCH https://www.leasync.ai/api/v1/commissions/3a8f1c6d-4e2b-4d7a-9c5e-8b6a2f1d0e77 \
  -H "Authorization: Bearer lsk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "status": "Partial",
    "payment_dates": [
      {
        "due": "2026-10-01",
        "received": true
      },
      {
        "due": "2027-01-01",
        "received": false
      }
    ]
  }'
Response
json
{
  "data": {
    "id": "3a8f1c6d-4e2b-4d7a-9c5e-8b6a2f1d0e77",
    "deal_id": "6f1c…",
    "total_commission": "79200",
    "installments": 2,
    "commission_per_installment": "39600",
    "payment_dates": [
      {
        "due": "2026-10-01",
        "received": true
      },
      {
        "due": "2027-01-01",
        "received": false
      }
    ],
    "space_address": "123 Spring St",
    "client_name": "Blue Bottle Coffee",
    "status": "Partial",
    "deal_split_percentage": 50,
    "agents": [
      {
        "id": "a1c2…",
        "deal_percentage": 100
      }
    ],
    "date_closed": "2026-09-20",
    "term": "10",
    "created_at": "2026-09-20T17:30:00.000Z",
    "deal_type": "lease",
    "represented_side": "tenant",
    "co_broke_broker": null,
    "free_months": "3",
    "commission_type": "percent",
    "commission_percent": "5",
    "notes": [],
    "created_by": "a1c2…",
    "allowed_users": [],
    "updated_at": "2026-09-22T09:12:40.000Z"
  }
}
No delete
Commissions cannot be deleted over the API. A DELETE request returns 405 delete_not_allowed.