Skip to content
FacilydevelopersDashboard
Build with Facily
DocsREST APIsGet Lease Autopay
Search the full API reference Esc to close

Get Lease Autopay

Leases · REST API reference

Get support
GET/v1/leases/{lease_id}/autopay
Return the active autopay enrollment for a lease, or null if not enrolled.

Authentication

Bearer API key or Facily session, subject to permissions and facility scope.

Authentication and scope

Request example

Replace bracketed path values with real IDs from your environment. The body, where shown, is generated from the schema and uses illustrative values.

cURL
curl --request GET \
  --url 'https://api.staging.facily.ai/v1/leases/<LEASE_ID>/autopay' \
  --header "Authorization: Bearer $FACILY_API_KEY"
An example for building your request, not an executed call. Check required fields, allowed values, and environment configuration before sending.

Try a request

Staging · read-only

Explore your organization with a read-only request to staging.

Kept in this tab only. Sent directly to api.staging.facily.ai.

GET

Replace the {placeholders} in the path with your resource IDs.

Response
Your response will appear here.

Parameters

lease_idpath · stringrequired

Format: uuid

Responses

Expand a status to inspect its schema. Generated examples show structure and synthetic values.

200Successful Response
JSON · generated example
{
  "data": {
    "charge_day_offset": 0,
    "consecutive_failures": 0,
    "enrolled_at": "2026-10-29T12:00:00Z",
    "id": "00000000-0000-4000-8000-000000000001",
    "is_active": false,
    "lease_id": "00000000-0000-4000-8000-000000000001",
    "payment_method_id": "00000000-0000-4000-8000-000000000001",
    "tenant_id": "00000000-0000-4000-8000-000000000001",
    "consent_version": "string",
    "consented_at": "2026-10-29T12:00:00Z",
    "last_charge_at": "2026-10-29T12:00:00Z",
    "last_charge_status": "string"
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

dataAutopayEnrollmentResponse | nullrequired
Show data schema
AutopayEnrollmentResponse | null
Variant 1: AutopayEnrollmentResponse
charge_day_offsetintegerrequired
consecutive_failuresintegerrequired
consent_versionstring | null
Show consent_version schema
string | null
Variant 1: string
string
Variant 2: null
null
consented_atstring | null

Format: date-time

Show consented_at schema
string | null
Variant 1: string
string
Variant 2: null
null
enrolled_atstringrequired

Format: date-time

idstringrequired

Format: uuid

is_activebooleanrequired
last_charge_atstring | null

Format: date-time

Show last_charge_at schema
string | null
Variant 1: string
string
Variant 2: null
null
last_charge_statusstring | null
Show last_charge_status schema
string | null
Variant 1: string
string
Variant 2: null
null
lease_idstringrequired

Format: uuid

max_amountstring | null

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

Show max_amount schema
string | null
Variant 1: string
string
Variant 2: null
null
next_attempt_onstring | null

Format: date

Show next_attempt_on schema
string | null
Variant 1: string
string
Variant 2: null
null
payment_method_idstringrequired

Format: uuid

suspended_atstring | null

Format: date-time

Show suspended_at schema
string | null
Variant 1: string
string
Variant 2: null
null
suspension_reasonstring | null
Show suspension_reason schema
string | null
Variant 1: string
string
Variant 2: null
null
tenant_idstringrequired

Format: uuid

Variant 2: null
null
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
400Validation error
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
401Unauthenticated
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
403Permission denied
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
404Not found
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
409Business logic error
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
503Temporary failure
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
Continue exploringAll leases operations
Build something that works beautifully.

Facily API · Contract v1.200 · Reviewed October 29, 2026

Get Lease Autopay | Facily Developers