Lease Financials
Get lease financials
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuidHeader Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidResponse 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
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuidQuery Parameters
Idempotency key for write requests. Cached for 24 hours.
Header Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuiduuidAmount in cents (negative for charges, positive for refunds)
Free-text description of the item.
length <= 2048Response 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
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuiduuidHeader Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidResponse 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"{
"requestId": "string",
"message": "string",
"errorCode": "string"
}{
"requestId": "string",
"message": "string",
"errorCode": "string"
}Update a pending financial item
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuiduuidHeader Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuiduuidAmount in cents
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.
length <= 2048Response 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 '{}'{
"requestId": "string",
"message": "string",
"errorCode": "string"
}{
"requestId": "string",
"message": "string",
"errorCode": "string"
}Commit pending financial items
HTTP Basic authentication using clientId as username and clientSecret as password
In: header
Path Parameters
uuidQuery Parameters
Idempotency key for write requests. Cached for 24 hours.
Header Parameters
API version to use for the request. When you omit the header, the API version set on your app is used.
Required when operating on behalf of a connected account
uuidIDs 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 '{}'{
"requestId": "string",
"message": "string",
"errorCode": "string"
}{
"requestId": "string",
"message": "string",
"errorCode": "string"
}