Loan disbursement status changed

Event generated when the status of a loan disbursement changes.

Type: object
Domain: lending
Event: loan_disbursement_status_change
Version: 1

|
loan_id required

Title: The loan identifier
Description: This field identifies the id of a loan associated with the disbursement.
Type: string
Example:
ded913af-abc9-4769-b179-068ed6181ec5

org_id required

Title: The org identifier
Description: This field identifies the organization that is owner of a loan associated with the disbursement.
Type: string
Example:
89e56522-726a-453e-ba6d-796b03245128

disbursement_id required

Title: The disbursement identifier
Description: This field identifies the disbursment associated with a loan.
Type: string
Example:
89e56522-726a-453e-ba6d-796b03245128

created_at required

Title: The disbursement creation date
Description: This field identifies the disbursement creation date.
Type: string
Format: date-time
Example:
2022-10-24T21:34:47

updated_at required

Title: The disbursement update date
Description: This field identifies the disbursement update date.
Type: string
Format: date-time
Example:
2022-10-24T21:34:47

previous_disbursement_status required

Title: The disbursement previous status
Description: This field identifies the previous satus of the disbursement.
Type: string
Example:
SCHEDULED
PROCESSING
CANCELED

current_disbursement_status required

Title: The disbursement current status
Description: This field identifies the current satus of the disbursement.
Type: string
Example:
SCHEDULED
PROCESSING
CANCELED

amount required

Title: The disbusement amount
Description: This field identifies the disbursement amount.
Type: object

original_amount required

Type: number

fee required

Type: number

tax required

Type: number

charge required

Type: number

interest required

Type: number

disbursed_amount required

Type: number

disbursement_account required

Title: The disbursement account
Description: The account associated with the disbursement
Type: object

type

Title: The account type
Description: The account type of the disbursement
Example:
INTERNAL
EXTERNAL

account_id

Title: The account id
Description: The account identifier of the disbursement
Example:
221123

{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "title": "Loan disbursement status changed",
    "description": "Event generated when the status of a loan disbursement changes.",
    "required": [
        "loan_id",
        "org_id",
        "disbursement_id",
        "created_at",
        "updated_at",
        "previous_disbursement_status",
        "current_disbursement_status",
        "amount",
        "disbursement_account"
    ],
    "properties": {
        "loan_id": {
            "$id": "#/properties/loan_id",
            "type": "string",
            "title": "The loan identifier",
            "description": "This field identifies the id of a loan associated with the disbursement.",
            "examples": [
                "ded913af-abc9-4769-b179-068ed6181ec5"
            ]
        },
        "org_id": {
            "$id": "#/properties/org_id",
            "type": "string",
            "title": "The org identifier",
            "description": "This field identifies the organization that is owner of a loan associated with the disbursement.",
            "examples": [
                "89e56522-726a-453e-ba6d-796b03245128"
            ]
        },
        "disbursement_id": {
            "$id": "#/properties/disbursement_id",
            "type": "string",
            "title": "The disbursement identifier",
            "description": "This field identifies the disbursment associated with a loan.",
            "examples": [
                "89e56522-726a-453e-ba6d-796b03245128"
            ]
        },
        "created_at": {
            "$id": "#/properties/created_at",
            "type": "string",
            "format": "date-time",
            "title": "The disbursement creation date",
            "description": "This field identifies the disbursement creation date.",
            "examples": [
                "2022-10-24T21:34:47"
            ]
        },
        "updated_at": {
            "$id": "#/properties/updated_at",
            "type": "string",
            "format": "date-time",
            "title": "The disbursement update date",
            "description": "This field identifies the disbursement update date.",
            "examples": [
                "2022-10-24T21:34:47"
            ]
        },
        "previous_disbursement_status": {
            "$id": "#/properties/previous_disbursement_status",
            "type": "string",
            "title": "The disbursement previous status",
            "description": "This field identifies the previous satus of the disbursement.",
            "examples": [
                "SCHEDULED",
                "PROCESSING",
                "CANCELED"
            ]
        },
        "current_disbursement_status": {
            "$id": "#/properties/current_disbursement_status",
            "type": "string",
            "title": "The disbursement current status",
            "description": "This field identifies the current satus of the disbursement.",
            "examples": [
                "SCHEDULED",
                "PROCESSING",
                "CANCELED"
            ]
        },
        "amount": {
            "$id": "#/properties/amount",
            "type": "object",
            "title": "The disbusement amount",
            "description": "This field identifies the disbursement amount.",
            "required": [
                "original_amount",
                "fee",
                "tax",
                "charge",
                "interest",
                "disbursed_amount"
            ],
            "properties": {
                "original_amount": {
                    "$id": "#/properties/amount/original_amount",
                    "type": "number"
                },
                "fee": {
                    "$id": "#/properties/amount/fee",
                    "type": "number"
                },
                "tax": {
                    "$id": "#/properties/amount/tax",
                    "type": "number"
                },
                "charge": {
                    "$id": "#/properties/amount/charge",
                    "type": "number"
                },
                "interest": {
                    "$id": "#/properties/amount/interest",
                    "type": "number"
                },
                "disbursed_amount": {
                    "$id": "#/properties/amount/disbursed_amount",
                    "type": "number"
                }
            }
        },
        "disbursement_account": {
            "$id": "#/properties/disbursement_account",
            "type": "object",
            "title": "The disbursement account",
            "description": "The account associated with the disbursement",
            "properties": {
                "type": {
                    "$id": "#/properties/type",
                    "title": "The account type",
                    "description": "The account type of the disbursement",
                    "examples": [
                        "INTERNAL",
                        "EXTERNAL"
                    ]
                },
                "account_id": {
                    "$id": "#/properties/account_id",
                    "title": "The account id",
                    "description": "The account identifier of the disbursement",
                    "examples": [
                        "221123"
                    ]
                }
            }
        }
    }
}