PlatformIntegrations
API ReferenceV1.2 (Current)

Lease Financials

Get lease financials

GET
/leases/{leaseId}/financials
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring
Formatuuid

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

application/json

curl -X GET "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/financials" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "pending": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "typeId": "caab7c42-4ce7-4bd5-bbab-6017cec730b7",
      "amount": 0,
      "description": "string",
      "metadata": {},
      "status": "Draft",
      "paymentStatus": "NotStarted",
      "attachmentIds": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      ],
      "relatedEntity": {
        "type": "HouseholdRenter",
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      }
    }
  ],
  "balance": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "typeId": "caab7c42-4ce7-4bd5-bbab-6017cec730b7",
      "amount": 0,
      "description": "string",
      "metadata": {},
      "status": "Committed",
      "createdAt": "2019-08-24T14:15:22Z",
      "settledAt": "2019-08-24T14:15:22Z",
      "referenceCode": "string",
      "attachmentIds": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      ],
      "relatedEntity": {
        "type": "HouseholdRenter",
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      }
    }
  ],
  "securities": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "type": "BillingAuthorization",
      "amount": 0,
      "charged": true,
      "createdAt": "2019-08-24T14:15:22Z",
      "paymentStatus": "NotStarted"
    }
  ],
  "summary": {
    "securities": {
      "pending": 0,
      "available": 0,
      "charged": 0,
      "released": 0
    }
  }
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Create a pending financial item

POST
/leases/{leaseId}/financials
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring
Formatuuid

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
typeIdstring
Formatuuid
amountinteger

Amount in cents (negative for charges, positive for refunds)

relatedEntity
commit?boolean
description?string|null

Free-text description of the item.

Lengthlength <= 2048
attachmentIds?array<string>
metadata?

Response Body

application/json

application/json

application/json

curl -X POST "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/financials?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "typeId": "caab7c42-4ce7-4bd5-bbab-6017cec730b7",    "amount": 0,    "relatedEntity": {      "type": "HouseholdRenter"    }  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Delete a pending financial item

DELETE
/leases/{leaseId}/financials/{itemId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring
Formatuuid
itemIdstring
Formatuuid

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid

Response Body

application/json

application/json

curl -X DELETE "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/financials/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Update a pending financial item

PUT
/leases/{leaseId}/financials/{itemId}
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring
Formatuuid
itemIdstring
Formatuuid

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
typeId?string
Formatuuid
amount?integer

Amount in cents

relatedEntity?
description?string|null

Free-text description of the item. On a committed item, it's set only while the item's description is blank: missing, empty or only whitespace, so a non-blank description is kept. null never clears a description.

Lengthlength <= 2048
attachmentIds?array<string>
metadata?

Response Body

application/json

application/json

curl -X PUT "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/financials/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}

Commit pending financial items

POST
/leases/{leaseId}/commit-financials
AuthorizationBasic <token>

HTTP Basic authentication using clientId as username and clientSecret as password

In: header

Path Parameters

leaseIdstring
Formatuuid

Query Parameters

idempotencyId?string

Idempotency key for write requests. Cached for 24 hours.

Header Parameters

Obligo-Version?string

API version to use for the request. When you omit the header, the API version set on your app is used.

Account-Id?string

Required when operating on behalf of a connected account

Formatuuid
ids?array<string>

IDs of the pending items to commit. Optional: omit it to commit every pending item that is not committed yet.

Response Body

application/json

application/json

curl -X POST "https://api.obligo.com/leases/497f6eca-6276-4993-bfeb-53cbbbba6f08/commit-financials?idempotencyId=string" \  -H "Obligo-Version: string" \  -H "Account-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
Empty
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}
{
  "requestId": "string",
  "message": "string",
  "errorCode": "string"
}