Credit transaction used for discharge

This event is generated when a credit transaction is used to discharge debt. The event is generated for each discharge, so a single credit transaction could result in multiple discharge-1 events.

Type: object
Domain: balance
Event: discharge
Version: 1

|
account_id required

Description: Account ID
Type: integer
Example:
5106089

program_id required

Description: Program ID
Type: integer
Example:
252

program_type_id required

Description: Credit transaction program type ID
Type: integer
Example:
1

statement_id required

Description: Transaction's statement ID
Type: integer
Example:
100002556

transaction_id required

Description: Credit transaction ID
Type: integer
Example:
60659309

transaction_amount required

Description: Credit transaction total amount
Type: number
Example:
240.48

transaction_type_id required

Description: Credit transaction type ID
Type: integer
Example:
201

customer_id

Description: Customer ID
Type: integer or null
Example:
5217323

event_datetime required

Description: Event date and time in ISO 8601 format
Type: string
Format: date-time
Example:
2020-07-06T05:09:33Z

credit_authorization_tracking_id

Description: Credit Transaction Tracking Authorization ID
Type: string or null
Example:
352dd377-f734-4532-8cb9-1523af465629

target

Title: Debit transactions
Description: Debit transactions discharged by the credit transaction
Type: array

transaction_id required

Description: Debit transaction ID
Type: integer
Example:
28318254

statement_id required

Description: Transaction's statement ID
Type: integer
Example:
100002556

transaction_type_id required

Description: Debit transaction type ID
Type: integer
Example:
112

customer_id

Description: Debit transaction customer ID
Type: integer or null
Example:
5217323

debit_authorization_tracking_id

Description: Debit Transaction Tracking Authorization ID
Type: string or null
Example:
352dd377-f734-4532-8cb9-1523af465629

account_id required

Description: Debit transaction account ID
Type: integer
Example:
5106089

transaction_amount required

Description: Debit transaction total amount
Type: number
Example:
118.9

amount required

Description: Debit transaction discharge amount
Type: number
Example:
118.9

previous_balance required

Description: Debit transaction previous balance before discharge
Type: number
Example:
118.9

final_balance required

Description: Debit transaction final balance after discharge
Type: number
Example:
null

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "Credit transaction used for discharge",
    "description": "This event is generated when a credit transaction is used to discharge debt. The event is generated for each discharge, so a single credit transaction could result in multiple `discharge-1` events.",
    "required": [
        "account_id",
        "program_id",
        "program_type_id",
        "statement_id",
        "transaction_id",
        "transaction_amount",
        "transaction_type_id",
        "event_datetime"
    ],
    "properties": {
        "account_id": {
            "type": "integer",
            "description": "Account ID",
            "examples": [
                5106089
            ]
        },
        "program_id": {
            "type": "integer",
            "description": "Program ID",
            "examples": [
                252
            ]
        },
        "program_type_id": {
            "type": "integer",
            "description": "Credit transaction program type ID",
            "examples": [
                1
            ]
        },
        "statement_id": {
            "type": "integer",
            "description": "Transaction's statement ID",
            "examples": [
                100002556
            ]
        },
        "transaction_id": {
            "type": "integer",
            "description": "Credit transaction ID",
            "examples": [
                60659309
            ]
        },
        "transaction_amount": {
            "type": "number",
            "description": "Credit transaction total amount",
            "examples": [
                240.48
            ]
        },
        "transaction_type_id": {
            "type": "integer",
            "description": "Credit transaction type ID",
            "examples": [
                201
            ]
        },
        "customer_id": {
            "type": [
                "integer",
                "null"
            ],
            "description": "Customer ID",
            "examples": [
                5217323
            ]
        },
        "event_datetime": {
            "type": "string",
            "description": "Event date and time in ISO 8601 format",
            "format": "date-time",
            "examples": [
                "2020-07-06T05:09:33Z"
            ]
        },
        "credit_authorization_tracking_id": {
            "type": [
                "string",
                "null"
            ],
            "description": "Credit Transaction Tracking Authorization ID",
            "examples": [
                "352dd377-f734-4532-8cb9-1523af465629"
            ]
        },
        "target": {
            "type": [
                "array"
            ],
            "title": "Debit transactions",
            "description": "Debit transactions discharged by the credit transaction",
            "items": [
                {
                    "type": "object",
                    "title": "Transactions discharged",
                    "description": "One or more debit transactions discharged by credit transaction",
                    "required": [
                        "transaction_id",
                        "statement_id",
                        "transaction_type_id",
                        "account_id",
                        "transaction_amount",
                        "amount",
                        "previous_balance",
                        "final_balance"
                    ],
                    "properties": {
                        "transaction_id": {
                            "type": "integer",
                            "description": "Debit transaction ID",
                            "examples": [
                                28318254
                            ]
                        },
                        "statement_id": {
                            "type": "integer",
                            "description": "Transaction's statement ID",
                            "examples": [
                                100002556
                            ]
                        },
                        "transaction_type_id": {
                            "type": "integer",
                            "description": "Debit transaction type ID",
                            "examples": [
                                112
                            ]
                        },
                        "customer_id": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "description": "Debit transaction customer ID",
                            "examples": [
                                5217323
                            ]
                        },
                        "debit_authorization_tracking_id": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "description": "Debit Transaction Tracking Authorization ID",
                            "examples": [
                                "352dd377-f734-4532-8cb9-1523af465629"
                            ]
                        },
                        "account_id": {
                            "type": "integer",
                            "description": "Debit transaction account ID",
                            "examples": [
                                5106089
                            ]
                        },
                        "transaction_amount": {
                            "type": "number",
                            "description": "Debit transaction total amount",
                            "examples": [
                                118.9
                            ]
                        },
                        "amount": {
                            "type": "number",
                            "description": "Debit transaction discharge amount",
                            "examples": [
                                118.9
                            ]
                        },
                        "previous_balance": {
                            "type": "number",
                            "description": "Debit transaction previous balance before discharge",
                            "examples": [
                                118.9
                            ]
                        },
                        "final_balance": {
                            "type": "number",
                            "description": "Debit transaction final balance after discharge",
                            "examples": [
                                0.0
                            ]
                        }
                    }
                }
            ]
        }
    }
}
{
    "account_id": 5106089,
    "program_id": 252,
    "program_type_id": 1,
    "statement_id": 100002556,
    "transaction_id": 60659309,
    "transaction_amount": 240.48,
    "transaction_type_id": 201,
    "customer_id": 5217323,
    "event_datetime": "2020-07-06T05:09:33Z",
    "credit_authorization_tracking_id": "352dd377-f734-4532-8cb9-1523af465629",
    "target": {
        "transaction_id": 28318254,
        "statement_id": 100002556,
        "transaction_type_id": 112,
        "customer_id": 5217323,
        "debit_authorization_tracking_id": "352dd377-f734-4532-8cb9-1523af465629",
        "account_id": 5106089,
        "transaction_amount": 118.9,
        "amount": 118.9,
        "previous_balance": 118.9,
        "final_balance": 0.0
    }
}